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

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

Issue 2975433002: Assert that we don't mix K and J elements (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/frontend_strategy.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 dart2js.compiler_base; 5 library dart2js.compiler_base;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import '../compiler_new.dart' as api; 9 import '../compiler_new.dart' as api;
10 import 'backend_strategy.dart'; 10 import 'backend_strategy.dart';
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 : this.options = options, 182 : this.options = options,
183 this.userOutputProvider = outputProvider == null 183 this.userOutputProvider = outputProvider == null
184 ? const NullCompilerOutput() 184 ? const NullCompilerOutput()
185 : outputProvider { 185 : outputProvider {
186 if (makeReporter != null) { 186 if (makeReporter != null) {
187 _reporter = makeReporter(this, options); 187 _reporter = makeReporter(this, options);
188 } else { 188 } else {
189 _reporter = new CompilerDiagnosticReporter(this, options); 189 _reporter = new CompilerDiagnosticReporter(this, options);
190 } 190 }
191 frontendStrategy = options.loadFromDill 191 frontendStrategy = options.loadFromDill
192 ? new KernelFrontEndStrategy(reporter, environment) 192 ? new KernelFrontEndStrategy(options, reporter, environment)
193 : new ResolutionFrontEndStrategy(this); 193 : new ResolutionFrontEndStrategy(this);
194 backendStrategy = options.loadFromDill 194 backendStrategy = options.loadFromDill
195 ? new KernelBackendStrategy(this) 195 ? new KernelBackendStrategy(this)
196 : new ElementBackendStrategy(this); 196 : new ElementBackendStrategy(this);
197 _resolution = createResolution(); 197 _resolution = createResolution();
198 198
199 if (options.verbose) { 199 if (options.verbose) {
200 progress = new Stopwatch()..start(); 200 progress = new Stopwatch()..start();
201 } 201 }
202 202
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 _ElementScanner(this.scanner); 1594 _ElementScanner(this.scanner);
1595 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); 1595 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library);
1596 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); 1596 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit);
1597 } 1597 }
1598 1598
1599 class _EmptyEnvironment implements Environment { 1599 class _EmptyEnvironment implements Environment {
1600 const _EmptyEnvironment(); 1600 const _EmptyEnvironment();
1601 1601
1602 String valueOf(String key) => null; 1602 String valueOf(String key) => null;
1603 } 1603 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/frontend_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698