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

Side by Side Diff: pkg/analysis_server/test/services/correction/fix_test.dart

Issue 1762193002: Resynthesize codeOffset/codeLength properties. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.services.correction.fix; 5 library test.services.correction.fix;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; 9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart';
10 import 'package:analysis_server/plugin/edit/fix/fix_dart.dart'; 10 import 'package:analysis_server/plugin/edit/fix/fix_dart.dart';
(...skipping 4314 matching lines...) Expand 10 before | Expand all | Expand 10 after
4325 ''' 4325 '''
4326 class A { 4326 class A {
4327 int myField; 4327 int myField;
4328 main() { 4328 main() {
4329 print(myField); 4329 print(myField);
4330 } 4330 }
4331 } 4331 }
4332 '''); 4332 ''');
4333 } 4333 }
4334 4334
4335 test_undefinedMethod_create_BAD_inSDK() async { 4335 solo_test_undefinedMethod_create_BAD_inSDK() async {
Paul Berry 2016/03/04 16:36:07 Un-do this change before committing.
scheglov 2016/03/04 17:15:19 Done.
4336 resolveTestUnit(''' 4336 resolveTestUnit('''
4337 main() { 4337 main() {
4338 List.foo(); 4338 List.foo();
4339 } 4339 }
4340 '''); 4340 ''');
4341 await assertNoFix(DartFixKind.CREATE_METHOD); 4341 await assertNoFix(DartFixKind.CREATE_METHOD);
4342 } 4342 }
4343 4343
4344 test_undefinedMethod_create_BAD_targetIsEnum() async { 4344 test_undefinedMethod_create_BAD_targetIsEnum() async {
4345 resolveTestUnit(''' 4345 resolveTestUnit('''
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
5234 @override 5234 @override
5235 void t() { } 5235 void t() { }
5236 } 5236 }
5237 '''); 5237 ''');
5238 } 5238 }
5239 5239
5240 void verifyResult(String expectedResult) { 5240 void verifyResult(String expectedResult) {
5241 expect(resultCode, expectedResult); 5241 expect(resultCode, expectedResult);
5242 } 5242 }
5243 } 5243 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/format.dart » ('j') | pkg/analyzer/lib/src/summary/idl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698