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

Side by Side Diff: pkg/compiler/lib/src/apiimpl.dart

Issue 1342213003: Add optional message to assert in Dart2js - continued (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add --assert-message flag Created 5 years, 3 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/compiler/lib/src/closure.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 leg_apiimpl; 5 library leg_apiimpl;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:package_config/packages.dart'; 10 import 'package:package_config/packages.dart';
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 useContentSecurityPolicy: 109 useContentSecurityPolicy:
110 hasOption(options, Flags.useContentSecurityPolicy), 110 hasOption(options, Flags.useContentSecurityPolicy),
111 useStartupEmitter: hasOption(options, Flags.fastStartup), 111 useStartupEmitter: hasOption(options, Flags.fastStartup),
112 hasIncrementalSupport: 112 hasIncrementalSupport:
113 forceIncrementalSupport || 113 forceIncrementalSupport ||
114 hasOption(options, Flags.incrementalSupport), 114 hasOption(options, Flags.incrementalSupport),
115 suppressWarnings: hasOption(options, Flags.suppressWarnings), 115 suppressWarnings: hasOption(options, Flags.suppressWarnings),
116 fatalWarnings: hasOption(options, Flags.fatalWarnings), 116 fatalWarnings: hasOption(options, Flags.fatalWarnings),
117 enableExperimentalMirrors: 117 enableExperimentalMirrors:
118 hasOption(options, Flags.enableExperimentalMirrors), 118 hasOption(options, Flags.enableExperimentalMirrors),
119 enableAssertMessage:
120 hasOption(options, Flags.enableAssertMessage),
119 generateCodeWithCompileTimeErrors: 121 generateCodeWithCompileTimeErrors:
120 hasOption(options, Flags.generateCodeWithCompileTimeErrors), 122 hasOption(options, Flags.generateCodeWithCompileTimeErrors),
121 testMode: hasOption(options, Flags.testMode), 123 testMode: hasOption(options, Flags.testMode),
122 allowNativeExtensions: 124 allowNativeExtensions:
123 hasOption(options, Flags.allowNativeExtensions)) { 125 hasOption(options, Flags.allowNativeExtensions)) {
124 tasks.addAll([ 126 tasks.addAll([
125 userHandlerTask = new GenericTask('Diagnostic handler', this), 127 userHandlerTask = new GenericTask('Diagnostic handler', this),
126 userProviderTask = new GenericTask('Input provider', this), 128 userProviderTask = new GenericTask('Input provider', this),
127 userPackagesDiscoveryTask = 129 userPackagesDiscoveryTask =
128 new GenericTask('Package discovery', this), 130 new GenericTask('Package discovery', this),
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 print('$message: ${tryToString(exception)}'); 526 print('$message: ${tryToString(exception)}');
525 print(tryToString(stackTrace)); 527 print(tryToString(stackTrace));
526 } 528 }
527 529
528 fromEnvironment(String name) => environment[name]; 530 fromEnvironment(String name) => environment[name];
529 531
530 LibraryInfo lookupLibraryInfo(String libraryName) { 532 LibraryInfo lookupLibraryInfo(String libraryName) {
531 return library_info.LIBRARIES[libraryName]; 533 return library_info.LIBRARIES[libraryName];
532 } 534 }
533 } 535 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/closure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698