OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 dart2js.compiler_base; | 5 library dart2js.compiler_base; |
6 | 6 |
7 import 'dart:async' show | 7 import 'dart:async' show |
8 EventSink, | 8 EventSink, |
9 Future; | 9 Future; |
10 | 10 |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 } | 922 } |
923 if (errorElement != null && | 923 if (errorElement != null && |
924 errorElement.isSynthesized && | 924 errorElement.isSynthesized && |
925 !mainApp.isSynthesized) { | 925 !mainApp.isSynthesized) { |
926 reporter.reportWarningMessage( | 926 reporter.reportWarningMessage( |
927 errorElement, errorElement.messageKind, | 927 errorElement, errorElement.messageKind, |
928 errorElement.messageArguments); | 928 errorElement.messageArguments); |
929 } | 929 } |
930 } | 930 } |
931 | 931 |
932 /// Analyze all member of the library in [libraryUri]. | 932 /// Analyze all members of the library in [libraryUri]. |
933 /// | 933 /// |
934 /// If [skipLibraryWithPartOfTag] is `true`, member analysis is skipped if the | 934 /// If [skipLibraryWithPartOfTag] is `true`, member analysis is skipped if the |
935 /// library has a `part of` tag, assuming it is a part and not a library. | 935 /// library has a `part of` tag, assuming it is a part and not a library. |
936 /// | 936 /// |
937 /// This operation assumes an unclosed resolution queue and is only supported | 937 /// This operation assumes an unclosed resolution queue and is only supported |
938 /// when the '--analyze-main' option is used. | 938 /// when the '--analyze-main' option is used. |
939 Future<LibraryElement> analyzeUri( | 939 Future<LibraryElement> analyzeUri( |
940 Uri libraryUri, | 940 Uri libraryUri, |
941 {bool skipLibraryWithPartOfTag: true}) { | 941 {bool skipLibraryWithPartOfTag: true}) { |
942 assert(analyzeMain); | 942 assert(analyzeMain); |
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2051 if (_otherDependencies == null) { | 2051 if (_otherDependencies == null) { |
2052 _otherDependencies = new Setlet<Element>(); | 2052 _otherDependencies = new Setlet<Element>(); |
2053 } | 2053 } |
2054 _otherDependencies.add(element.implementation); | 2054 _otherDependencies.add(element.implementation); |
2055 } | 2055 } |
2056 | 2056 |
2057 Iterable<Element> get otherDependencies { | 2057 Iterable<Element> get otherDependencies { |
2058 return _otherDependencies != null ? _otherDependencies : const <Element>[]; | 2058 return _otherDependencies != null ? _otherDependencies : const <Element>[]; |
2059 } | 2059 } |
2060 } | 2060 } |
OLD | NEW |