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

Side by Side Diff: frog/leg/compiler.dart

Issue 9753001: super and this in compile-time constants. (Closed) Base URL: /home/flo/programming/dart2/../dart/dart@master
Patch Set: Address comments. Created 8 years, 8 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 class WorkItem { 5 class WorkItem {
6 final Element element; 6 final Element element;
7 TreeElements resolutionTree; 7 TreeElements resolutionTree;
8 Function run; 8 Function run;
9 Map<int, BailoutInfo> bailouts = null; 9 Map<int, BailoutInfo> bailouts = null;
10 bool allowSpeculativeOptimization = true; 10 bool allowSpeculativeOptimization = true;
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 389
390 Type resolveType(ClassElement element) { 390 Type resolveType(ClassElement element) {
391 return withCurrentElement(element, () => resolver.resolveType(element)); 391 return withCurrentElement(element, () => resolver.resolveType(element));
392 } 392 }
393 393
394 FunctionParameters resolveSignature(FunctionElement element) { 394 FunctionParameters resolveSignature(FunctionElement element) {
395 return withCurrentElement(element, 395 return withCurrentElement(element,
396 () => resolver.resolveSignature(element)); 396 () => resolver.resolveSignature(element));
397 } 397 }
398 398
399 Object compileVariable(VariableElement element) { 399 Constant compileVariable(VariableElement element) {
400 return withCurrentElement(element, () { 400 return withCurrentElement(element, () {
401 return constantHandler.compileVariable(element); 401 return constantHandler.compileVariable(element);
402 }); 402 });
403 } 403 }
404 404
405 reportWarning(Node node, var message) { 405 reportWarning(Node node, var message) {
406 if (message is ResolutionWarning) { 406 if (message is ResolutionWarning) {
407 // TODO(ahe): Don't supress this warning when we support type variables. 407 // TODO(ahe): Don't supress this warning when we support type variables.
408 if (message.message.kind === MessageKind.CANNOT_RESOLVE_TYPE) return; 408 if (message.message.kind === MessageKind.CANNOT_RESOLVE_TYPE) return;
409 } else if (message is TypeWarning) { 409 } else if (message is TypeWarning) {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 } 538 }
539 } 539 }
540 540
541 class SourceSpan { 541 class SourceSpan {
542 final Uri uri; 542 final Uri uri;
543 final int begin; 543 final int begin;
544 final int end; 544 final int end;
545 545
546 const SourceSpan(this.uri, this.begin, this.end); 546 const SourceSpan(this.uri, this.begin, this.end);
547 } 547 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698