| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |