File: structure.swift.invalid.response

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (162 lines) | stat: -rw-r--r-- 4,629 bytes parent folder | download
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
  key.offset: 0,
  key.length: 166,
  key.diagnostic_stage: source.diagnostic.stage.swift.parse,
  key.substructure: [
    {
      key.kind: source.lang.swift.decl.extension,
      key.name: "Worker",
      key.offset: 0,
      key.length: 82,
      key.nameoffset: 10,
      key.namelength: 6,
      key.bodyoffset: 18,
      key.bodylength: 63,
      key.substructure: [
        {
          key.kind: source.lang.swift.decl.protocol,
          key.accessibility: source.lang.swift.accessibility.public,
          key.name: "BasicWorker",
          key.offset: 28,
          key.length: 52,
          key.nameoffset: 37,
          key.namelength: 11,
          key.bodyoffset: 58,
          key.bodylength: 21,
          key.inheritedtypes: [
            {
              key.name: "Worker"
            }
          ],
          key.attributes: [
            {
              key.offset: 21,
              key.length: 6,
              key.attribute: source.decl.attribute.public
            }
          ],
          key.elements: [
            {
              key.kind: source.lang.swift.structure.elem.typeref,
              key.offset: 50,
              key.length: 6
            }
          ],
          key.substructure: [
            {
              key.kind: source.lang.swift.decl.var.instance,
              key.accessibility: source.lang.swift.accessibility.public,
              key.setter_accessibility: source.lang.swift.accessibility.public,
              key.name: "eventLoop",
              key.offset: 63,
              key.length: 13,
              key.nameoffset: 67,
              key.namelength: 9
            }
          ]
        }
      ]
    },
    {
      key.kind: source.lang.swift.decl.class,
      key.accessibility: source.lang.swift.accessibility.internal,
      key.name: "3",
      key.offset: 84,
      key.length: 10,
      key.nameoffset: 90,
      key.namelength: 1,
      key.bodyoffset: 93,
      key.bodylength: 0
    },
    {
      key.kind: source.lang.swift.decl.extension,
      key.name: "OuterCls",
      key.offset: 96,
      key.length: 43,
      key.nameoffset: 106,
      key.namelength: 8,
      key.bodyoffset: 116,
      key.bodylength: 22,
      key.substructure: [
        {
          key.kind: source.lang.swift.decl.class,
          key.name: "InnerCls1",
          key.offset: 119,
          key.length: 18,
          key.nameoffset: 125,
          key.namelength: 9,
          key.bodyoffset: 136,
          key.bodylength: 0
        }
      ]
    },
    {
      key.kind: source.lang.swift.expr.closure,
      key.offset: 141,
      key.length: 24,
      key.bodyoffset: 142,
      key.bodylength: 22,
      key.substructure: [
        {
          key.kind: source.lang.swift.stmt.brace,
          key.offset: 141,
          key.length: 24,
          key.bodyoffset: 142,
          key.bodylength: 22,
          key.substructure: [
            {
              key.kind: source.lang.swift.decl.class,
              key.accessibility: source.lang.swift.accessibility.private,
              key.name: "MyCoolClass",
              key.offset: 143,
              key.length: 22,
              key.nameoffset: 149,
              key.namelength: 11,
              key.bodyoffset: 162,
              key.bodylength: 2
            }
          ]
        }
      ]
    }
  ],
  key.diagnostics: [
    {
      key.line: 7,
      key.column: 7,
      key.filepath: invalid.swift,
      key.severity: source.diagnostic.severity.error,
      key.id: "number_cant_start_decl_name",
      key.description: "class name can only start with a letter or underscore, not a number",
      key.diagnostic_stage: source.diagnostic.stage.swift.parse
    },
    {
      key.line: 13,
      key.column: 1,
      key.filepath: invalid.swift,
      key.severity: source.diagnostic.severity.error,
      key.id: "statement_begins_with_closure",
      key.description: "top-level statement cannot begin with a closure expression",
      key.diagnostic_stage: source.diagnostic.stage.swift.parse
    },
    {
      key.line: 17,
      key.column: 1,
      key.filepath: invalid.swift,
      key.severity: source.diagnostic.severity.error,
      key.id: "expected_closure_rbrace",
      key.description: "expected '}' at end of closure",
      key.diagnostic_stage: source.diagnostic.stage.swift.parse,
      key.diagnostics: [
        {
          key.line: 13,
          key.column: 1,
          key.filepath: invalid.swift,
          key.severity: source.diagnostic.severity.note,
          key.id: "opening_brace",
          key.description: "to match this opening '{'"
        }
      ]
    }
  ]
}