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

Unified Diff: lib/compiler/implementation/resolver.dart

Issue 10001008: Many type fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/resolver.dart
diff --git a/lib/compiler/implementation/resolver.dart b/lib/compiler/implementation/resolver.dart
index b9b367c60715b6dea17d1186b573477943fae72d..761f1bb9634e142a613c15d3c381597f1c17bab4 100644
--- a/lib/compiler/implementation/resolver.dart
+++ b/lib/compiler/implementation/resolver.dart
@@ -1034,7 +1034,7 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
if (constructor === null) {
Element resolved = resolveTypeRequired(node.send.selector);
if (resolved !== null && resolved.kind === ElementKind.TYPE_VARIABLE) {
- error(node, WarningKind.TYPE_VARIABLE_AS_CONSTRUCTOR);
+ error(node, MessageKind.TYPE_VARIABLE_AS_CONSTRUCTOR);
return null;
} else {
error(node.send, MessageKind.CANNOT_FIND_CONSTRUCTOR, [node.send]);
@@ -1210,8 +1210,8 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
TargetElement targetElement =
new TargetElement(switchCase,
- statementScope.nestingLevel,
- enclosingElement);
+ statementScope.nestingLevel,
+ enclosingElement);
mapping[switchCase] = targetElement;
LabelElement label =
« no previous file with comments | « lib/compiler/implementation/elements/elements.dart ('k') | lib/compiler/implementation/scanner/byte_strings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698