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

Unified Diff: dart/frog/leg/tree/nodes.dart

Issue 9004025: Parse field modifiers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cleaned up for commit Created 9 years 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
« no previous file with comments | « dart/frog/leg/scanner/parser.dart ('k') | dart/frog/tests/leg/src/ResolverTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/tree/nodes.dart
diff --git a/dart/frog/leg/tree/nodes.dart b/dart/frog/leg/tree/nodes.dart
index 2a62457aa4299ae6f4f1227a219d75d9d3ea7a16..17f87eab9734a7d93584e1c51a5456b4c6471f31 100644
--- a/dart/frog/leg/tree/nodes.dart
+++ b/dart/frog/leg/tree/nodes.dart
@@ -791,6 +791,12 @@ class ParenthesizedExpression extends Expression {
/** Representation of modifiers such as static, abstract, final, etc. */
class Modifiers extends Node {
+ /* TODO(ahe): The following should be validated relating to modifiers:
+ * 1. The nodes must come in a certain order.
+ * 2. The keywords "var" and "final" may not be used at the same time.
+ * 3. The type of an element must be null if isVar() is true.
+ */
+
final NodeList nodes;
/** Bit pattern to easy check what modifiers are present. */
final int flags;
« no previous file with comments | « dart/frog/leg/scanner/parser.dart ('k') | dart/frog/tests/leg/src/ResolverTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698