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

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

Issue 1984733003: Don't use SDK summaries with embedders (#26448). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/driver.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.sdk_io; 5 library analyzer.src.generated.sdk_io;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 // Fall through to return the default. 407 // Fall through to return the default.
408 } 408 }
409 } 409 }
410 return _sdkVersion; 410 return _sdkVersion;
411 } 411 }
412 412
413 @override 413 @override
414 List<String> get uris => _libraryMap.uris; 414 List<String> get uris => _libraryMap.uris;
415 415
416 /** 416 /**
417 * Whether an SDK summary should be used.
418 */
419 bool get useSummary => _useSummary;
420
421 /**
417 * Specify whether SDK summary should be used. 422 * Specify whether SDK summary should be used.
418 */ 423 */
419 void set useSummary(bool use) { 424 void set useSummary(bool use) {
420 if (_analysisContext != null) { 425 if (_analysisContext != null) {
421 throw new StateError( 426 throw new StateError(
422 'The "useSummary" flag cannot be changed after context creation.'); 427 'The "useSummary" flag cannot be changed after context creation.');
423 } 428 }
424 _useSummary = use; 429 _useSummary = use;
425 } 430 }
426 431
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 SdkLibrariesReader_LibraryBuilder libraryBuilder = 688 SdkLibrariesReader_LibraryBuilder libraryBuilder =
684 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths); 689 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths);
685 // If any syntactic errors were found then don't try to visit the AST 690 // If any syntactic errors were found then don't try to visit the AST
686 // structure. 691 // structure.
687 if (!errorListener.errorReported) { 692 if (!errorListener.errorReported) {
688 unit.accept(libraryBuilder); 693 unit.accept(libraryBuilder);
689 } 694 }
690 return libraryBuilder.librariesMap; 695 return libraryBuilder.librariesMap;
691 } 696 }
692 } 697 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698