Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 218768b

Browse files
Denys Smirnovdennwc
authored andcommitted
update sdk version and add unicode fixture
Signed-off-by: Denys Smirnov <[email protected]>
1 parent 451041c commit 218768b

File tree

5 files changed

+510
-2
lines changed

5 files changed

+510
-2
lines changed

Gopkg.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fixtures/unicode.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Testcls1 {
2+
final String v = "𝓏";
3+
}

fixtures/unicode.java.native

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
{
2+
CompilationUnit: { '@type': "CompilationUnit",
3+
'@pos': { '@type': "uast:Positions",
4+
start: { '@type': "uast:Position",
5+
offset: 0,
6+
line: 1,
7+
col: 1,
8+
},
9+
end: { '@type': "uast:Position",
10+
offset: 43,
11+
col: 0,
12+
},
13+
},
14+
imports: ~,
15+
package: ~,
16+
types: [
17+
{ '@type': "TypeDeclaration",
18+
'@pos': { '@type': "uast:Positions",
19+
start: { '@type': "uast:Position",
20+
offset: 0,
21+
line: 1,
22+
col: 1,
23+
},
24+
end: { '@type': "uast:Position",
25+
offset: 43,
26+
col: 0,
27+
},
28+
},
29+
bodyDeclarations: [
30+
{ '@type': "FieldDeclaration",
31+
'@pos': { '@type': "uast:Positions",
32+
start: { '@type': "uast:Position",
33+
offset: 19,
34+
line: 2,
35+
col: 3,
36+
},
37+
end: { '@type': "uast:Position",
38+
offset: 41,
39+
line: 2,
40+
col: 25,
41+
},
42+
},
43+
fragments: [
44+
{ '@type': "VariableDeclarationFragment",
45+
'@pos': { '@type': "uast:Positions",
46+
start: { '@type': "uast:Position",
47+
offset: 32,
48+
line: 2,
49+
col: 16,
50+
},
51+
end: { '@type': "uast:Position",
52+
offset: 40,
53+
line: 2,
54+
col: 24,
55+
},
56+
},
57+
'extraDimensions2': ~,
58+
initializer: { '@type': "StringLiteral",
59+
'@pos': { '@type': "uast:Positions",
60+
start: { '@type': "uast:Position",
61+
offset: 36,
62+
line: 2,
63+
col: 20,
64+
},
65+
end: { '@type': "uast:Position",
66+
offset: 40,
67+
line: 2,
68+
col: 24,
69+
},
70+
},
71+
escapedValue: "\"𝓏\"",
72+
},
73+
name: { '@type': "SimpleName",
74+
'@pos': { '@type': "uast:Positions",
75+
start: { '@type': "uast:Position",
76+
offset: 32,
77+
line: 2,
78+
col: 16,
79+
},
80+
end: { '@type': "uast:Position",
81+
offset: 33,
82+
line: 2,
83+
col: 17,
84+
},
85+
},
86+
identifier: "v",
87+
},
88+
},
89+
],
90+
javadoc: ~,
91+
modifiers: [
92+
{ '@type': "Modifier",
93+
'@pos': { '@type': "uast:Positions",
94+
start: { '@type': "uast:Position",
95+
offset: 19,
96+
line: 2,
97+
col: 3,
98+
},
99+
end: { '@type': "uast:Position",
100+
offset: 24,
101+
line: 2,
102+
col: 8,
103+
},
104+
},
105+
keyword: "final",
106+
},
107+
],
108+
type: { '@type': "SimpleType",
109+
'@pos': { '@type': "uast:Positions",
110+
start: { '@type': "uast:Position",
111+
offset: 25,
112+
line: 2,
113+
col: 9,
114+
},
115+
end: { '@type': "uast:Position",
116+
offset: 31,
117+
line: 2,
118+
col: 15,
119+
},
120+
},
121+
annotations: ~,
122+
name: { '@type': "SimpleName",
123+
'@pos': { '@type': "uast:Positions",
124+
start: { '@type': "uast:Position",
125+
offset: 25,
126+
line: 2,
127+
col: 9,
128+
},
129+
end: { '@type': "uast:Position",
130+
offset: 31,
131+
line: 2,
132+
col: 15,
133+
},
134+
},
135+
identifier: "String",
136+
},
137+
},
138+
},
139+
],
140+
interface: "false",
141+
javadoc: ~,
142+
modifiers: ~,
143+
name: { '@type': "SimpleName",
144+
'@pos': { '@type': "uast:Positions",
145+
start: { '@type': "uast:Position",
146+
offset: 6,
147+
line: 1,
148+
col: 7,
149+
},
150+
end: { '@type': "uast:Position",
151+
offset: 14,
152+
line: 1,
153+
col: 15,
154+
},
155+
},
156+
identifier: "Testcls1",
157+
},
158+
superInterfaceTypes: ~,
159+
superclassType: ~,
160+
typeParameters: ~,
161+
},
162+
],
163+
},
164+
}

