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

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: Improvements Created 8 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 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 Type resolveType(ClassElement element) { 379 Type resolveType(ClassElement element) {
380 return withCurrentElement(element, () => resolver.resolveType(element)); 380 return withCurrentElement(element, () => resolver.resolveType(element));
381 } 381 }
382 382
383 FunctionParameters resolveSignature(FunctionElement element) { 383 FunctionParameters resolveSignature(FunctionElement element) {
384 return withCurrentElement(element, 384 return withCurrentElement(element,
385 () => resolver.resolveSignature(element)); 385 () => resolver.resolveSignature(element));
386 } 386 }
387 387
388 Object compileVariable(VariableElement element) { 388 Constant compileVariable(VariableElement element) {
389 return withCurrentElement(element, () { 389 return withCurrentElement(element, () {
390 return constantHandler.compileVariable(element); 390 return constantHandler.compileVariable(element);
391 }); 391 });
392 } 392 }
393 393
394 reportWarning(Node node, var message) { 394 reportWarning(Node node, var message) {
395 if (message is ResolutionWarning) { 395 if (message is ResolutionWarning) {
396 // TODO(ahe): Don't supress this warning when we support type variables. 396 // TODO(ahe): Don't supress this warning when we support type variables.
397 if (message.message.kind === MessageKind.CANNOT_RESOLVE_TYPE) return; 397 if (message.message.kind === MessageKind.CANNOT_RESOLVE_TYPE) return;
398 } else if (message is TypeWarning) { 398 } else if (message is TypeWarning) {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 } 525 }
526 } 526 }
527 527
528 class SourceSpan { 528 class SourceSpan {
529 final Uri uri; 529 final Uri uri;
530 final int begin; 530 final int begin;
531 final int end; 531 final int end;
532 532
533 const SourceSpan(this.uri, this.begin, this.end); 533 const SourceSpan(this.uri, this.begin, this.end);
534 } 534 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698