mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This makes sure that diagnostics returned for a particular state of source buffer are consistent and accurate. rdar://32769873
64 lines
1.4 KiB
Plaintext
64 lines
1.4 KiB
Plaintext
<<NULL>>
|
|
[
|
|
{
|
|
key.line: 3,
|
|
key.column: 10,
|
|
key.filepath: parse_error.swift,
|
|
key.severity: source.diagnostic.severity.error,
|
|
key.description: "expected '(' in argument list of function declaration",
|
|
key.diagnostic_stage: source.diagnostic.stage.swift.sema,
|
|
key.fixits: [
|
|
{
|
|
key.offset: 26,
|
|
key.length: 0,
|
|
key.sourcetext: "()"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
key.line: 5,
|
|
key.column: 8,
|
|
key.filepath: parse_error.swift,
|
|
key.severity: source.diagnostic.severity.error,
|
|
key.description: "use of undeclared type 'Undeclared'",
|
|
key.diagnostic_stage: source.diagnostic.stage.swift.sema,
|
|
key.ranges: [
|
|
{
|
|
key.offset: 38,
|
|
key.length: 10
|
|
}
|
|
]
|
|
}
|
|
]
|
|
[
|
|
{
|
|
key.line: 3,
|
|
key.column: 13,
|
|
key.filepath: parse_error.swift,
|
|
key.severity: source.diagnostic.severity.error,
|
|
key.description: "expected '(' in argument list of function declaration",
|
|
key.diagnostic_stage: source.diagnostic.stage.swift.sema,
|
|
key.fixits: [
|
|
{
|
|
key.offset: 29,
|
|
key.length: 0,
|
|
key.sourcetext: "()"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
key.line: 5,
|
|
key.column: 8,
|
|
key.filepath: parse_error.swift,
|
|
key.severity: source.diagnostic.severity.error,
|
|
key.description: "use of undeclared type 'Undeclared'",
|
|
key.diagnostic_stage: source.diagnostic.stage.swift.sema,
|
|
key.ranges: [
|
|
{
|
|
key.offset: 41,
|
|
key.length: 10
|
|
}
|
|
]
|
|
}
|
|
]
|