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

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

Issue 2033383002: Handle use of fromEnvironment from serialized data. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fixes Created 4 years, 6 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
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library elements; 5 library elements;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/resolution.dart' show Resolution; 8 import '../common/resolution.dart' show Resolution;
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../constants/constructors.dart'; 10 import '../constants/constructors.dart';
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 ConstructorElement get definingConstructor; 1317 ConstructorElement get definingConstructor;
1318 1318
1319 /// The constant constructor defining the binding of fields if `const`, 1319 /// The constant constructor defining the binding of fields if `const`,
1320 /// `null` otherwise. 1320 /// `null` otherwise.
1321 ConstantConstructor get constantConstructor; 1321 ConstantConstructor get constantConstructor;
1322 1322
1323 /// `true` if this constructor is one of `bool.fromEnvironment`, 1323 /// `true` if this constructor is one of `bool.fromEnvironment`,
1324 /// `int.fromEnvironment`, or `String.fromEnvironment`. 1324 /// `int.fromEnvironment`, or `String.fromEnvironment`.
1325 bool get isFromEnvironmentConstructor; 1325 bool get isFromEnvironmentConstructor;
1326 1326
1327 /// `true` if this constructor is `int.fromEnvironment`.
1328 bool get isIntFromEnvironmentConstructor;
1329
1330 /// `true` if this constructor is `bool.fromEnvironment`.
1331 bool get isBoolFromEnvironmentConstructor;
1332
1333 /// `true` if this constructor is `String.fromEnvironment`.
1334 bool get isStringFromEnvironmentConstructor;
1335
1327 /// Use [enclosingClass] instead. 1336 /// Use [enclosingClass] instead.
1328 @deprecated 1337 @deprecated
1329 get enclosingElement; 1338 get enclosingElement;
1330 } 1339 }
1331 1340
1332 /// JavaScript backend specific element for the body of constructor. 1341 /// JavaScript backend specific element for the body of constructor.
1333 // TODO(johnniwinther): Remove this class from the element model. 1342 // TODO(johnniwinther): Remove this class from the element model.
1334 abstract class ConstructorBodyElement extends MethodElement { 1343 abstract class ConstructorBodyElement extends MethodElement {
1335 FunctionElement get constructor; 1344 FunctionElement get constructor;
1336 } 1345 }
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1834 /// by a field. 1843 /// by a field.
1835 bool get isDeclaredByField; 1844 bool get isDeclaredByField;
1836 1845
1837 /// Returns `true` if this member is abstract. 1846 /// Returns `true` if this member is abstract.
1838 bool get isAbstract; 1847 bool get isAbstract;
1839 1848
1840 /// If abstract, [implementation] points to the overridden concrete member, 1849 /// If abstract, [implementation] points to the overridden concrete member,
1841 /// if any. Otherwise [implementation] points to the member itself. 1850 /// if any. Otherwise [implementation] points to the member itself.
1842 Member get implementation; 1851 Member get implementation;
1843 } 1852 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698