Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(955)

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 2208503004: Move embedder locator and convert context builder to use the new API (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/dart/sdk/sdk.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.engine; 5 library analyzer.src.generated.engine;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
11 import 'package:analyzer/dart/ast/visitor.dart'; 11 import 'package:analyzer/dart/ast/visitor.dart';
12 import 'package:analyzer/dart/element/element.dart'; 12 import 'package:analyzer/dart/element/element.dart';
13 import 'package:analyzer/instrumentation/instrumentation.dart'; 13 import 'package:analyzer/instrumentation/instrumentation.dart';
14 import 'package:analyzer/plugin/resolver_provider.dart'; 14 import 'package:analyzer/plugin/resolver_provider.dart';
15 import 'package:analyzer/source/embedder.dart';
16 import 'package:analyzer/src/cancelable_future.dart'; 15 import 'package:analyzer/src/cancelable_future.dart';
16 import 'package:analyzer/src/context/builder.dart' show EmbedderYamlLocator;
17 import 'package:analyzer/src/context/cache.dart'; 17 import 'package:analyzer/src/context/cache.dart';
18 import 'package:analyzer/src/context/context.dart'; 18 import 'package:analyzer/src/context/context.dart';
19 import 'package:analyzer/src/generated/constant.dart'; 19 import 'package:analyzer/src/generated/constant.dart';
20 import 'package:analyzer/src/generated/error.dart'; 20 import 'package:analyzer/src/generated/error.dart';
21 import 'package:analyzer/src/generated/java_core.dart'; 21 import 'package:analyzer/src/generated/java_core.dart';
22 import 'package:analyzer/src/generated/java_engine.dart'; 22 import 'package:analyzer/src/generated/java_engine.dart';
23 import 'package:analyzer/src/generated/resolver.dart'; 23 import 'package:analyzer/src/generated/resolver.dart';
24 import 'package:analyzer/src/generated/source.dart'; 24 import 'package:analyzer/src/generated/source.dart';
25 import 'package:analyzer/src/generated/utilities_general.dart'; 25 import 'package:analyzer/src/generated/utilities_general.dart';
26 import 'package:analyzer/src/plugin/command_line_plugin.dart'; 26 import 'package:analyzer/src/plugin/command_line_plugin.dart';
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 } 1449 }
1450 StringBuffer buffer = new StringBuffer(); 1450 StringBuffer buffer = new StringBuffer();
1451 bool needsSeparator = false; 1451 bool needsSeparator = false;
1452 void add(String optionName) { 1452 void add(String optionName) {
1453 if (needsSeparator) { 1453 if (needsSeparator) {
1454 buffer.write(', '); 1454 buffer.write(', ');
1455 } 1455 }
1456 buffer.write(optionName); 1456 buffer.write(optionName);
1457 needsSeparator = true; 1457 needsSeparator = true;
1458 } 1458 }
1459
1459 if (encoding & ENABLE_ASSERT_FLAG > 0) { 1460 if (encoding & ENABLE_ASSERT_FLAG > 0) {
1460 add('assert'); 1461 add('assert');
1461 } 1462 }
1462 if (encoding & ENABLE_ASYNC_FLAG > 0) { 1463 if (encoding & ENABLE_ASYNC_FLAG > 0) {
1463 add('async'); 1464 add('async');
1464 } 1465 }
1465 if (encoding & ENABLE_GENERIC_METHODS_FLAG > 0) { 1466 if (encoding & ENABLE_GENERIC_METHODS_FLAG > 0) {
1466 add('genericMethods'); 1467 add('genericMethods');
1467 } 1468 }
1468 if (encoding & ENABLE_STRICT_CALL_CHECKS_FLAG > 0) { 1469 if (encoding & ENABLE_STRICT_CALL_CHECKS_FLAG > 0) {
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
2732 * The data that was created from the source. 2733 * The data that was created from the source.
2733 */ 2734 */
2734 final E data; 2735 final E data;
2735 2736
2736 /** 2737 /**
2737 * Initialize a newly created holder to associate the given [data] with the 2738 * Initialize a newly created holder to associate the given [data] with the
2738 * given [modificationTime]. 2739 * given [modificationTime].
2739 */ 2740 */
2740 TimestampedData(this.modificationTime, this.data); 2741 TimestampedData(this.modificationTime, this.data);
2741 } 2742 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/sdk/sdk.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698