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 analyzer.test.src.summary.summary_common; | 5 library analyzer.test.src.summary.summary_common; |
6 | 6 |
7 import 'package:analyzer/analyzer.dart'; | 7 import 'package:analyzer/analyzer.dart'; |
8 import 'package:analyzer/dart/ast/ast.dart'; | 8 import 'package:analyzer/dart/ast/ast.dart'; |
9 import 'package:analyzer/error/listener.dart'; | 9 import 'package:analyzer/error/listener.dart'; |
10 import 'package:analyzer/src/dart/scanner/reader.dart'; | 10 import 'package:analyzer/src/dart/scanner/reader.dart'; |
11 import 'package:analyzer/src/dart/scanner/scanner.dart'; | 11 import 'package:analyzer/src/dart/scanner/scanner.dart'; |
12 import 'package:analyzer/src/generated/parser.dart'; | 12 import 'package:analyzer/src/generated/parser.dart'; |
13 import 'package:analyzer/src/generated/source.dart'; | 13 import 'package:analyzer/src/generated/source.dart'; |
14 import 'package:analyzer/src/generated/source_io.dart'; | 14 import 'package:analyzer/src/generated/source_io.dart'; |
15 import 'package:analyzer/src/summary/base.dart'; | 15 import 'package:analyzer/src/summary/base.dart'; |
16 import 'package:analyzer/src/summary/idl.dart'; | 16 import 'package:analyzer/src/summary/idl.dart'; |
17 import 'package:analyzer/src/summary/public_namespace_computer.dart' | 17 import 'package:analyzer/src/summary/public_namespace_computer.dart' |
18 as public_namespace; | 18 as public_namespace; |
19 import 'package:path/path.dart' show posix; | 19 import 'package:path/path.dart' show posix; |
20 import 'package:unittest/unittest.dart'; | 20 import 'package:test/test.dart'; |
21 | 21 |
22 import '../context/mock_sdk.dart'; | 22 import '../context/mock_sdk.dart'; |
23 | 23 |
24 /** | 24 /** |
25 * Convert the given Posix style file [path] to the corresponding absolute URI. | 25 * Convert the given Posix style file [path] to the corresponding absolute URI. |
26 */ | 26 */ |
27 String absUri(String path) { | 27 String absUri(String path) { |
28 String absolutePath = posix.absolute(path); | 28 String absolutePath = posix.absolute(path); |
29 return posix.toUri(absolutePath).toString(); | 29 return posix.toUri(absolutePath).toString(); |
30 } | 30 } |
(...skipping 10313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10344 class _PrefixExpectation { | 10344 class _PrefixExpectation { |
10345 final ReferenceKind kind; | 10345 final ReferenceKind kind; |
10346 final String name; | 10346 final String name; |
10347 final String absoluteUri; | 10347 final String absoluteUri; |
10348 final String relativeUri; | 10348 final String relativeUri; |
10349 final int numTypeParameters; | 10349 final int numTypeParameters; |
10350 | 10350 |
10351 _PrefixExpectation(this.kind, this.name, | 10351 _PrefixExpectation(this.kind, this.name, |
10352 {this.absoluteUri, this.relativeUri, this.numTypeParameters: 0}); | 10352 {this.absoluteUri, this.relativeUri, this.numTypeParameters: 0}); |
10353 } | 10353 } |
OLD | NEW |