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

Side by Side Diff: compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java

Issue 9289029: Added runtime type checking to the elements of list and map literals in dartc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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
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 package com.google.dart.compiler.resolver; 4 package com.google.dart.compiler.resolver;
5 5
6 import com.google.dart.compiler.ErrorCode; 6 import com.google.dart.compiler.ErrorCode;
7 import com.google.dart.compiler.ErrorSeverity; 7 import com.google.dart.compiler.ErrorSeverity;
8 import com.google.dart.compiler.SubSystem; 8 import com.google.dart.compiler.SubSystem;
9 9
10 /** 10 /**
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 "Illegal constructor declaration. No default clause in interface"), 102 "Illegal constructor declaration. No default clause in interface"),
103 ILLEGAL_FIELD_ACCESS_FROM_STATIC("Illegal access of instance field %s from sta tic scope"), 103 ILLEGAL_FIELD_ACCESS_FROM_STATIC("Illegal access of instance field %s from sta tic scope"),
104 ILLEGAL_METHOD_ACCESS_FROM_STATIC("Illegal access of instance method %s from s tatic scope"), 104 ILLEGAL_METHOD_ACCESS_FROM_STATIC("Illegal access of instance method %s from s tatic scope"),
105 INSTANCE_METHOD_FROM_STATIC("Instance methods cannot be referenced from static methods"), 105 INSTANCE_METHOD_FROM_STATIC("Instance methods cannot be referenced from static methods"),
106 INTERNAL_ERROR("internal error: %s"), 106 INTERNAL_ERROR("internal error: %s"),
107 INVALID_RETURN_IN_CONSTRUCTOR("Generative constructors cannot return arbitrary expressions"), 107 INVALID_RETURN_IN_CONSTRUCTOR("Generative constructors cannot return arbitrary expressions"),
108 INVALID_TYPE_NAME_IN_CONSTRUCTOR("Invalid type in constructor name"), 108 INVALID_TYPE_NAME_IN_CONSTRUCTOR("Invalid type in constructor name"),
109 IS_A_CLASS("%s is a class and cannot be used as an expression"), 109 IS_A_CLASS("%s is a class and cannot be used as an expression"),
110 IS_A_CONSTRUCTOR("%s.%s is a constructor, expected a method"), 110 IS_A_CONSTRUCTOR("%s.%s is a constructor, expected a method"),
111 IS_AN_INSTANCE_METHOD("%s.%s is an instance method, not a static method"), 111 IS_AN_INSTANCE_METHOD("%s.%s is an instance method, not a static method"),
112 LIST_LITERAL_ELEMENT_TYPE(
113 "List literal element type must match declaration '%s' when type checks ar e on."),
114 MAP_LITERAL_ELEMENT_TYPE(
115 "Map literal element type must match declaration '%s' when type checks are on."),
112 METHOD_MUST_HAVE_BODY("A non-abstract method must have a body"), 116 METHOD_MUST_HAVE_BODY("A non-abstract method must have a body"),
113 NEW_EXPRESSION_CANT_USE_TYPE_VAR("New expression cannot be invoked on type var iable"), 117 NEW_EXPRESSION_CANT_USE_TYPE_VAR("New expression cannot be invoked on type var iable"),
114 NEW_EXPRESSION_NOT_CONSTRUCTOR("New expression does not resolve to a construct or"), 118 NEW_EXPRESSION_NOT_CONSTRUCTOR("New expression does not resolve to a construct or"),
115 NO_SUCH_TYPE("no such type \"%s\""), 119 NO_SUCH_TYPE("no such type \"%s\""),
116 NO_SUCH_TYPE_CONSTRUCTOR("no such type \"%s\" in constructor"), 120 NO_SUCH_TYPE_CONSTRUCTOR("no such type \"%s\" in constructor"),
117 NO_SUCH_TYPE_VARAIBLE("no such type variable \"%s\" defined"), 121 NO_SUCH_TYPE_VARAIBLE("no such type variable \"%s\" defined"),
118 NOT_A_CLASS("\"%s\" is not a class"), 122 NOT_A_CLASS("\"%s\" is not a class"),
119 NOT_A_CLASS_OR_INTERFACE("\"%s\" is not a class or interface"), 123 NOT_A_CLASS_OR_INTERFACE("\"%s\" is not a class or interface"),
120 NOT_AN_INTERFACE("\"%s\" is not an interface"), 124 NOT_AN_INTERFACE("\"%s\" is not an interface"),
121 NOT_A_LABEL("\"%s\" is not a label"), 125 NOT_A_LABEL("\"%s\" is not a label"),
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 @Override 178 @Override
175 public ErrorSeverity getErrorSeverity() { 179 public ErrorSeverity getErrorSeverity() {
176 return severity; 180 return severity;
177 } 181 }
178 182
179 @Override 183 @Override
180 public SubSystem getSubSystem() { 184 public SubSystem getSubSystem() {
181 return SubSystem.RESOLVER; 185 return SubSystem.RESOLVER;
182 } 186 }
183 } 187 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698