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

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

Issue 1067903002: Changes in analyzer needed for dev_compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes analyzer errors in tests (implement added API)" Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/resolver.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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine; 8 library engine;
9 9
10 import "dart:math" as math; 10 import "dart:math" as math;
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 * A factory to override how the [ResolverVisitor] is created. 1011 * A factory to override how the [ResolverVisitor] is created.
1012 */ 1012 */
1013 ResolverVisitorFactory resolverVisitorFactory; 1013 ResolverVisitorFactory resolverVisitorFactory;
1014 1014
1015 /** 1015 /**
1016 * A factory to override how the [TypeResolverVisitor] is created. 1016 * A factory to override how the [TypeResolverVisitor] is created.
1017 */ 1017 */
1018 TypeResolverVisitorFactory typeResolverVisitorFactory; 1018 TypeResolverVisitorFactory typeResolverVisitorFactory;
1019 1019
1020 /** 1020 /**
1021 * A factory to override how [LibraryResolver] is created.
1022 */
1023 LibraryResolverFactory libraryResolverFactory;
1024
1025 /**
1021 * Initialize a newly created analysis context. 1026 * Initialize a newly created analysis context.
1022 */ 1027 */
1023 AnalysisContextImpl() { 1028 AnalysisContextImpl() {
1024 _resultRecorder = new AnalysisContextImpl_AnalysisTaskResultRecorder(this); 1029 _resultRecorder = new AnalysisContextImpl_AnalysisTaskResultRecorder(this);
1025 _privatePartition = new UniversalCachePartition(this, 1030 _privatePartition = new UniversalCachePartition(this,
1026 AnalysisOptionsImpl.DEFAULT_CACHE_SIZE, 1031 AnalysisOptionsImpl.DEFAULT_CACHE_SIZE,
1027 new AnalysisContextImpl_ContextRetentionPolicy(this)); 1032 new AnalysisContextImpl_ContextRetentionPolicy(this));
1028 _cache = createCacheFromSourceFactory(null); 1033 _cache = createCacheFromSourceFactory(null);
1029 _onSourcesChangedController = 1034 _onSourcesChangedController =
1030 new StreamController<SourcesChangedEvent>.broadcast(); 1035 new StreamController<SourcesChangedEvent>.broadcast();
(...skipping 7993 matching lines...) Expand 10 before | Expand all | Expand 10 after
9024 * Sets the [TypeProvider] for this context. 9029 * Sets the [TypeProvider] for this context.
9025 */ 9030 */
9026 void set typeProvider(TypeProvider typeProvider); 9031 void set typeProvider(TypeProvider typeProvider);
9027 9032
9028 /** 9033 /**
9029 * A factory to override how [TypeResolverVisitor] is created. 9034 * A factory to override how [TypeResolverVisitor] is created.
9030 */ 9035 */
9031 TypeResolverVisitorFactory get typeResolverVisitorFactory; 9036 TypeResolverVisitorFactory get typeResolverVisitorFactory;
9032 9037
9033 /** 9038 /**
9039 * A factory to override how [LibraryResolver] is created.
9040 */
9041 LibraryResolverFactory get libraryResolverFactory;
9042
9043 /**
9034 * Add the given [source] with the given [information] to this context. 9044 * Add the given [source] with the given [information] to this context.
9035 */ 9045 */
9036 void addSourceInfo(Source source, SourceEntry information); 9046 void addSourceInfo(Source source, SourceEntry information);
9037 9047
9038 /** 9048 /**
9039 * Return a list containing the sources of the libraries that are exported by 9049 * Return a list containing the sources of the libraries that are exported by
9040 * the library with the given [source]. The list will be empty if the given 9050 * the library with the given [source]. The list will be empty if the given
9041 * source is invalid, if the given source does not represent a library, or if 9051 * source is invalid, if the given source does not represent a library, or if
9042 * the library does not export any other libraries. 9052 * the library does not export any other libraries.
9043 * 9053 *
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
10447 } 10457 }
10448 return "resolve library ${librarySource.fullName}"; 10458 return "resolve library ${librarySource.fullName}";
10449 } 10459 }
10450 10460
10451 @override 10461 @override
10452 accept(AnalysisTaskVisitor visitor) => 10462 accept(AnalysisTaskVisitor visitor) =>
10453 visitor.visitResolveDartLibraryTask(this); 10463 visitor.visitResolveDartLibraryTask(this);
10454 10464
10455 @override 10465 @override
10456 void internalPerform() { 10466 void internalPerform() {
10457 _resolver = new LibraryResolver(context); 10467 LibraryResolverFactory resolverFactory = context.libraryResolverFactory;
10468 _resolver = resolverFactory == null
10469 ? new LibraryResolver(context)
10470 : resolverFactory(context);
10458 _resolver.resolveLibrary(librarySource, true); 10471 _resolver.resolveLibrary(librarySource, true);
10459 } 10472 }
10460 } 10473 }
10461 10474
10462 /** 10475 /**
10463 * Instances of the class `ResolveDartUnitTask` resolve a single Dart file based on a existing 10476 * Instances of the class `ResolveDartUnitTask` resolve a single Dart file based on a existing
10464 * element model. 10477 * element model.
10465 */ 10478 */
10466 class ResolveDartUnitTask extends AnalysisTask { 10479 class ResolveDartUnitTask extends AnalysisTask {
10467 /** 10480 /**
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after
11656 visitElement(Element element) { 11669 visitElement(Element element) {
11657 if (element.id == _id) { 11670 if (element.id == _id) {
11658 result = element; 11671 result = element;
11659 throw new _ElementByIdFinderException(); 11672 throw new _ElementByIdFinderException();
11660 } 11673 }
11661 super.visitElement(element); 11674 super.visitElement(element);
11662 } 11675 }
11663 } 11676 }
11664 11677
11665 class _ElementByIdFinderException {} 11678 class _ElementByIdFinderException {}
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698