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

Side by Side Diff: pkg/analysis_server/test/plugin/protocol_dart_test.dart

Issue 1788223002: Deprecate the generated AST library and clean up imports (Closed) Base URL: https://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.computer.element; 5 library test.computer.element;
6 6
7 import 'package:analysis_server/plugin/protocol/protocol.dart'; 7 import 'package:analysis_server/plugin/protocol/protocol.dart';
8 import 'package:analysis_server/plugin/protocol/protocol_dart.dart'; 8 import 'package:analysis_server/plugin/protocol/protocol_dart.dart';
9 import 'package:analyzer/dart/ast/ast.dart' as engine;
10 import 'package:analyzer/dart/ast/visitor.dart' as engine;
9 import 'package:analyzer/dart/element/element.dart' as engine; 11 import 'package:analyzer/dart/element/element.dart' as engine;
10 import 'package:analyzer/dart/element/type.dart' as engine; 12 import 'package:analyzer/dart/element/type.dart' as engine;
13 import 'package:analyzer/src/dart/ast/utilities.dart' as engine;
11 import 'package:analyzer/src/dart/element/element.dart' as engine; 14 import 'package:analyzer/src/dart/element/element.dart' as engine;
12 import 'package:analyzer/src/generated/ast.dart' as engine;
13 import 'package:analyzer/src/generated/error.dart' as engine; 15 import 'package:analyzer/src/generated/error.dart' as engine;
14 import 'package:analyzer/src/generated/source.dart' as engine; 16 import 'package:analyzer/src/generated/source.dart' as engine;
15 import 'package:test_reflective_loader/test_reflective_loader.dart'; 17 import 'package:test_reflective_loader/test_reflective_loader.dart';
16 import 'package:unittest/unittest.dart'; 18 import 'package:unittest/unittest.dart';
17 19
18 import '../abstract_context.dart'; 20 import '../abstract_context.dart';
19 import '../utils.dart'; 21 import '../utils.dart';
20 22
21 main() { 23 main() {
22 initializeTestEnvironment(); 24 initializeTestEnvironment();
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 expect(location.offset, 16); 469 expect(location.offset, 16);
468 expect(location.length, 'mySetter'.length); 470 expect(location.length, 'mySetter'.length);
469 expect(location.startLine, 2); 471 expect(location.startLine, 2);
470 expect(location.startColumn, 7); 472 expect(location.startColumn, 7);
471 } 473 }
472 expect(element.parameters, '(String x)'); 474 expect(element.parameters, '(String x)');
473 expect(element.returnType, isNull); 475 expect(element.returnType, isNull);
474 expect(element.flags, 0); 476 expect(element.flags, 0);
475 } 477 }
476 } 478 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698