1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
{
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: 1,
key.sourcetext: ""
}
]
}
]
}
{
key.offset: 1,
key.length: 33,
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.id: "lex_unexpected_block_comment_end",
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.id: "expected_decl",
key.description: "expected declaration",
key.diagnostic_stage: source.diagnostic.stage.swift.parse,
key.diagnostics: [
{
key.line: 2,
key.column: 8,
key.filepath: syntaxmap-edit-del.swift,
key.severity: source.diagnostic.severity.note,
key.id: "note_in_decl_of",
key.description: "in declaration of 'Foo'"
}
]
}
]
}
|