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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 23194002: Add missing registration of throwRuntimeError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | tests/language/create_unresolved_type_test.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 part of resolution; 5 part of resolution;
6 6
7 abstract class TreeElements { 7 abstract class TreeElements {
8 Element get currentElement; 8 Element get currentElement;
9 Set<Node> get superUses; 9 Set<Node> get superUses;
10 10
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1460 1460
1461 Element element = resolveTypeName(visitor.scope, prefixName, typeName); 1461 Element element = resolveTypeName(visitor.scope, prefixName, typeName);
1462 DartType type; 1462 DartType type;
1463 1463
1464 DartType reportFailureAndCreateType(DualKind messageKind, 1464 DartType reportFailureAndCreateType(DualKind messageKind,
1465 Map messageArguments, 1465 Map messageArguments,
1466 {DartType userProvidedBadType}) { 1466 {DartType userProvidedBadType}) {
1467 if (malformedIsError) { 1467 if (malformedIsError) {
1468 visitor.error(node, messageKind.error, messageArguments); 1468 visitor.error(node, messageKind.error, messageArguments);
1469 } else { 1469 } else {
1470 compiler.backend.registerThrowRuntimeError(visitor.mapping);
1470 visitor.warning(node, messageKind.warning, messageArguments); 1471 visitor.warning(node, messageKind.warning, messageArguments);
1471 } 1472 }
1472 var erroneousElement = new ErroneousElementX( 1473 var erroneousElement = new ErroneousElementX(
1473 messageKind.error, messageArguments, typeName.source, 1474 messageKind.error, messageArguments, typeName.source,
1474 visitor.enclosingElement); 1475 visitor.enclosingElement);
1475 var arguments = new LinkBuilder<DartType>(); 1476 var arguments = new LinkBuilder<DartType>();
1476 resolveTypeArguments(visitor, node, null, arguments); 1477 resolveTypeArguments(visitor, node, null, arguments);
1477 return new MalformedType(erroneousElement, 1478 return new MalformedType(erroneousElement,
1478 userProvidedBadType, arguments.toLink()); 1479 userProvidedBadType, arguments.toLink());
1479 } 1480 }
(...skipping 2606 matching lines...) Expand 10 before | Expand all | Expand 10 after
4086 return e; 4087 return e;
4087 } 4088 }
4088 4089
4089 /// Assumed to be called by [resolveRedirectingFactory]. 4090 /// Assumed to be called by [resolveRedirectingFactory].
4090 Element visitReturn(Return node) { 4091 Element visitReturn(Return node) {
4091 Node expression = node.expression; 4092 Node expression = node.expression;
4092 return finishConstructorReference(visit(expression), 4093 return finishConstructorReference(visit(expression),
4093 expression, expression); 4094 expression, expression);
4094 } 4095 }
4095 } 4096 }
OLDNEW
« no previous file with comments | « no previous file | tests/language/create_unresolved_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698