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

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

Issue 1173523002: Fix analyzer's handling of import prefixes not followed by '.'. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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/static_warning_code_test.dart
diff --git a/pkg/analyzer/test/generated/static_warning_code_test.dart b/pkg/analyzer/test/generated/static_warning_code_test.dart
index 6df4785a2bf39394eedc1d301f1b442a268d8c06..0aac65afcdd935aab311d06c102cad029d461f9e 100644
--- a/pkg/analyzer/test/generated/static_warning_code_test.dart
+++ b/pkg/analyzer/test/generated/static_warning_code_test.dart
@@ -3371,39 +3371,12 @@ f(var l) {
assertErrors(source, [StaticWarningCode.UNDEFINED_IDENTIFIER]);
}
- void test_undefinedIdentifier_function_prefix() {
- addNamedSource("/lib.dart", r'''
-library lib;
-class C {}''');
- Source source = addSource(r'''
-import 'lib.dart' as b;
-
-int a() => b;
-b.C c;''');
- resolve(source);
- assertErrors(source, [StaticWarningCode.UNDEFINED_IDENTIFIER]);
- verify([source]);
- }
-
void test_undefinedIdentifier_initializer() {
Source source = addSource("var a = b;");
resolve(source);
assertErrors(source, [StaticWarningCode.UNDEFINED_IDENTIFIER]);
}
- void test_undefinedIdentifier_initializer_prefix() {
- addNamedSource("/lib.dart", r'''
-library lib;
-class C {}''');
- Source source = addSource(r'''
-import 'lib.dart' as b;
-
-var a = b;
-b.C c;''');
- resolve(source);
- assertErrors(source, [StaticWarningCode.UNDEFINED_IDENTIFIER]);
- }
-
void test_undefinedIdentifier_methodInvocation() {
Source source = addSource("f() { C.m(); }");
resolve(source);
« no previous file with comments | « pkg/analyzer/test/generated/static_type_warning_code_test.dart ('k') | tests/language/conditional_method_invocation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698