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 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/element/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
9 import 'package:analyzer/src/generated/engine.dart' show AnalysisContext; | 9 import 'package:analyzer/src/generated/engine.dart' show AnalysisContext; |
10 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 i++) { | 539 i++) { |
540 unitLibraryUri ??= packageRequester.getUnitLibraryUri(unitIndex.unit); | 540 unitLibraryUri ??= packageRequester.getUnitLibraryUri(unitIndex.unit); |
541 unitUnitUri ??= packageRequester.getUnitUnitUri(unitIndex.unit); | 541 unitUnitUri ??= packageRequester.getUnitUnitUri(unitIndex.unit); |
542 locations.add(new Location( | 542 locations.add(new Location( |
543 context, | 543 context, |
544 unitLibraryUri, | 544 unitLibraryUri, |
545 unitUnitUri, | 545 unitUnitUri, |
546 unitIndex.usedNameKinds[i], | 546 unitIndex.usedNameKinds[i], |
547 unitIndex.usedNameOffsets[i], | 547 unitIndex.usedNameOffsets[i], |
548 name.length, | 548 name.length, |
549 true, | 549 unitIndex.usedNameIsQualifiedFlags[i], |
550 false)); | 550 false)); |
551 } | 551 } |
552 return locations; | 552 return locations; |
553 } | 553 } |
554 } | 554 } |
OLD | NEW |