OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'package:analyzer/dart/ast/ast.dart'; | 5 import 'package:analyzer/dart/ast/ast.dart'; |
6 import 'package:analyzer/dart/ast/token.dart'; | 6 import 'package:analyzer/dart/ast/token.dart'; |
7 import 'package:analyzer/dart/ast/visitor.dart'; | 7 import 'package:analyzer/dart/ast/visitor.dart'; |
8 import 'package:analyzer/dart/element/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
9 import 'package:analyzer/dart/element/type.dart'; | 9 import 'package:analyzer/dart/element/type.dart'; |
10 import 'package:analyzer/src/dart/element/member.dart'; | 10 import 'package:analyzer/src/dart/element/member.dart'; |
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 usedNameOffsets: nameRelations.map((r) => r.offset).toList(), | 899 usedNameOffsets: nameRelations.map((r) => r.offset).toList(), |
900 usedNameIsQualifiedFlags: | 900 usedNameIsQualifiedFlags: |
901 nameRelations.map((r) => r.isQualified).toList()); | 901 nameRelations.map((r) => r.isQualified).toList()); |
902 } | 902 } |
903 | 903 |
904 void defineName(String name, IndexNameKind kind, int offset) { | 904 void defineName(String name, IndexNameKind kind, int offset) { |
905 _StringInfo nameInfo = pkg._getStringInfo(name); | 905 _StringInfo nameInfo = pkg._getStringInfo(name); |
906 definedNames.add(new _DefinedNameInfo(nameInfo, kind, offset)); | 906 definedNames.add(new _DefinedNameInfo(nameInfo, kind, offset)); |
907 } | 907 } |
908 } | 908 } |
OLD | NEW |