OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.task.dart; | 5 library analyzer.src.task.dart; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1619 } | 1619 } |
1620 } | 1620 } |
1621 if (entryPoint == null) { | 1621 if (entryPoint == null) { |
1622 entryPoint = _findEntryPoint(partElement); | 1622 entryPoint = _findEntryPoint(partElement); |
1623 } | 1623 } |
1624 directive.element = partElement; | 1624 directive.element = partElement; |
1625 sourcedCompilationUnits.add(partElement); | 1625 sourcedCompilationUnits.add(partElement); |
1626 } | 1626 } |
1627 } | 1627 } |
1628 } | 1628 } |
1629 if (hasPartDirective && libraryNameNode == null && | 1629 if (hasPartDirective && |
| 1630 libraryNameNode == null && |
1630 !context.analysisOptions.enableUriInPartOf) { | 1631 !context.analysisOptions.enableUriInPartOf) { |
1631 errors.add(new AnalysisError(librarySource, 0, 0, | 1632 errors.add(new AnalysisError(librarySource, 0, 0, |
1632 ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART)); | 1633 ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART)); |
1633 } | 1634 } |
1634 // | 1635 // |
1635 // Create and populate the library element. | 1636 // Create and populate the library element. |
1636 // | 1637 // |
1637 AnalysisContext owningContext = context; | 1638 AnalysisContext owningContext = context; |
1638 if (context is InternalAnalysisContext) { | 1639 if (context is InternalAnalysisContext) { |
1639 InternalAnalysisContext internalContext = context; | 1640 InternalAnalysisContext internalContext = context; |
(...skipping 4915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6555 | 6556 |
6556 @override | 6557 @override |
6557 bool moveNext() { | 6558 bool moveNext() { |
6558 if (_newSources.isEmpty) { | 6559 if (_newSources.isEmpty) { |
6559 return false; | 6560 return false; |
6560 } | 6561 } |
6561 currentTarget = _newSources.removeLast(); | 6562 currentTarget = _newSources.removeLast(); |
6562 return true; | 6563 return true; |
6563 } | 6564 } |
6564 } | 6565 } |
OLD | NEW |