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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index 2e1525c640df5d89d95ab284f4c612e71ee1b921..9b12bed4b5c088eeb369167edcfff9c135e497c6 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -1324,6 +1324,15 @@ abstract class ConstructorElement extends FunctionElement
/// `int.fromEnvironment`, or `String.fromEnvironment`.
bool get isFromEnvironmentConstructor;
+ /// `true` if this constructor is `int.fromEnvironment`.
+ bool get isIntFromEnvironmentConstructor;
+
+ /// `true` if this constructor is `bool.fromEnvironment`.
+ bool get isBoolFromEnvironmentConstructor;
+
+ /// `true` if this constructor is `String.fromEnvironment`.
+ bool get isStringFromEnvironmentConstructor;
+
/// Use [enclosingClass] instead.
@deprecated
get enclosingElement;

Powered by Google App Engine
This is Rietveld 408576698