| 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.element; | 5 library engine.element; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:math' show min; | 8 import 'dart:math' show min; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/utilities_general.dart'; | 10 import 'package:analyzer/src/generated/utilities_general.dart'; |
| 11 import 'package:analyzer/src/task/dart.dart'; | 11 import 'package:analyzer/src/task/dart.dart'; |
| 12 import 'package:analyzer/task/model.dart' | 12 import 'package:analyzer/task/model.dart' show AnalysisTarget; |
| 13 show AnalysisTarget, ConstantEvaluationTarget; | |
| 14 | 13 |
| 15 import 'ast.dart'; | 14 import 'ast.dart'; |
| 16 import 'constant.dart' show DartObject, EvaluationResultImpl; | 15 import 'constant.dart' show DartObject, EvaluationResultImpl; |
| 17 import 'engine.dart' show AnalysisContext, AnalysisEngine, AnalysisException; | 16 import 'engine.dart' show AnalysisContext, AnalysisEngine; |
| 18 import 'html.dart' show XmlAttributeNode, XmlTagNode; | 17 import 'html.dart' show XmlAttributeNode, XmlTagNode; |
| 19 import 'java_core.dart'; | 18 import 'java_core.dart'; |
| 20 import 'java_engine.dart'; | 19 import 'java_engine.dart'; |
| 21 import 'resolver.dart'; | 20 import 'resolver.dart'; |
| 22 import 'scanner.dart' show Keyword; | 21 import 'scanner.dart' show Keyword; |
| 23 import 'sdk.dart' show DartSdk; | 22 import 'sdk.dart' show DartSdk; |
| 24 import 'source.dart'; | 23 import 'source.dart'; |
| 25 import 'utilities_collection.dart'; | 24 import 'utilities_collection.dart'; |
| 26 import 'utilities_dart.dart'; | 25 import 'utilities_dart.dart'; |
| 27 | 26 |
| (...skipping 11293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11321 | 11320 |
| 11322 @override | 11321 @override |
| 11323 void visitElement(Element element) { | 11322 void visitElement(Element element) { |
| 11324 int offset = element.nameOffset; | 11323 int offset = element.nameOffset; |
| 11325 if (offset != -1) { | 11324 if (offset != -1) { |
| 11326 map[offset] = element; | 11325 map[offset] = element; |
| 11327 } | 11326 } |
| 11328 super.visitElement(element); | 11327 super.visitElement(element); |
| 11329 } | 11328 } |
| 11330 } | 11329 } |
| OLD | NEW |