Skip to content

Commit

Permalink
refactor(compiler-cli): remove unused error codes (#46847)
Browse files Browse the repository at this point in the history
A few codes were unused, or no longer used.

PR Close #46847
  • Loading branch information
cexbrayat authored and AndrewKushnir committed Aug 1, 2022
1 parent ac6e7fa commit 49e1912
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions goldens/public-api/compiler-cli/error_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ export enum ErrorCode {
// (undocumented)
DECORATOR_NOT_CALLED = 1003,
// (undocumented)
DECORATOR_ON_ANONYMOUS_CLASS = 1004,
// (undocumented)
DECORATOR_UNEXPECTED = 1005,
DIRECTIVE_INHERITS_UNDECORATED_CTOR = 2006,
// (undocumented)
Expand Down Expand Up @@ -72,8 +70,6 @@ export enum ErrorCode {
SUGGEST_STRICT_TEMPLATES = 10001,
SUGGEST_SUBOPTIMAL_TYPE_INFERENCE = 10002,
// (undocumented)
SYMBOL_EXPORTED_UNDER_DIFFERENT_NAME = 3002,
// (undocumented)
SYMBOL_NOT_EXPORTED = 3001,
TEMPLATE_PARSE_ERROR = 5002,
TEXT_ATTRIBUTE_NOT_BINDING = 8104,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export enum ErrorCode {
DECORATOR_ARG_NOT_LITERAL = 1001,
DECORATOR_ARITY_WRONG = 1002,
DECORATOR_NOT_CALLED = 1003,
DECORATOR_ON_ANONYMOUS_CLASS = 1004,
DECORATOR_UNEXPECTED = 1005,

/**
Expand Down Expand Up @@ -73,7 +72,6 @@ export enum ErrorCode {
COMPONENT_UNKNOWN_IMPORT = 2012,

SYMBOL_NOT_EXPORTED = 3001,
SYMBOL_EXPORTED_UNDER_DIFFERENT_NAME = 3002,
/**
* Raised when a relationship between directives and/or pipes would cause a cyclic import to be
* created that cannot be handled, such as in partial compilation mode.
Expand Down Expand Up @@ -269,7 +267,7 @@ export enum ErrorCode {
/**
* Indicates that the binding suffix is not supported
*
* Style bindings support suffixes like `stlye.width.px`, `.em`, and `.%`.
* Style bindings support suffixes like `style.width.px`, `.em`, and `.%`.
* These suffixes are _not_ supported for attribute bindings.
*
* For example `[attr.width.px]="5"` becomes `width.px="5"` when bound.
Expand Down

0 comments on commit 49e1912

Please sign in to comment.