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

Unified Diff: compiler/java/com/google/dart/compiler/ast/Modifiers.java

Issue 10823127: Issue 4300. Support for 'external' keyword (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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: compiler/java/com/google/dart/compiler/ast/Modifiers.java
diff --git a/compiler/java/com/google/dart/compiler/ast/Modifiers.java b/compiler/java/com/google/dart/compiler/ast/Modifiers.java
index 499e9faac2a157d72b3d0e0d8dc3bdd999aa4614..4c043aa56ca947973bf0494336cdfc2577f921fd 100644
--- a/compiler/java/com/google/dart/compiler/ast/Modifiers.java
+++ b/compiler/java/com/google/dart/compiler/ast/Modifiers.java
@@ -28,6 +28,7 @@ public class Modifiers {
private static final int FLAG_FINAL = FLAG_REDIRECTEDCONSTRUCTOR << 1;
private static final int FLAG_NAMED = FLAG_FINAL << 1;
private static final int FLAG_INITIALIZED = FLAG_NAMED << 1;
+ private static final int FLAG_EXTERNAL = FLAG_INITIALIZED << 1;
private final int value;
@@ -45,6 +46,7 @@ public class Modifiers {
public boolean isFinal() { return is(FLAG_FINAL); }
public boolean isNamed() { return is(FLAG_NAMED); }
public boolean isInitialized() { return is(FLAG_INITIALIZED); }
+ public boolean isExternal() { return is(FLAG_EXTERNAL); }
public Modifiers makeStatic() { return make(FLAG_STATIC); }
public Modifiers makeConstant() { return make(FLAG_CONSTANT); }
@@ -60,6 +62,7 @@ public class Modifiers {
public Modifiers makeFinal() { return make(FLAG_FINAL); }
public Modifiers makeNamed() { return make(FLAG_NAMED); }
public Modifiers makeInitialized() { return make(FLAG_INITIALIZED); }
+ public Modifiers makeExternal() { return make(FLAG_EXTERNAL); }
public Modifiers removeStatic() { return remove(FLAG_STATIC); }
public Modifiers removeConstant() { return remove(FLAG_CONSTANT); }
@@ -75,6 +78,7 @@ public class Modifiers {
public Modifiers removeFinal() { return remove(FLAG_FINAL); }
public Modifiers removeNamed() { return remove(FLAG_NAMED); }
public Modifiers removeIniitalized() { return remove(FLAG_INITIALIZED); }
+ public Modifiers removeExternal() { return remove(FLAG_EXTERNAL); }
public boolean is(int flag) {
return (value & flag) != 0;

Powered by Google App Engine
This is Rietveld 408576698