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

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

Issue 1575323003: Resynth the 'final' property of 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/resolver.dart' show Namespace; 9 import 'package:analyzer/src/generated/resolver.dart' show Namespace;
10 import 'package:analyzer/src/generated/source.dart'; 10 import 'package:analyzer/src/generated/source.dart';
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 1379
1380 test_variable_documented() { 1380 test_variable_documented() {
1381 checkLibrary(''' 1381 checkLibrary('''
1382 // Extra comment so doc comment offset != 0 1382 // Extra comment so doc comment offset != 0
1383 /** 1383 /**
1384 * Docs 1384 * Docs
1385 */ 1385 */
1386 var x;'''); 1386 var x;''');
1387 } 1387 }
1388 1388
1389 test_variable_final() {
1390 checkLibrary('final int x = 0;');
1391 }
1392
1389 test_variable_implicit_type() { 1393 test_variable_implicit_type() {
1390 checkLibrary('var x;'); 1394 checkLibrary('var x;');
1391 } 1395 }
1392 1396
1393 test_variables() { 1397 test_variables() {
1394 checkLibrary('int i; int j;'); 1398 checkLibrary('int i; int j;');
1395 } 1399 }
1396 } 1400 }
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