Files
swift-mirror/test/SourceKit/SyntaxMapData/syntaxmap-edit-del.swift.response
Chris Lattner 8d81349fe1 fix rdar://24029542 "Postfix '.' is reserved" error message" isn't helpful
This adds some heuristics so we can emit a fixit to remove extraneous
whitespace after a . and diagnose the case where a member just hasn't
been written yet better.  This also improves handling of tok::unknown
throughout the parser a bit.

This is a re-commit of ff4ea54 with an update for a SourceKit test.
2016-01-11 15:11:20 -08:00

80 lines
1.9 KiB
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.description: "extraneous '}' at top level",
key.diagnostic_stage: source.diagnostic.stage.swift.parse,
key.fixits: [
{
key.offset: 36,
key.length: 1,
key.sourcetext: ""
}
]
}
]
}
{
key.offset: 1,
key.length: 36,
key.diagnostic_stage: source.diagnostic.stage.swift.parse,
key.syntaxmap: [
{
key.kind: source.lang.swift.syntaxtype.keyword,
key.offset: 2,
key.length: 5
},
{
key.kind: source.lang.swift.syntaxtype.identifier,
key.offset: 8,
key.length: 3
},
{
key.kind: source.lang.swift.syntaxtype.keyword,
key.offset: 18,
key.length: 3
},
{
key.kind: source.lang.swift.syntaxtype.identifier,
key.offset: 22,
key.length: 4
},
{
key.kind: source.lang.swift.syntaxtype.typeidentifier,
key.offset: 29,
key.length: 3
}
],
key.diagnostics: [
{
key.line: 3,
key.column: 19,
key.filepath: syntaxmap-edit-del.swift,
key.severity: source.diagnostic.severity.error,
key.description: "unexpected end of block comment",
key.diagnostic_stage: source.diagnostic.stage.swift.parse
},
{
key.line: 4,
key.column: 1,
key.filepath: syntaxmap-edit-del.swift,
key.severity: source.diagnostic.severity.error,
key.description: "expected declaration",
key.diagnostic_stage: source.diagnostic.stage.swift.parse
}
]
}