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

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_test.dart

Issue 1577033002: Fix for resynthesizing implicit top-level variables. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 test.src.serialization.elements_test; 5 library test.src.serialization.elements_test;
6 6
7 import 'package:analyzer/src/generated/element.dart'; 7 import 'package:analyzer/src/generated/element.dart';
8 import 'package:analyzer/src/generated/engine.dart'; 8 import 'package:analyzer/src/generated/engine.dart';
9 import 'package:analyzer/src/generated/source.dart'; 9 import 'package:analyzer/src/generated/source.dart';
10 import 'package:analyzer/src/summary/format.dart'; 10 import 'package:analyzer/src/summary/format.dart';
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 } 984 }
985 985
986 test_getter_external() { 986 test_getter_external() {
987 checkLibrary('external int get x;'); 987 checkLibrary('external int get x;');
988 } 988 }
989 989
990 test_getters() { 990 test_getters() {
991 checkLibrary('int get x => null; get y => null;'); 991 checkLibrary('int get x => null; get y => null;');
992 } 992 }
993 993
994 test_implicitTopLevelVariable_getterFirst() {
995 checkLibrary('int get x => 0; void set x(int value) {}');
996 }
997
998 test_implicitTopLevelVariable_setterFirst() {
999 checkLibrary('void set x(int value) {} int get x => 0;');
1000 }
1001
994 test_import_hide() { 1002 test_import_hide() {
995 addLibrary('dart:async'); 1003 addLibrary('dart:async');
996 checkLibrary('import "dart:async" hide Stream, Completer; Future f;'); 1004 checkLibrary('import "dart:async" hide Stream, Completer; Future f;');
997 } 1005 }
998 1006
999 test_import_multiple_combinators() { 1007 test_import_multiple_combinators() {
1000 addLibrary('dart:async'); 1008 addLibrary('dart:async');
1001 checkLibrary('import "dart:async" hide Stream show Future; Future f;'); 1009 checkLibrary('import "dart:async" hide Stream show Future; Future f;');
1002 } 1010 }
1003 1011
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 } 1355 }
1348 1356
1349 test_variable_implicit_type() { 1357 test_variable_implicit_type() {
1350 checkLibrary('var x;'); 1358 checkLibrary('var x;');
1351 } 1359 }
1352 1360
1353 test_variables() { 1361 test_variables() {
1354 checkLibrary('int i; int j;'); 1362 checkLibrary('int i; int j;');
1355 } 1363 }
1356 } 1364 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698