dart-sdk/sdk/lib/io/namespace_impl.dart
Leaf Petersen d44457f79d [Core Libraries] Eliminate the fork in the core libraries.
Move the nnbd core libraries from sdk_nnbd to sdk, and updates
references in build files and elsewhere accordingly.

Change-Id: I09760fe1e006657aacdfe80f3b22fdf6f7e30a9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151121
Commit-Queue: Leaf Petersen <leafp@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2020-06-16 23:37:36 +00:00

25 lines
1.1 KiB
Dart

// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of dart.io;
// Each Isolate may run in a different "namespace", which provides the scope in
// which file paths are resolved.
abstract class _Namespace {
// This getter does not increase the reference count on the underlying native
// object. It cannot be passed in a dispatch message to the IOService thread.
external static _Namespace get _namespace;
// This getter does increase the reference count on the underlying native
// object. It must be passed in a dispatch message to the IOService thread.
external static int get _namespacePointer;
// This sets up the Isolate's namespace. It should be set up by the embedder.
// If it is not set up by the embedder, relative paths will be resolved
// relative to the process's current working directory and absolute paths will
// be left relative to the file system root.
@pragma("vm:entry-point")
external static void _setupNamespace(var namespace);
}