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

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

Issue 1803303002: Move all flags to CompilerOptions (first step to stop passing the compiler to (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
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.resolution; 5 library dart2js.resolution;
6 6
7 import 'dart:collection' show Queue; 7 import 'dart:collection' show Queue;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/names.dart' show 10 import '../common/names.dart' show
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 new InitializerResolver(visitor, element, tree); 259 new InitializerResolver(visitor, element, tree);
260 FunctionElement redirection = resolver.resolveInitializers(); 260 FunctionElement redirection = resolver.resolveInitializers();
261 if (redirection != null) { 261 if (redirection != null) {
262 resolveRedirectingConstructor(resolver, tree, element, redirection); 262 resolveRedirectingConstructor(resolver, tree, element, redirection);
263 } 263 }
264 } else if (tree.initializers != null) { 264 } else if (tree.initializers != null) {
265 reporter.reportErrorMessage( 265 reporter.reportErrorMessage(
266 tree, MessageKind.FUNCTION_WITH_INITIALIZER); 266 tree, MessageKind.FUNCTION_WITH_INITIALIZER);
267 } 267 }
268 268
269 if (!compiler.analyzeSignaturesOnly || tree.isRedirectingFactory) { 269 if (!compiler.options.analyzeSignaturesOnly ||
270 tree.isRedirectingFactory) {
270 // We need to analyze the redirecting factory bodies to ensure that 271 // We need to analyze the redirecting factory bodies to ensure that
271 // we can analyze compile-time constants. 272 // we can analyze compile-time constants.
272 visitor.visit(tree.body); 273 visitor.visit(tree.body);
273 } 274 }
274 275
275 // Get the resolution tree and check that the resolved 276 // Get the resolution tree and check that the resolved
276 // function doesn't use 'super' if it is mixed into another 277 // function doesn't use 'super' if it is mixed into another
277 // class. This is the part of the 'super' mixin check that 278 // class. This is the part of the 'super' mixin check that
278 // happens when a function is resolved after the mixin 279 // happens when a function is resolved after the mixin
279 // application has been performed. 280 // application has been performed.
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 TreeElements get treeElements { 1131 TreeElements get treeElements {
1131 assert(invariant(this, _treeElements !=null, 1132 assert(invariant(this, _treeElements !=null,
1132 message: "TreeElements have not been computed for $this.")); 1133 message: "TreeElements have not been computed for $this."));
1133 return _treeElements; 1134 return _treeElements;
1134 } 1135 }
1135 1136
1136 void reuseElement() { 1137 void reuseElement() {
1137 _treeElements = null; 1138 _treeElements = null;
1138 } 1139 }
1139 } 1140 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/signatures.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698