OLD | NEW |
1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
3 | 3 |
4 library engine.resolver_test; | 4 library engine.resolver_test; |
5 | 5 |
6 import 'dart:collection'; | 6 import 'dart:collection'; |
7 import 'package:analyzer_experimental/src/generated/java_core.dart'; | 7 import 'package:analyzer_experimental/src/generated/java_core.dart'; |
8 import 'package:analyzer_experimental/src/generated/java_engine.dart'; | 8 import 'package:analyzer_experimental/src/generated/java_engine.dart'; |
9 import 'package:analyzer_experimental/src/generated/java_junit.dart'; | 9 import 'package:analyzer_experimental/src/generated/java_junit.dart'; |
10 import 'package:analyzer_experimental/src/generated/source_io.dart'; | 10 import 'package:analyzer_experimental/src/generated/source_io.dart'; |
(...skipping 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2223 assertErrors([CompileTimeErrorCode.OVERRIDE_MISSING_NAMED_PARAMETERS]); | 2223 assertErrors([CompileTimeErrorCode.OVERRIDE_MISSING_NAMED_PARAMETERS]); |
2224 verify([source]); | 2224 verify([source]); |
2225 } | 2225 } |
2226 void fail_overrideMissingRequiredParameters() { | 2226 void fail_overrideMissingRequiredParameters() { |
2227 Source source = addSource(EngineTestCase.createSource(["class A {", " m(a)
{}", "}", "class B extends A {", " m(a, b) {}", "}"])); | 2227 Source source = addSource(EngineTestCase.createSource(["class A {", " m(a)
{}", "}", "class B extends A {", " m(a, b) {}", "}"])); |
2228 resolve(source, []); | 2228 resolve(source, []); |
2229 assertErrors([CompileTimeErrorCode.OVERRIDE_MISSING_REQUIRED_PARAMETERS]); | 2229 assertErrors([CompileTimeErrorCode.OVERRIDE_MISSING_REQUIRED_PARAMETERS]); |
2230 verify([source]); | 2230 verify([source]); |
2231 } | 2231 } |
2232 void fail_prefixCollidesWithTopLevelMembers() { | 2232 void fail_prefixCollidesWithTopLevelMembers() { |
2233 Source source = addSource(EngineTestCase.createSource(["import 'dart:uri' as
uri;", "var uri = null;"])); | 2233 Source source = addSource(EngineTestCase.createSource(["import 'dart:uft' as
utf;", "var utf = null;"])); |
2234 resolve(source, []); | 2234 resolve(source, []); |
2235 assertErrors([CompileTimeErrorCode.PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER]); | 2235 assertErrors([CompileTimeErrorCode.PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER]); |
2236 verify([source]); | 2236 verify([source]); |
2237 } | 2237 } |
2238 void fail_recursiveCompileTimeConstant() { | 2238 void fail_recursiveCompileTimeConstant() { |
2239 Source source = addSource(EngineTestCase.createSource(["const x = y + 1;", "
const y = x + 1;"])); | 2239 Source source = addSource(EngineTestCase.createSource(["const x = y + 1;", "
const y = x + 1;"])); |
2240 resolve(source, []); | 2240 resolve(source, []); |
2241 assertErrors([CompileTimeErrorCode.RECURSIVE_COMPILE_TIME_CONSTANT]); | 2241 assertErrors([CompileTimeErrorCode.RECURSIVE_COMPILE_TIME_CONSTANT]); |
2242 verify([source]); | 2242 verify([source]); |
2243 } | 2243 } |
(...skipping 4514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6758 // LibraryImportScopeTest.dartSuite(); | 6758 // LibraryImportScopeTest.dartSuite(); |
6759 // LibraryScopeTest.dartSuite(); | 6759 // LibraryScopeTest.dartSuite(); |
6760 // ScopeTest.dartSuite(); | 6760 // ScopeTest.dartSuite(); |
6761 // CompileTimeErrorCodeTest.dartSuite(); | 6761 // CompileTimeErrorCodeTest.dartSuite(); |
6762 // ErrorResolverTest.dartSuite(); | 6762 // ErrorResolverTest.dartSuite(); |
6763 // NonErrorResolverTest.dartSuite(); | 6763 // NonErrorResolverTest.dartSuite(); |
6764 // SimpleResolverTest.dartSuite(); | 6764 // SimpleResolverTest.dartSuite(); |
6765 // StaticTypeWarningCodeTest.dartSuite(); | 6765 // StaticTypeWarningCodeTest.dartSuite(); |
6766 // StaticWarningCodeTest.dartSuite(); | 6766 // StaticWarningCodeTest.dartSuite(); |
6767 // TypePropagationTest.dartSuite(); | 6767 // TypePropagationTest.dartSuite(); |
6768 } | 6768 } |
OLD | NEW |