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 library analyzer.test.src.context.context_builder_test; | 5 library analyzer.test.src.context.context_builder_test; |
6 | 6 |
7 import 'package:analyzer/context/context_root.dart'; | 7 import 'package:analyzer/context/context_root.dart'; |
8 import 'package:analyzer/file_system/file_system.dart'; | 8 import 'package:analyzer/file_system/file_system.dart'; |
9 import 'package:analyzer/file_system/memory_file_system.dart'; | 9 import 'package:analyzer/file_system/memory_file_system.dart'; |
10 import 'package:analyzer/source/package_map_resolver.dart'; | 10 import 'package:analyzer/source/package_map_resolver.dart'; |
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 expect(actual.generateSdkErrors, expected.generateSdkErrors); | 1007 expect(actual.generateSdkErrors, expected.generateSdkErrors); |
1008 expect(actual.hint, expected.hint); | 1008 expect(actual.hint, expected.hint); |
1009 expect(actual.lint, expected.lint); | 1009 expect(actual.lint, expected.lint); |
1010 expect( | 1010 expect( |
1011 actual.lintRules.map((l) => l.name), | 1011 actual.lintRules.map((l) => l.name), |
1012 unorderedEquals(expected.lintRules.map((l) => l.name)), | 1012 unorderedEquals(expected.lintRules.map((l) => l.name)), |
1013 ); | 1013 ); |
1014 expect(actual.preserveComments, expected.preserveComments); | 1014 expect(actual.preserveComments, expected.preserveComments); |
1015 expect(actual.strongMode, expected.strongMode); | 1015 expect(actual.strongMode, expected.strongMode); |
1016 expect(actual.strongModeHints, expected.strongModeHints); | 1016 expect(actual.strongModeHints, expected.strongModeHints); |
| 1017 expect(actual.declarationCasts, expected.declarationCasts); |
1017 expect(actual.implicitCasts, expected.implicitCasts); | 1018 expect(actual.implicitCasts, expected.implicitCasts); |
1018 expect(actual.implicitDynamic, expected.implicitDynamic); | 1019 expect(actual.implicitDynamic, expected.implicitDynamic); |
1019 expect(actual.trackCacheDependencies, expected.trackCacheDependencies); | 1020 expect(actual.trackCacheDependencies, expected.trackCacheDependencies); |
1020 expect(actual.disableCacheFlushing, expected.disableCacheFlushing); | 1021 expect(actual.disableCacheFlushing, expected.disableCacheFlushing); |
1021 } | 1022 } |
1022 | 1023 |
1023 Uri _relativeUri(String path, {String from}) { | 1024 Uri _relativeUri(String path, {String from}) { |
1024 String relativePath = pathContext.relative(path, from: from); | 1025 String relativePath = pathContext.relative(path, from: from); |
1025 return pathContext.toUri(relativePath); | 1026 return pathContext.toUri(relativePath); |
1026 } | 1027 } |
(...skipping 25 matching lines...) Expand all Loading... |
1052 class _MockLintRule implements LintRule { | 1053 class _MockLintRule implements LintRule { |
1053 final String _name; | 1054 final String _name; |
1054 | 1055 |
1055 _MockLintRule(this._name); | 1056 _MockLintRule(this._name); |
1056 | 1057 |
1057 @override | 1058 @override |
1058 String get name => _name; | 1059 String get name => _name; |
1059 | 1060 |
1060 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 1061 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
1061 } | 1062 } |
OLD | NEW |