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 analyzer.src.dart.element.element; | 5 library analyzer.src.dart.element.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/dart/ast/ast.dart'; |
10 import 'package:analyzer/dart/element/element.dart'; | 11 import 'package:analyzer/dart/element/element.dart'; |
11 import 'package:analyzer/dart/element/type.dart'; | 12 import 'package:analyzer/dart/element/type.dart'; |
12 import 'package:analyzer/dart/element/visitor.dart'; | 13 import 'package:analyzer/dart/element/visitor.dart'; |
| 14 import 'package:analyzer/src/dart/ast/utilities.dart'; |
13 import 'package:analyzer/src/dart/element/type.dart'; | 15 import 'package:analyzer/src/dart/element/type.dart'; |
14 import 'package:analyzer/src/generated/ast.dart'; | |
15 import 'package:analyzer/src/generated/constant.dart' | 16 import 'package:analyzer/src/generated/constant.dart' |
16 show DartObject, EvaluationResultImpl; | 17 show DartObject, EvaluationResultImpl; |
17 import 'package:analyzer/src/generated/engine.dart' | 18 import 'package:analyzer/src/generated/engine.dart' |
18 show AnalysisContext, AnalysisEngine, AnalysisException; | 19 show AnalysisContext, AnalysisEngine, AnalysisException; |
19 import 'package:analyzer/src/generated/java_core.dart'; | 20 import 'package:analyzer/src/generated/java_core.dart'; |
20 import 'package:analyzer/src/generated/java_engine.dart'; | 21 import 'package:analyzer/src/generated/java_engine.dart'; |
21 import 'package:analyzer/src/generated/resolver.dart'; | 22 import 'package:analyzer/src/generated/resolver.dart'; |
22 import 'package:analyzer/src/generated/scanner.dart' show Keyword; | 23 import 'package:analyzer/src/generated/scanner.dart' show Keyword; |
23 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; | 24 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; |
24 import 'package:analyzer/src/generated/source.dart'; | 25 import 'package:analyzer/src/generated/source.dart'; |
(...skipping 4562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4587 | 4588 |
4588 @override | 4589 @override |
4589 void visitElement(Element element) { | 4590 void visitElement(Element element) { |
4590 int offset = element.nameOffset; | 4591 int offset = element.nameOffset; |
4591 if (offset != -1) { | 4592 if (offset != -1) { |
4592 map[offset] = element; | 4593 map[offset] = element; |
4593 } | 4594 } |
4594 super.visitElement(element); | 4595 super.visitElement(element); |
4595 } | 4596 } |
4596 } | 4597 } |
OLD | NEW |