OLD | NEW |
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; | |
6 | |
7 import 'package:analysis_server/plugin/protocol/protocol.dart'; | |
8 import 'package:analysis_server/plugin/protocol/protocol_dart.dart'; | 5 import 'package:analysis_server/plugin/protocol/protocol_dart.dart'; |
| 6 import 'package:analysis_server/protocol/protocol_generated.dart'; |
9 import 'package:analyzer/dart/ast/ast.dart' as engine; | 7 import 'package:analyzer/dart/ast/ast.dart' as engine; |
10 import 'package:analyzer/dart/ast/visitor.dart' as engine; | 8 import 'package:analyzer/dart/ast/visitor.dart' as engine; |
11 import 'package:analyzer/dart/element/element.dart' as engine; | 9 import 'package:analyzer/dart/element/element.dart' as engine; |
12 import 'package:analyzer/dart/element/type.dart' as engine; | 10 import 'package:analyzer/dart/element/type.dart' as engine; |
13 import 'package:analyzer/error/error.dart' as engine; | 11 import 'package:analyzer/error/error.dart' as engine; |
14 import 'package:analyzer/src/dart/ast/utilities.dart' as engine; | 12 import 'package:analyzer/src/dart/ast/utilities.dart' as engine; |
15 import 'package:analyzer/src/dart/element/element.dart' as engine; | 13 import 'package:analyzer/src/dart/element/element.dart' as engine; |
16 import 'package:analyzer/src/error/codes.dart' as engine; | 14 import 'package:analyzer/src/error/codes.dart' as engine; |
17 import 'package:analyzer/src/generated/source.dart' as engine; | 15 import 'package:analyzer/src/generated/source.dart' as engine; |
18 import 'package:test/test.dart'; | 16 import 'package:test/test.dart'; |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 expect(location.offset, 16); | 468 expect(location.offset, 16); |
471 expect(location.length, 'mySetter'.length); | 469 expect(location.length, 'mySetter'.length); |
472 expect(location.startLine, 2); | 470 expect(location.startLine, 2); |
473 expect(location.startColumn, 7); | 471 expect(location.startColumn, 7); |
474 } | 472 } |
475 expect(element.parameters, '(String x)'); | 473 expect(element.parameters, '(String x)'); |
476 expect(element.returnType, isNull); | 474 expect(element.returnType, isNull); |
477 expect(element.flags, 0); | 475 expect(element.flags, 0); |
478 } | 476 } |
479 } | 477 } |
OLD | NEW |