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 @TestOn('vm') | 5 @TestOn('vm') |
6 library smoke.test.codegen.recorder_test; | 6 library smoke.test.codegen.recorder_test; |
7 | 7 |
8 import 'package:analyzer/src/generated/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
9 import 'package:smoke/codegen/generator.dart'; | 9 import 'package:smoke/codegen/generator.dart'; |
10 import 'package:smoke/codegen/recorder.dart'; | 10 import 'package:smoke/codegen/recorder.dart'; |
11 import 'package:test/test.dart'; | 11 import 'package:test/test.dart'; |
12 | 12 |
13 import 'common.dart' show checkResults; | 13 import 'common.dart' show checkResults; |
14 import 'testing_resolver_utils.dart' show initAnalyzer; | 14 import 'testing_resolver_utils.dart' show initAnalyzer; |
15 | 15 |
16 main() { | 16 main() { |
17 var provider = initAnalyzer(_SOURCES); | 17 var provider = initAnalyzer(_SOURCES); |
18 var generator; | 18 var generator; |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 | 772 |
773 class K { | 773 class K { |
774 @AnnotC(named: true) int k; | 774 @AnnotC(named: true) int k; |
775 @AnnotC() int k2; | 775 @AnnotC() int k2; |
776 } | 776 } |
777 ''' | 777 ''' |
778 }; | 778 }; |
779 | 779 |
780 String resolveImportUrl(LibraryElement lib) => | 780 String resolveImportUrl(LibraryElement lib) => |
781 lib.isDartCore ? 'dart:core' : '/${lib.displayName}.dart'; | 781 lib.isDartCore ? 'dart:core' : '/${lib.displayName}.dart'; |
OLD | NEW |