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

Unified Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 830893003: Remove the Polymer support from the analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/error.dart
diff --git a/pkg/analyzer/lib/src/generated/error.dart b/pkg/analyzer/lib/src/generated/error.dart
index 01a5c69a0ee093cf7b6c076cd0e5e254e8338301..e83214d979adb075d0f2c838383de9d1bdfba4b8 100644
--- a/pkg/analyzer/lib/src/generated/error.dart
+++ b/pkg/analyzer/lib/src/generated/error.dart
@@ -2832,12 +2832,6 @@ class ErrorType extends Enum<ErrorType> {
static const ErrorType SYNTACTIC_ERROR =
const ErrorType('SYNTACTIC_ERROR', 6, ErrorSeverity.ERROR);
- /**
- * Polymer specific semantic problems.
- */
- static const ErrorType POLYMER =
- const ErrorType('POLYMER', 7, ErrorSeverity.INFO);
-
static const List<ErrorType> values = const [
TODO,
HINT,
@@ -2845,8 +2839,7 @@ class ErrorType extends Enum<ErrorType> {
CHECKED_MODE_COMPILE_TIME_ERROR,
STATIC_WARNING,
STATIC_TYPE_WARNING,
- SYNTACTIC_ERROR,
- POLYMER];
+ SYNTACTIC_ERROR];
/**
* The severity of this type of error.
@@ -3236,54 +3229,6 @@ class HtmlWarningCode extends ErrorCode {
}
/**
- * The enumeration `PolymerCode` defines Polymer specific problems.
- */
-class PolymerCode extends ErrorCode {
- static const PolymerCode ATTRIBUTE_FIELD_NOT_PUBLISHED = const PolymerCode(
- 'ATTRIBUTE_FIELD_NOT_PUBLISHED',
- "Field '{0}' in '{1}' must be @published");
-
- static const PolymerCode DUPLICATE_ATTRIBUTE_DEFINITION = const PolymerCode(
- 'DUPLICATE_ATTRIBUTE_DEFINITION',
- "The attribute '{0}' is already defined");
-
- static const PolymerCode EMPTY_ATTRIBUTES = const PolymerCode(
- 'EMPTY_ATTRIBUTES',
- "Empty 'attributes' attribute is useless");
-
- static const PolymerCode INVALID_ATTRIBUTE_NAME = const PolymerCode(
- 'INVALID_ATTRIBUTE_NAME',
- "'{0}' is not a valid name for a custom element attribute");
-
- static const PolymerCode INVALID_TAG_NAME = const PolymerCode(
- 'INVALID_TAG_NAME',
- "'{0}' is not a valid name for a custom element");
-
- static const PolymerCode MISSING_TAG_NAME = const PolymerCode(
- 'MISSING_TAG_NAME',
- "Missing tag name of the custom element. Please include an attribute like name='your-tag-name'");
-
- static const PolymerCode UNDEFINED_ATTRIBUTE_FIELD = const PolymerCode(
- 'UNDEFINED_ATTRIBUTE_FIELD',
- "There is no such field '{0}' in '{1}'");
-
- /**
- * Initialize a newly created error code to have the given [name]. The message
- * associated with the error will be created from the given [message]
- * template. The correction associated with the error will be created from the
- * given [correction] template.
- */
- const PolymerCode(String name, String message, [String correction])
- : super(name, message, correction);
-
- @override
- ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
-
- @override
- ErrorType get type => ErrorType.POLYMER;
-}
-
-/**
* The class `StaticTypeWarningCode` defines the error codes used for static
* type warnings. The convention for this class is for the name of the error
* code to indicate the problem that caused the error to be generated and for
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698