Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: pkg/compiler/lib/src/environment.dart

Issue 1819053002: Split loader from the rest of the compiler. This adds several abstractions to (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: add environment.dart Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 /// Collects definitions provided to the compiler via the `-D` flag.
6 ///
7 /// Environment variables can be used in the user code in two ways. From
8 /// conditional imports, and from `const String.fromEnvironment` and
9 /// other similar constructors.
10 abstract class Environment {
11 /// Return the string value of the given key.
12 ///
13 /// Note that `bool.fromEnvironment` and `int.fromEnvironment` are also
14 /// implemented in terms of `String.fromEnvironment`.
15 String valueOf(String key);
16 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698