Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Unified Diff: pkg/analyzer/test/generated/resolver_test.dart

Issue 46593003: Add @proxy to annotations.dart - remove package:meta. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/generated/resolver_test.dart
diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart
index ec6d98764aebec031129f9d055e1047b70004e5f..07b7193abe0046c1f58326a4b58f2ee0cab11257 100644
--- a/pkg/analyzer/test/generated/resolver_test.dart
+++ b/pkg/analyzer/test/generated/resolver_test.dart
@@ -2936,7 +2936,6 @@ class NonErrorResolverTest extends ResolverTestCase {
void test_proxy_annotation_prefixed() {
Source source = addSource(EngineTestCase.createSource([
"library L;",
- "import 'meta.dart';",
"@proxy",
"class A {}",
"f(A a) {",
@@ -2947,17 +2946,12 @@ class NonErrorResolverTest extends ResolverTestCase {
" a++;",
" ++a;",
"}"]));
- addSource2("/meta.dart", EngineTestCase.createSource([
- "library meta;",
- "const proxy = const _Proxy();",
- "class _Proxy { const _Proxy(); }"]));
resolve(source);
assertNoErrors(source);
}
void test_proxy_annotation_prefixed2() {
Source source = addSource(EngineTestCase.createSource([
"library L;",
- "import 'meta.dart';",
"@proxy",
"class A {}",
"class B {",
@@ -2970,17 +2964,12 @@ class NonErrorResolverTest extends ResolverTestCase {
" ++a;",
" }",
"}"]));
- addSource2("/meta.dart", EngineTestCase.createSource([
- "library meta;",
- "const proxy = const _Proxy();",
- "class _Proxy { const _Proxy(); }"]));
resolve(source);
assertNoErrors(source);
}
void test_proxy_annotation_prefixed3() {
Source source = addSource(EngineTestCase.createSource([
"library L;",
- "import 'meta.dart';",
"class B {",
" f(A a) {",
" a.m();",
@@ -2993,17 +2982,12 @@ class NonErrorResolverTest extends ResolverTestCase {
"}",
"@proxy",
"class A {}"]));
- addSource2("/meta.dart", EngineTestCase.createSource([
- "library meta;",
- "const proxy = const _Proxy();",
- "class _Proxy { const _Proxy(); }"]));
resolve(source);
assertNoErrors(source);
}
void test_proxy_annotation_simple() {
Source source = addSource(EngineTestCase.createSource([
"library L;",
- "import 'meta.dart';",
"@proxy",
"class B {",
" m() {",
@@ -3013,10 +2997,6 @@ class NonErrorResolverTest extends ResolverTestCase {
" var y = this + this;",
" }",
"}"]));
- addSource2("/meta.dart", EngineTestCase.createSource([
- "library meta;",
- "const proxy = const _Proxy();",
- "class _Proxy { const _Proxy(); }"]));
resolve(source);
assertNoErrors(source);
}
@@ -18404,7 +18384,6 @@ class NonHintCodeTest extends ResolverTestCase {
void test_proxy_annotation_prefixed() {
Source source = addSource(EngineTestCase.createSource([
"library L;",
- "import 'meta.dart';",
"@proxy",
"class A {}",
"f(var a) {",
@@ -18416,17 +18395,12 @@ class NonHintCodeTest extends ResolverTestCase {
" a++;",
" ++a;",
"}"]));
- addSource2("/meta.dart", EngineTestCase.createSource([
- "library meta;",
- "const proxy = const _Proxy();",
- "class _Proxy { const _Proxy(); }"]));
resolve(source);
assertNoErrors(source);
}
void test_proxy_annotation_prefixed2() {
Source source = addSource(EngineTestCase.createSource([
"library L;",
- "import 'meta.dart';",
"@proxy",
"class A {}",
"class B {",
@@ -18440,17 +18414,12 @@ class NonHintCodeTest extends ResolverTestCase {
" ++a;",
" }",
"}"]));
- addSource2("/meta.dart", EngineTestCase.createSource([
- "library meta;",
- "const proxy = const _Proxy();",
- "class _Proxy { const _Proxy(); }"]));
resolve(source);
assertNoErrors(source);
}
void test_proxy_annotation_prefixed3() {
Source source = addSource(EngineTestCase.createSource([
"library L;",
- "import 'meta.dart';",
"class B {",
" f(var a) {",
" a = new A();",
@@ -18464,10 +18433,6 @@ class NonHintCodeTest extends ResolverTestCase {
"}",
"@proxy",
"class A {}"]));
- addSource2("/meta.dart", EngineTestCase.createSource([
- "library meta;",
- "const proxy = const _Proxy();",
- "class _Proxy { const _Proxy(); }"]));
resolve(source);
assertNoErrors(source);
}
@@ -20077,4 +20042,4 @@ main() {
// StaticWarningCodeTest.dartSuite();
// StrictModeTest.dartSuite();
// TypePropagationTest.dartSuite();
-}
+}

Powered by Google App Engine
This is Rietveld 408576698