Files
tsgo/testdata/baselines/reference/compiler/contentMapperInvalidDiagnosticDirectives.contentmapper
2026-08-19 20:30:48 +00:00

57 lines
2.0 KiB
Plaintext

//// [/invalidRange.invalidrange] (ScriptKind: ScriptKindTS, ContentMapper: [.invalidrange])
--- Original ---
// @box-invalid-directive: invalid-range
--- Transformed ---
//// [/invalidPolicy.invalidpolicy] (ScriptKind: ScriptKindTS, ContentMapper: [.invalidpolicy])
--- Original ---
// @box-invalid-directive: invalid-policy
--- Transformed ---
//// [/expectWithoutUnusedDiagnostic.expectmissing] (ScriptKind: ScriptKindTS, ContentMapper: [.expectmissing])
--- Original ---
// @box-invalid-directive: expect-without-unused-diagnostic
--- Transformed ---
//// [/invalidUnusedDiagnosticIndex.invalidunusedindex] (ScriptKind: ScriptKindTS, ContentMapper: [.invalidunusedindex])
--- Original ---
// @box-invalid-directive: invalid-unused-diagnostic-index
--- Transformed ---
//// [/overlap.overlap] (ScriptKind: ScriptKindTS, ContentMapper: [.overlap])
--- Original ---
// @box-invalid-directive: overlap
--- Transformed ---
=== Diagnostics ===
/expectWithoutUnusedDiagnostic.expectmissing:1:1 - error TS100025: The content mapper 'mapper' failed to transform this file.
Diagnostic directive 0 returned by the content mapper must specify 'unusedExpectDirectiveIndex' when there is not exactly one 'unusedExpectDirectiveDiagnostics' entry.
1
~
/invalidPolicy.invalidpolicy:1:1 - error TS100025: The content mapper 'mapper' failed to transform this file.
The content mapper returned a diagnostic directive with invalid policy '2'.
1
~
/invalidRange.invalidrange:1:1 - error TS100025: The content mapper 'mapper' failed to transform this file.
Diagnostic directive 0 returned by the content mapper has an invalid range.
1
~
/invalidUnusedDiagnosticIndex.invalidunusedindex:1:1 - error TS100025: The content mapper 'mapper' failed to transform this file.
Diagnostic directive 0 returned by the content mapper has an invalid 'unusedExpectDirectiveIndex'.
1
~
/overlap.overlap:1:1 - error TS100025: The content mapper 'mapper' failed to transform this file.
The content mapper returned diagnostic directives with overlapping virtual ranges.
1
~