Files
swift-mirror/test/SourceKit/SyntaxMapData/syntaxmap-edit-del.swift.response2
Allan Shortlidge cea706a03f AST: Improve InFlightDiagnostic::fixItRemove() heuristics.
If the fix-it would remove a range that is followed by a newline and the
remaining text on the line is empty or all whitespace then remove the entire
line. This produces better results when a fix-it removes an attribute that is
written on a line by itself.
2026-05-06 11:03:30 -07:00

36 lines
774 B
Plaintext

{
key.offset: 0,
key.length: 38,
key.diagnostic_stage: source.diagnostic.stage.swift.parse,
key.syntaxmap: [
{
key.kind: source.lang.swift.syntaxtype.comment,
key.offset: 1,
key.length: 34
}
],
key.diagnostics: [
{
key.line: 4,
key.column: 1,
key.filepath: syntaxmap-edit-del.swift,
key.severity: source.diagnostic.severity.error,
key.id: "extra_rbrace",
key.description: "extraneous '}' at top level",
key.diagnostic_stage: source.diagnostic.stage.swift.parse,
key.fixits: [
{
key.offset: 36,
key.length: 2,
key.sourcetext: ""
}
]
}
]
}
{
key.diagnostic_stage: source.diagnostic.stage.swift.parse,
key.syntaxmap: [
]
}