fixtures/unicode.java.sem.uast

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
{ '@type': "java:CompilationUnit",
2+
'@role': [File],
3+
'@pos': { '@type': "uast:Positions",
4+
start: { '@type': "uast:Position",
5+
offset: 0,
6+
line: 1,
7+
col: 1,
8+
},
9+
end: { '@type': "uast:Position",
10+
offset: 43,
11+
col: 0,
12+
},
13+
},
14+
imports: ~,
15+
package: ~,
16+
types: [
17+
{ '@type': "java:TypeDeclaration",
18+
'@role': [Declaration, Package, Type, Visibility],
19+
'@pos': { '@type': "uast:Positions",
20+
start: { '@type': "uast:Position",
21+
offset: 0,
22+
line: 1,
23+
col: 1,
24+
},
25+
end: { '@type': "uast:Position",
26+
offset: 43,
27+
col: 0,
28+
},
29+
},
30+
bodyDeclarations: [
31+
{ '@type': "java:FieldDeclaration",
32+
'@role': [Declaration, Variable],
33+
'@pos': { '@type': "uast:Positions",
34+
start: { '@type': "uast:Position",
35+
offset: 19,
36+
line: 2,
37+
col: 3,
38+
},
39+
end: { '@type': "uast:Position",
40+
offset: 41,
41+
line: 2,
42+
col: 25,
43+
},
44+
},
45+
fragments: [
46+
{ '@type': "java:VariableDeclarationFragment",
47+
'@role': [Declaration, Variable],
48+
'@pos': { '@type': "uast:Positions",
49+
start: { '@type': "uast:Position",
50+
offset: 32,
51+
line: 2,
52+
col: 16,
53+
},
54+
end: { '@type': "uast:Position",
55+
offset: 40,
56+
line: 2,
57+
col: 24,
58+
},
59+
},
60+
'extraDimensions2': ~,
61+
initializer: { '@type': "uast:String",
62+
'@pos': { '@type': "uast:Positions",
63+
start: { '@type': "uast:Position",
64+
offset: 36,
65+
line: 2,
66+
col: 20,
67+
},
68+
end: { '@type': "uast:Position",
69+
offset: 40,
70+
line: 2,
71+
col: 24,
72+
},
73+
},
74+
Format: "",
75+
Value: "𝓏",
76+
},
77+
name: { '@type': "uast:Identifier",
78+
'@pos': { '@type': "uast:Positions",
79+
start: { '@type': "uast:Position",
80+
offset: 32,
81+
line: 2,
82+
col: 16,
83+
},
84+
end: { '@type': "uast:Position",
85+
offset: 33,
86+
line: 2,
87+
col: 17,
88+
},
89+
},
90+
Name: "v",
91+
},
92+
},
93+
],
94+
javadoc: ~,
95+
modifiers: [
96+
{ '@type': "java:Modifier",
97+
'@token': "final",
98+
'@role': [Incomplete],
99+
'@pos': { '@type': "uast:Positions",
100+
start: { '@type': "uast:Position",
101+
offset: 19,
102+
line: 2,
103+
col: 3,
104+
},
105+
end: { '@type': "uast:Position",
106+
offset: 24,
107+
line: 2,
108+
col: 8,
109+
},
110+
},
111+
},
112+
],
113+
type: { '@type': "java:SimpleType",
114+
'@role': [Type],
115+
'@pos': { '@type': "uast:Positions",
116+
start: { '@type': "uast:Position",
117+
offset: 25,
118+
line: 2,
119+
col: 9,
120+
},
121+
end: { '@type': "uast:Position",
122+
offset: 31,
123+
line: 2,
124+
col: 15,
125+
},
126+
},
127+
annotations: ~,
128+
name: { '@type': "uast:Identifier",
129+
'@pos': { '@type': "uast:Positions",
130+
start: { '@type': "uast:Position",
131+
offset: 25,
132+
line: 2,
133+
col: 9,
134+
},
135+
end: { '@type': "uast:Position",
136+
offset: 31,
137+
line: 2,
138+
col: 15,
139+
},
140+
},
141+
Name: "String",
142+
},
143+
},
144+
},
145+
],
146+
interface: "false",
147+
javadoc: ~,
148+
modifiers: ~,
149+
name: { '@type': "uast:Identifier",
150+
'@pos': { '@type': "uast:Positions",
151+
start: { '@type': "uast:Position",
152+
offset: 6,
153+
line: 1,
154+
col: 7,
155+
},
156+
end: { '@type': "uast:Position",
157+
offset: 14,
158+
line: 1,
159+
col: 15,
160+
},
161+
},
162+
Name: "Testcls1",
163+
},
164+
superInterfaceTypes: ~,
165+
superclassType: ~,
166+
typeParameters: ~,
167+
},
168+
],
169+
}

0 commit comments

Comments
 (0)