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

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

Issue 1577413002: Patch together getters/setters in different parts. (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
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 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 1374
1375 test_variable_documented() { 1375 test_variable_documented() {
1376 checkLibrary(''' 1376 checkLibrary('''
1377 // Extra comment so doc comment offset != 0 1377 // Extra comment so doc comment offset != 0
1378 /** 1378 /**
1379 * Docs 1379 * Docs
1380 */ 1380 */
1381 var x;'''); 1381 var x;''');
1382 } 1382 }
1383 1383
1384 test_variable_getterInLib_setterInPart() {
1385 addNamedSource('/a.dart', 'part of my.lib; void set x(int _) {}');
1386 checkLibrary('library my.lib; part "a.dart"; int get x => 42;');
1387 }
1388
1389 test_variable_getterInPart_setterInLib() {
1390 addNamedSource('/a.dart', 'part of my.lib; int get x => 42;');
1391 checkLibrary('library my.lib; part "a.dart"; void set x(int _) {}');
1392 }
1393
1394 test_variable_getterInPart_setterInPart() {
1395 addNamedSource('/a.dart', 'part of my.lib; int get x => 42;');
1396 addNamedSource('/b.dart', 'part of my.lib; void set x(int _) {}');
1397 checkLibrary('library my.lib; part "a.dart"; part "b.dart";');
Paul Berry 2016/01/13 16:12:01 I'd recommend adding another test which is the sam
1398 }
1399
1384 test_variable_implicit_type() { 1400 test_variable_implicit_type() {
1385 checkLibrary('var x;'); 1401 checkLibrary('var x;');
1386 } 1402 }
1387 1403
1388 test_variables() { 1404 test_variables() {
1389 checkLibrary('int i; int j;'); 1405 checkLibrary('int i; int j;');
1390 } 1406 }
1391 } 1407 }
OLDNEW
« pkg/analyzer/lib/src/generated/resolver.dart ('K') | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698