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

Side by Side Diff: lib/compiler/implementation/compiler.dart

Issue 10829168: Revert "Skeleton typedef type implementation" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | lib/compiler/implementation/elements/elements.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 5
6 /** 6 /**
7 * If true, print a warning for each method that was resolved, but not 7 * If true, print a warning for each method that was resolved, but not
8 * compiled. 8 * compiled.
9 */ 9 */
10 final bool REPORT_EXCESS_RESOLUTION = false; 10 final bool REPORT_EXCESS_RESOLUTION = false;
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 boolClass = lookupSpecialClass(const SourceString('bool')); 464 boolClass = lookupSpecialClass(const SourceString('bool'));
465 numClass = lookupSpecialClass(const SourceString('num')); 465 numClass = lookupSpecialClass(const SourceString('num'));
466 intClass = lookupSpecialClass(const SourceString('int')); 466 intClass = lookupSpecialClass(const SourceString('int'));
467 doubleClass = lookupSpecialClass(const SourceString('double')); 467 doubleClass = lookupSpecialClass(const SourceString('double'));
468 stringClass = lookupSpecialClass(const SourceString('String')); 468 stringClass = lookupSpecialClass(const SourceString('String'));
469 functionClass = lookupSpecialClass(const SourceString('Function')); 469 functionClass = lookupSpecialClass(const SourceString('Function'));
470 listClass = lookupSpecialClass(const SourceString('List')); 470 listClass = lookupSpecialClass(const SourceString('List'));
471 closureClass = lookupSpecialClass(const SourceString('Closure')); 471 closureClass = lookupSpecialClass(const SourceString('Closure'));
472 dynamicClass = lookupSpecialClass(const SourceString('Dynamic')); 472 dynamicClass = lookupSpecialClass(const SourceString('Dynamic'));
473 nullClass = lookupSpecialClass(const SourceString('Null')); 473 nullClass = lookupSpecialClass(const SourceString('Null'));
474 types = new Types(this, dynamicClass); 474 types = new Types(dynamicClass);
475 if (!coreLibValid) { 475 if (!coreLibValid) {
476 cancel('core library does not contain required classes'); 476 cancel('core library does not contain required classes');
477 } 477 }
478 478
479 jsIndexingBehaviorInterface = 479 jsIndexingBehaviorInterface =
480 findHelper(const SourceString('JavaScriptIndexingBehavior')); 480 findHelper(const SourceString('JavaScriptIndexingBehavior'));
481 } 481 }
482 482
483 void scanBuiltinLibraries() { 483 void scanBuiltinLibraries() {
484 coreImplLibrary = scanBuiltinLibrary('coreimpl'); 484 coreImplLibrary = scanBuiltinLibrary('coreimpl');
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 return withCurrentElement(element, 924 return withCurrentElement(element,
925 () => resolver.resolveSignature(element)); 925 () => resolver.resolveSignature(element));
926 } 926 }
927 927
928 FunctionSignature resolveFunctionExpression(Element element, 928 FunctionSignature resolveFunctionExpression(Element element,
929 FunctionExpression node) { 929 FunctionExpression node) {
930 return withCurrentElement(element, 930 return withCurrentElement(element,
931 () => resolver.resolveFunctionExpression(element, node)); 931 () => resolver.resolveFunctionExpression(element, node));
932 } 932 }
933 933
934 void resolveTypedef(TypedefElement element) { 934 FunctionSignature resolveTypedef(TypedefElement element) {
935 withCurrentElement(element, 935 return withCurrentElement(element,
936 () => resolver.resolveTypedef(element)); 936 () => resolver.resolveTypedef(element));
937 } 937 }
938 938
939 FunctionType computeFunctionType(Element element, 939 FunctionType computeFunctionType(Element element,
940 FunctionSignature signature) { 940 FunctionSignature signature) {
941 return withCurrentElement(element, 941 return withCurrentElement(element,
942 () => resolver.computeFunctionType(element, signature)); 942 () => resolver.computeFunctionType(element, signature));
943 } 943 }
944 944
945 Constant compileVariable(VariableElement element) { 945 Constant compileVariable(VariableElement element) {
946 return withCurrentElement(element, () { 946 return withCurrentElement(element, () {
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 final endOffset = end.charOffset + end.slowCharCount; 1095 final endOffset = end.charOffset + end.slowCharCount;
1096 1096
1097 // [begin] and [end] might be the same for the same empty token. This 1097 // [begin] and [end] might be the same for the same empty token. This
1098 // happens for instance when scanning '$$'. 1098 // happens for instance when scanning '$$'.
1099 assert(endOffset >= beginOffset); 1099 assert(endOffset >= beginOffset);
1100 return f(beginOffset, endOffset); 1100 return f(beginOffset, endOffset);
1101 } 1101 }
1102 1102
1103 String toString() => 'SourceSpan($uri, $begin, $end)'; 1103 String toString() => 'SourceSpan($uri, $begin, $end)';
1104 } 1104 }
OLDNEW
« no previous file with comments | « no previous file | lib/compiler/implementation/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698