Skip to content

Commit d0ad030

Browse files
committed
Revert "feat(compiler-cli): detect missing structural directive imports (angular#59443)" (angular#59544)
This reverts commit ed705a8. PR Close angular#59544
1 parent 2e138e6 commit d0ad030

File tree

12 files changed

+1
-429
lines changed

12 files changed

+1
-429
lines changed

adev/src/content/reference/extended-diagnostics/NG8114.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

adev/src/content/reference/extended-diagnostics/overview.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ Currently, Angular supports the following extended diagnostics:
2020
| `NG8108` | [`skipHydrationNotStatic`](extended-diagnostics/NG8108) |
2121
| `NG8109` | [`interpolatedSignalNotInvoked`](extended-diagnostics/NG8109) |
2222
| `NG8111` | [`uninvokedFunctionInEventBinding`](extended-diagnostics/NG8111) |
23-
| `NG8113` | [`unusedStandaloneImports`](extended-diagnostics/NG8113) |
24-
| `NG8114` | [`missingStructuralDirective`](extended-diagnostics/NG8114) |
23+
| `NG8113` | [`unusedStandaloneImports`](extended-diagnostics/NG8113) |
2524

2625
## Configuration
2726

goldens/public-api/compiler-cli/error_code.api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ export enum ErrorCode {
7575
MISSING_PIPE = 8004,
7676
MISSING_REFERENCE_TARGET = 8003,
7777
MISSING_REQUIRED_INPUTS = 8008,
78-
MISSING_STRUCTURAL_DIRECTIVE = 8114,
7978
NGMODULE_BOOTSTRAP_IS_STANDALONE = 6009,
8079
NGMODULE_DECLARATION_IS_STANDALONE = 6008,
8180
NGMODULE_DECLARATION_NOT_UNIQUE = 6007,

goldens/public-api/compiler-cli/extended_template_diagnostic_name.api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ export enum ExtendedTemplateDiagnosticName {
1717
// (undocumented)
1818
MISSING_NGFOROF_LET = "missingNgForOfLet",
1919
// (undocumented)
20-
MISSING_STRUCTURAL_DIRECTIVE = "missingStructuralDirective",
21-
// (undocumented)
2220
NULLISH_COALESCING_NOT_NULLABLE = "nullishCoalescingNotNullable",
2321
// (undocumented)
2422
OPTIONAL_CHAIN_NOT_NULLABLE = "optionalChainNotNullable",

packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -518,11 +518,6 @@ export enum ErrorCode {
518518
*/
519519
UNUSED_STANDALONE_IMPORTS = 8113,
520520

521-
/**
522-
* A structural directive is used in a template, but the directive is not imported.
523-
*/
524-
MISSING_STRUCTURAL_DIRECTIVE = 8114,
525-
526521
/**
527522
* The template type-checking engine would need to generate an inline type check block for a
528523
* component, but the current type-checking environment doesn't support it.

packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export enum ExtendedTemplateDiagnosticName {
2020
NULLISH_COALESCING_NOT_NULLABLE = 'nullishCoalescingNotNullable',
2121
OPTIONAL_CHAIN_NOT_NULLABLE = 'optionalChainNotNullable',
2222
MISSING_CONTROL_FLOW_DIRECTIVE = 'missingControlFlowDirective',
23-
MISSING_STRUCTURAL_DIRECTIVE = 'missingStructuralDirective',
2423
TEXT_ATTRIBUTE_NOT_BINDING = 'textAttributeNotBinding',
2524
UNINVOKED_FUNCTION_IN_EVENT_BINDING = 'uninvokedFunctionInEventBinding',
2625
MISSING_NGFOROF_LET = 'missingNgForOfLet',

packages/compiler-cli/src/ngtsc/typecheck/extended/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ ts_library(
1616
"//packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box",
1717
"//packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive",
1818
"//packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let",
19-
"//packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_structural_directive",
2019
"//packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable",
2120
"//packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable",
2221
"//packages/compiler-cli/src/ngtsc/typecheck/extended/checks/skip_hydration_not_static",

packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_structural_directive/BUILD.bazel

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_structural_directive/index.ts

Lines changed: 0 additions & 91 deletions
This file was deleted.

packages/compiler-cli/src/ngtsc/typecheck/extended/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {factory as interpolatedSignalNotInvoked} from './checks/interpolated_sig
1313
import {factory as invalidBananaInBoxFactory} from './checks/invalid_banana_in_box';
1414
import {factory as missingControlFlowDirectiveFactory} from './checks/missing_control_flow_directive';
1515
import {factory as missingNgForOfLetFactory} from './checks/missing_ngforof_let';
16-
import {factory as missingStructuralDirectiveFactory} from './checks/missing_structural_directive';
1716
import {factory as nullishCoalescingNotNullableFactory} from './checks/nullish_coalescing_not_nullable';
1817
import {factory as optionalChainNotNullableFactory} from './checks/optional_chain_not_nullable';
1918
import {factory as suffixNotSupportedFactory} from './checks/suffix_not_supported';
@@ -33,7 +32,6 @@ export const ALL_DIAGNOSTIC_FACTORIES: readonly TemplateCheckFactory<
3332
missingControlFlowDirectiveFactory,
3433
textAttributeNotBindingFactory,
3534
missingNgForOfLetFactory,
36-
missingStructuralDirectiveFactory,
3735
suffixNotSupportedFactory,
3836
interpolatedSignalNotInvoked,
3937
uninvokedFunctionInEventBindingFactory,

0 commit comments

Comments
 (0)