| 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; | 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/element/element.dart' as engine; |
| 10 import 'package:analyzer/dart/element/type.dart' as engine; |
| 11 import 'package:analyzer/src/dart/element/element.dart' as engine; |
| 9 import 'package:analyzer/src/generated/ast.dart' as engine; | 12 import 'package:analyzer/src/generated/ast.dart' as engine; |
| 10 import 'package:analyzer/src/generated/element.dart' as engine; | |
| 11 import 'package:analyzer/src/generated/error.dart' as engine; | 13 import 'package:analyzer/src/generated/error.dart' as engine; |
| 12 import 'package:analyzer/src/generated/source.dart' as engine; | 14 import 'package:analyzer/src/generated/source.dart' as engine; |
| 13 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 15 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 14 import 'package:unittest/unittest.dart'; | 16 import 'package:unittest/unittest.dart'; |
| 15 | 17 |
| 16 import '../abstract_context.dart'; | 18 import '../abstract_context.dart'; |
| 17 import '../utils.dart'; | 19 import '../utils.dart'; |
| 18 | 20 |
| 19 main() { | 21 main() { |
| 20 initializeTestEnvironment(); | 22 initializeTestEnvironment(); |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 expect(location.offset, 16); | 467 expect(location.offset, 16); |
| 466 expect(location.length, 'mySetter'.length); | 468 expect(location.length, 'mySetter'.length); |
| 467 expect(location.startLine, 2); | 469 expect(location.startLine, 2); |
| 468 expect(location.startColumn, 7); | 470 expect(location.startColumn, 7); |
| 469 } | 471 } |
| 470 expect(element.parameters, '(String x)'); | 472 expect(element.parameters, '(String x)'); |
| 471 expect(element.returnType, isNull); | 473 expect(element.returnType, isNull); |
| 472 expect(element.flags, 0); | 474 expect(element.flags, 0); |
| 473 } | 475 } |
| 474 } | 476 } |
| OLD | NEW |