OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 dev_compiler.test.closure_annotation_test; | 5 library dev_compiler.test.closure_annotation_test; |
6 | 6 |
7 import 'package:test/test.dart'; | 7 import 'package:test/test.dart'; |
8 | 8 |
9 import 'package:dev_compiler/src/closure/closure_annotation.dart'; | 9 import 'package:dev_compiler/src/closure/closure_annotation.dart'; |
10 import 'package:dev_compiler/src/js/js_ast.dart' show TypeRef, Identifier; | 10 import 'package:dev_compiler/src/js_ast/js_ast.dart' show TypeRef, Identifier; |
11 | 11 |
12 void main() { | 12 void main() { |
13 group('ClosureAnnotation', () { | 13 group('ClosureAnnotation', () { |
14 var anyType = new TypeRef.any(); | 14 var anyType = new TypeRef.any(); |
15 var unknownType = new TypeRef.unknown(); | 15 var unknownType = new TypeRef.unknown(); |
16 var numberType = new TypeRef.number(); | 16 var numberType = new TypeRef.number(); |
17 var stringType = new TypeRef.string(); | 17 var stringType = new TypeRef.string(); |
18 var booleanType = new TypeRef.boolean(); | 18 var booleanType = new TypeRef.boolean(); |
19 var fooType = new TypeRef.qualified( | 19 var fooType = new TypeRef.qualified( |
20 [new Identifier("foo"), new Identifier("Foo")]); | 20 [new Identifier("foo"), new Identifier("Foo")]); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 ' * @constructor @struct @extends {Bar}\n' | 115 ' * @constructor @struct @extends {Bar}\n' |
116 ' * @implements {Baz}\n' | 116 ' * @implements {Baz}\n' |
117 ' * @param {string} x\n' | 117 ' * @param {string} x\n' |
118 ' * @param {number} y\n' | 118 ' * @param {number} y\n' |
119 ' * @return {boolean}\n' | 119 ' * @return {boolean}\n' |
120 ' * @throws {Bam}\n' | 120 ' * @throws {Bam}\n' |
121 ' */'); | 121 ' */'); |
122 }); | 122 }); |
123 }); | 123 }); |
124 } | 124 } |
OLD | NEW |