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

Unified Diff: pkg/analyzer/lib/src/generated/ast.dart

Issue 679923002: Port enums AST changes to Dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/ast_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/ast.dart
diff --git a/pkg/analyzer/lib/src/generated/ast.dart b/pkg/analyzer/lib/src/generated/ast.dart
index bb44db5d5b3ccdd49d072ada95d431440bd68955..7551594016e65865d73505dcaee6cb078f554b03 100644
--- a/pkg/analyzer/lib/src/generated/ast.dart
+++ b/pkg/analyzer/lib/src/generated/ast.dart
@@ -6217,6 +6217,12 @@ class EnumConstantDeclaration extends Declaration {
@override
Token get firstTokenAfterCommentAndMetadata => _name.beginToken;
+
+ @override
+ void visitChildren(AstVisitor visitor) {
+ super.visitChildren(visitor);
+ safelyVisitChild(_name, visitor);
+ }
}
/**
@@ -6304,6 +6310,13 @@ class EnumDeclaration extends CompilationUnitMember {
@override
Token get firstTokenAfterCommentAndMetadata => keyword;
+
+ @override
+ void visitChildren(AstVisitor visitor) {
+ super.visitChildren(visitor);
+ safelyVisitChild(_name, visitor);
+ _constants.accept(visitor);
+ }
}
/**
@@ -15739,7 +15752,8 @@ class SimpleIdentifier extends Identifier {
AstNode parent = this.parent;
if (parent is CatchClause) {
CatchClause clause = parent;
- return identical(this, clause.exceptionParameter) || identical(this, clause.stackTraceParameter);
+ return identical(this, clause.exceptionParameter) ||
Brian Wilkerson 2014/10/26 18:36:53 nit: Personally, I prefer having the operator on t
scheglov 2014/10/26 21:08:08 https://www.dartlang.org/articles/style-guide/#do-
+ identical(this, clause.stackTraceParameter);
} else if (parent is ClassDeclaration) {
return identical(this, parent.name);
} else if (parent is ClassTypeAlias) {
@@ -15748,6 +15762,10 @@ class SimpleIdentifier extends Identifier {
return identical(this, parent.name);
} else if (parent is DeclaredIdentifier) {
return identical(this, parent.identifier);
+ } else if (parent is EnumDeclaration) {
+ return identical(this, parent.name);
+ } else if (parent is EnumConstantDeclaration) {
+ return identical(this, parent.name);
} else if (parent is FunctionDeclaration) {
return identical(this, parent.name);
} else if (parent is FunctionTypeAlias) {
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/ast_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698