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

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

Issue 263913003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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
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.sdk.io; 8 library engine.sdk.io;
9 9
10 import 'java_core.dart'; 10 import 'java_core.dart';
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 this._sdkDirectory = sdkDirectory.getAbsoluteFile(); 228 this._sdkDirectory = sdkDirectory.getAbsoluteFile();
229 _libraryMap = initialLibraryMap(useDart2jsPaths); 229 _libraryMap = initialLibraryMap(useDart2jsPaths);
230 } 230 }
231 231
232 @override 232 @override
233 Source fromEncoding(UriKind kind, Uri uri) => new FileBasedSource.con2(new Jav aFile.fromUri(uri), kind); 233 Source fromEncoding(UriKind kind, Uri uri) => new FileBasedSource.con2(new Jav aFile.fromUri(uri), kind);
234 234
235 @override 235 @override
236 AnalysisContext get context { 236 AnalysisContext get context {
237 if (_analysisContext == null) { 237 if (_analysisContext == null) {
238 _analysisContext = new AnalysisContextImpl(); 238 _analysisContext = new SdkAnalysisContext();
239 _analysisContext.sourceFactory = new SourceFactory([new DartUriResolver(th is)]); 239 SourceFactory factory = new SourceFactory([new DartUriResolver(this)]);
240 _analysisContext.sourceFactory = factory;
240 List<String> uris = this.uris; 241 List<String> uris = this.uris;
241 ChangeSet changeSet = new ChangeSet(); 242 ChangeSet changeSet = new ChangeSet();
242 for (String uri in uris) { 243 for (String uri in uris) {
243 changeSet.addedSource(_analysisContext.sourceFactory.forUri(uri)); 244 changeSet.addedSource(factory.forUri(uri));
244 } 245 }
245 _analysisContext.applyChanges(changeSet); 246 _analysisContext.applyChanges(changeSet);
246 } 247 }
247 return _analysisContext; 248 return _analysisContext;
248 } 249 }
249 250
250 /** 251 /**
251 * Return the file containing the dart2js executable, or `null` if it does not exist. 252 * Return the file containing the dart2js executable, or `null` if it does not exist.
252 * 253 *
253 * @return the file containing the dart2js executable 254 * @return the file containing the dart2js executable
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 Parser parser = new Parser(source, errorListener); 546 Parser parser = new Parser(source, errorListener);
546 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize()); 547 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize());
547 SdkLibrariesReader_LibraryBuilder libraryBuilder = new SdkLibrariesReader_Li braryBuilder(_useDart2jsPaths); 548 SdkLibrariesReader_LibraryBuilder libraryBuilder = new SdkLibrariesReader_Li braryBuilder(_useDart2jsPaths);
548 // If any syntactic errors were found then don't try to visit the AST struct ure. 549 // If any syntactic errors were found then don't try to visit the AST struct ure.
549 if (!errorListener.errorReported) { 550 if (!errorListener.errorReported) {
550 unit.accept(libraryBuilder); 551 unit.accept(libraryBuilder);
551 } 552 }
552 return libraryBuilder.librariesMap; 553 return libraryBuilder.librariesMap;
553 } 554 }
554 } 555 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | pkg/analyzer/lib/src/generated/source_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698