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

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

Issue 11273034: Make unmatched static call a runtime error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove isValid. Created 8 years, 1 month 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
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 elements; 5 library elements;
6 6
7 import 'dart:uri'; 7 import 'dart:uri';
8 8
9 // TODO(ahe): Rename prefix to 'api' when VM bug is fixed. 9 // TODO(ahe): Rename prefix to 'api' when VM bug is fixed.
10 import '../../compiler.dart' as api_e; 10 import '../../compiler.dart' as api_e;
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 // TODO(johnniwinther): Find a (better) way to decouple [typeVariables] from 1256 // TODO(johnniwinther): Find a (better) way to decouple [typeVariables] from
1257 // [Compiler]. 1257 // [Compiler].
1258 abstract Link<DartType> get typeVariables; 1258 abstract Link<DartType> get typeVariables;
1259 1259
1260 /** 1260 /**
1261 * Creates the type variables, their type and corresponding element, for the 1261 * Creates the type variables, their type and corresponding element, for the
1262 * type variables declared in [parameter] on [element]. The bounds of the type 1262 * type variables declared in [parameter] on [element]. The bounds of the type
1263 * variables are not set until [element] has been resolved. 1263 * variables are not set until [element] has been resolved.
1264 */ 1264 */
1265 static Link<DartType> createTypeVariables(TypeDeclarationElement element, 1265 static Link<DartType> createTypeVariables(TypeDeclarationElement element,
1266 NodeList parameters) { 1266 NodeList parameters) {
1267 if (parameters == null) return const Link<DartType>(); 1267 if (parameters == null) return const Link<DartType>();
1268 1268
1269 // Create types and elements for type variable. 1269 // Create types and elements for type variable.
1270 var arguments = new LinkBuilder<DartType>(); 1270 var arguments = new LinkBuilder<DartType>();
1271 for (Link link = parameters.nodes; !link.isEmpty; link = link.tail) { 1271 for (Link link = parameters.nodes; !link.isEmpty; link = link.tail) {
1272 TypeVariable node = link.head; 1272 TypeVariable node = link.head;
1273 SourceString variableName = node.name.source; 1273 SourceString variableName = node.name.source;
1274 TypeVariableElement variableElement = 1274 TypeVariableElement variableElement =
1275 new TypeVariableElement(variableName, element, node); 1275 new TypeVariableElement(variableName, element, node);
1276 TypeVariableType variableType = new TypeVariableType(variableElement); 1276 TypeVariableType variableType = new TypeVariableType(variableElement);
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1931 1931
1932 MetadataAnnotation ensureResolved(Compiler compiler) { 1932 MetadataAnnotation ensureResolved(Compiler compiler) {
1933 if (resolutionState == STATE_NOT_STARTED) { 1933 if (resolutionState == STATE_NOT_STARTED) {
1934 compiler.resolver.resolveMetadataAnnotation(this); 1934 compiler.resolver.resolveMetadataAnnotation(this);
1935 } 1935 }
1936 return this; 1936 return this;
1937 } 1937 }
1938 1938
1939 String toString() => 'MetadataAnnotation($value, $resolutionState)'; 1939 String toString() => 'MetadataAnnotation($value, $resolutionState)';
1940 } 1940 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/dart_backend/placeholder_collector.dart ('k') | lib/compiler/implementation/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698