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 analyzer.src.generated.sdk; | 5 library analyzer.src.generated.sdk; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
10 import 'package:analyzer/dart/ast/visitor.dart'; | 10 import 'package:analyzer/dart/ast/visitor.dart'; |
11 import 'package:analyzer/src/generated/engine.dart' | 11 import 'package:analyzer/src/generated/engine.dart' |
12 show AnalysisContext, AnalysisOptions; | 12 show AnalysisContext, AnalysisOptions; |
13 import 'package:analyzer/src/generated/source.dart' | 13 import 'package:analyzer/src/generated/source.dart' show Source; |
14 show ContentCache, Source, UriKind; | |
15 | 14 |
16 /** | 15 /** |
17 * A function used to create a new DartSdk with the given [options]. If the | 16 * A function used to create a new DartSdk with the given [options]. If the |
18 * passed [options] are `null`, then default options are used. | 17 * passed [options] are `null`, then default options are used. |
19 */ | 18 */ |
20 typedef DartSdk SdkCreator(AnalysisOptions options); | 19 typedef DartSdk SdkCreator(AnalysisOptions options); |
21 | 20 |
22 /** | 21 /** |
23 * A Dart SDK installed in a specified location. | 22 * A Dart SDK installed in a specified location. |
24 */ | 23 */ |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 _platforms |= DART2JS_PLATFORM; | 447 _platforms |= DART2JS_PLATFORM; |
449 } | 448 } |
450 | 449 |
451 /** | 450 /** |
452 * Record that this library can be run on the VM. | 451 * Record that this library can be run on the VM. |
453 */ | 452 */ |
454 void setVmLibrary() { | 453 void setVmLibrary() { |
455 _platforms |= VM_PLATFORM; | 454 _platforms |= VM_PLATFORM; |
456 } | 455 } |
457 } | 456 } |
OLD | NEW |