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

Side by Side Diff: pkg/analyzer/lib/src/generated/ast.dart

Issue 136223002: Generate names for anonymous Java classes using enclosing classes and members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 3
4 library engine.ast; 4 library engine.ast;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'java_core.dart'; 7 import 'java_core.dart';
8 import 'java_engine.dart'; 8 import 'java_engine.dart';
9 import 'source.dart' show LineInfo; 9 import 'source.dart' show LineInfo;
10 import 'scanner.dart'; 10 import 'scanner.dart';
(...skipping 11898 matching lines...) Expand 10 before | Expand all | Expand 10 after
11909 next.accept(this); 11909 next.accept(this);
11910 } 11910 }
11911 } 11911 }
11912 11912
11913 R visitNode(ASTNode node) { 11913 R visitNode(ASTNode node) {
11914 node.visitChildren(_childVisitor); 11914 node.visitChildren(_childVisitor);
11915 return null; 11915 return null;
11916 } 11916 }
11917 11917
11918 BreadthFirstVisitor() { 11918 BreadthFirstVisitor() {
11919 this._childVisitor = new GeneralizingASTVisitor_2(this); 11919 this._childVisitor = new GeneralizingASTVisitor_BreadthFirstVisitor(this);
11920 } 11920 }
11921 } 11921 }
11922 11922
11923 class GeneralizingASTVisitor_2 extends GeneralizingASTVisitor<Object> { 11923 class GeneralizingASTVisitor_BreadthFirstVisitor extends GeneralizingASTVisitor< Object> {
11924 final BreadthFirstVisitor BreadthFirstVisitor_this; 11924 final BreadthFirstVisitor BreadthFirstVisitor_this;
11925 11925
11926 GeneralizingASTVisitor_2(this.BreadthFirstVisitor_this) : super(); 11926 GeneralizingASTVisitor_BreadthFirstVisitor(this.BreadthFirstVisitor_this) : su per();
11927 11927
11928 Object visitNode(ASTNode node) { 11928 Object visitNode(ASTNode node) {
11929 BreadthFirstVisitor_this._queue.add(node); 11929 BreadthFirstVisitor_this._queue.add(node);
11930 return null; 11930 return null;
11931 } 11931 }
11932 } 11932 }
11933 11933
11934 /** 11934 /**
11935 * Instances of the class `ConstantEvaluator` evaluate constant expressions to p roduce their 11935 * Instances of the class `ConstantEvaluator` evaluate constant expressions to p roduce their
11936 * compile-time value. According to the Dart Language Specification: <blockquote > A constant 11936 * compile-time value. According to the Dart Language Specification: <blockquote > A constant
(...skipping 4434 matching lines...) Expand 10 before | Expand all | Expand 10 after
16371 } 16371 }
16372 void operator[]=(int index, E node) { 16372 void operator[]=(int index, E node) {
16373 if (index < 0 || index >= _elements.length) { 16373 if (index < 0 || index >= _elements.length) {
16374 throw new RangeError("Index: ${index}, Size: ${_elements.length}"); 16374 throw new RangeError("Index: ${index}, Size: ${_elements.length}");
16375 } 16375 }
16376 owner.becomeParentOf(node); 16376 owner.becomeParentOf(node);
16377 _elements[index] = node; 16377 _elements[index] = node;
16378 } 16378 }
16379 int get length => _elements.length; 16379 int get length => _elements.length;
16380 } 16380 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698