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

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

Issue 2342733002: Break up another large file (Closed)
Patch Set: fixed floating comment Created 4 years, 3 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/hint_code_test.dart
diff --git a/pkg/analyzer/test/generated/hint_code_test.dart b/pkg/analyzer/test/generated/hint_code_test.dart
index b0030895c02545ce66a3d638e30fe605639585ac..750ef781a9e8e51d160cf6b77e014eb88ff130f3 100644
--- a/pkg/analyzer/test/generated/hint_code_test.dart
+++ b/pkg/analyzer/test/generated/hint_code_test.dart
@@ -4,8 +4,9 @@
library analyzer.test.generated.hint_code_test;
+import 'package:analyzer/error/error.dart';
+import 'package:analyzer/src/error/codes.dart';
import 'package:analyzer/src/generated/engine.dart';
-import 'package:analyzer/src/generated/error.dart';
import 'package:analyzer/src/generated/parser.dart';
import 'package:analyzer/src/generated/source_io.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
@@ -108,10 +109,15 @@ m(x) {
verify([source]);
}
- void test_canBeNullAfterNullAware_false_propertyAccess() {
+ void test_canBeNullAfterNullAware_false_null() {
Source source = addSource(r'''
m(x) {
- x?.a?.b;
+ x?.a.hashCode;
+ x?.a.runtimeType;
+ x?.a.toString();
+ x?.b().hashCode;
+ x?.b().runtimeType;
+ x?.b().toString();
}
''');
computeLibrarySourceErrors(source);
@@ -119,15 +125,10 @@ m(x) {
verify([source]);
}
- void test_canBeNullAfterNullAware_false_null() {
+ void test_canBeNullAfterNullAware_false_propertyAccess() {
Source source = addSource(r'''
m(x) {
- x?.a.hashCode;
- x?.a.runtimeType;
- x?.a.toString();
- x?.b().hashCode;
- x?.b().runtimeType;
- x?.b().toString();
+ x?.a?.b;
}
''');
computeLibrarySourceErrors(source);
« no previous file with comments | « pkg/analyzer/test/generated/error_suppression_test.dart ('k') | pkg/analyzer/test/generated/incremental_resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698