| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library engine.parser; | 5 library analyzer.src.generated.parser; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import "dart:math" as math; | 8 import "dart:math" as math; |
| 9 | 9 |
| 10 import 'ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| 11 import 'engine.dart' show AnalysisEngine, AnalysisOptionsImpl; | 11 import 'package:analyzer/src/generated/engine.dart' |
| 12 import 'error.dart'; | 12 show AnalysisEngine, AnalysisOptionsImpl; |
| 13 import 'java_core.dart'; | 13 import 'package:analyzer/src/generated/error.dart'; |
| 14 import 'java_engine.dart'; | 14 import 'package:analyzer/src/generated/java_core.dart'; |
| 15 import 'scanner.dart'; | 15 import 'package:analyzer/src/generated/java_engine.dart'; |
| 16 import 'source.dart'; | 16 import 'package:analyzer/src/generated/scanner.dart'; |
| 17 import 'utilities_collection.dart' show TokenMap; | 17 import 'package:analyzer/src/generated/source.dart'; |
| 18 import 'utilities_dart.dart'; | 18 import 'package:analyzer/src/generated/utilities_collection.dart' show TokenMap; |
| 19 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| 19 | 20 |
| 20 Map<String, MethodTrampoline> methodTable_Parser = <String, MethodTrampoline>{ | 21 Map<String, MethodTrampoline> methodTable_Parser = <String, MethodTrampoline>{ |
| 21 'parseCompilationUnit_1': new MethodTrampoline( | 22 'parseCompilationUnit_1': new MethodTrampoline( |
| 22 1, (Parser target, arg0) => target.parseCompilationUnit(arg0)), | 23 1, (Parser target, arg0) => target.parseCompilationUnit(arg0)), |
| 23 'parseDirectives_1': new MethodTrampoline( | 24 'parseDirectives_1': new MethodTrampoline( |
| 24 1, (Parser target, arg0) => target.parseDirectives(arg0)), | 25 1, (Parser target, arg0) => target.parseDirectives(arg0)), |
| 25 'parseExpression_1': new MethodTrampoline( | 26 'parseExpression_1': new MethodTrampoline( |
| 26 1, (Parser target, arg0) => target.parseExpression(arg0)), | 27 1, (Parser target, arg0) => target.parseExpression(arg0)), |
| 27 'parseStatement_1': new MethodTrampoline( | 28 'parseStatement_1': new MethodTrampoline( |
| 28 1, (Parser target, arg0) => target.parseStatement(arg0)), | 29 1, (Parser target, arg0) => target.parseStatement(arg0)), |
| (...skipping 11257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11286 } | 11287 } |
| 11287 | 11288 |
| 11288 /** | 11289 /** |
| 11289 * Copy resolution data from the [fromNode] to the [toNode]. | 11290 * Copy resolution data from the [fromNode] to the [toNode]. |
| 11290 */ | 11291 */ |
| 11291 static void copyResolutionData(AstNode fromNode, AstNode toNode) { | 11292 static void copyResolutionData(AstNode fromNode, AstNode toNode) { |
| 11292 ResolutionCopier copier = new ResolutionCopier(); | 11293 ResolutionCopier copier = new ResolutionCopier(); |
| 11293 copier._isEqualNodes(fromNode, toNode); | 11294 copier._isEqualNodes(fromNode, toNode); |
| 11294 } | 11295 } |
| 11295 } | 11296 } |
| OLD | NEW |