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

Side by Side Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 1693083004: Move scanner out of generated and clean up imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: clean up Created 4 years, 10 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
OLDNEW
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/ast/ast.dart';
11 import 'package:analyzer/dart/ast/token.dart';
11 import 'package:analyzer/dart/element/element.dart'; 12 import 'package:analyzer/dart/element/element.dart';
12 import 'package:analyzer/dart/element/type.dart'; 13 import 'package:analyzer/dart/element/type.dart';
13 import 'package:analyzer/dart/element/visitor.dart'; 14 import 'package:analyzer/dart/element/visitor.dart';
14 import 'package:analyzer/src/dart/ast/utilities.dart'; 15 import 'package:analyzer/src/dart/ast/utilities.dart';
15 import 'package:analyzer/src/dart/element/type.dart'; 16 import 'package:analyzer/src/dart/element/type.dart';
16 import 'package:analyzer/src/generated/constant.dart' 17 import 'package:analyzer/src/generated/constant.dart'
17 show DartObject, EvaluationResultImpl; 18 show DartObject, EvaluationResultImpl;
18 import 'package:analyzer/src/generated/engine.dart' 19 import 'package:analyzer/src/generated/engine.dart'
19 show AnalysisContext, AnalysisEngine; 20 show AnalysisContext, AnalysisEngine;
20 import 'package:analyzer/src/generated/java_core.dart'; 21 import 'package:analyzer/src/generated/java_core.dart';
21 import 'package:analyzer/src/generated/java_engine.dart'; 22 import 'package:analyzer/src/generated/java_engine.dart';
22 import 'package:analyzer/src/generated/resolver.dart'; 23 import 'package:analyzer/src/generated/resolver.dart';
23 import 'package:analyzer/src/generated/scanner.dart' show Keyword;
24 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; 24 import 'package:analyzer/src/generated/sdk.dart' show DartSdk;
25 import 'package:analyzer/src/generated/source.dart'; 25 import 'package:analyzer/src/generated/source.dart';
26 import 'package:analyzer/src/generated/utilities_collection.dart'; 26 import 'package:analyzer/src/generated/utilities_collection.dart';
27 import 'package:analyzer/src/generated/utilities_dart.dart'; 27 import 'package:analyzer/src/generated/utilities_dart.dart';
28 import 'package:analyzer/src/generated/utilities_general.dart'; 28 import 'package:analyzer/src/generated/utilities_general.dart';
29 29
30 /** 30 /**
31 * For AST nodes that could be in both the getter and setter contexts 31 * For AST nodes that could be in both the getter and setter contexts
32 * ([IndexExpression]s and [SimpleIdentifier]s), the additional resolved 32 * ([IndexExpression]s and [SimpleIdentifier]s), the additional resolved
33 * elements are stored in the AST node, in an [AuxiliaryElements]. Because 33 * elements are stored in the AST node, in an [AuxiliaryElements]. Because
(...skipping 4757 matching lines...) Expand 10 before | Expand all | Expand 10 after
4791 4791
4792 @override 4792 @override
4793 void visitElement(Element element) { 4793 void visitElement(Element element) {
4794 int offset = element.nameOffset; 4794 int offset = element.nameOffset;
4795 if (offset != -1) { 4795 if (offset != -1) {
4796 map[offset] = element; 4796 map[offset] = element;
4797 } 4797 }
4798 super.visitElement(element); 4798 super.visitElement(element);
4799 } 4799 }
4800 } 4800 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/builder.dart ('k') | pkg/analyzer/lib/src/dart/element/type.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698