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

Commit 3616013

Browse files
Denys Smirnovdennwc
Denys Smirnov
authored andcommitted
update sdk version; add unicode fixture; fixes #31
Signed-off-by: Denys Smirnov <[email protected]>
1 parent 8ce5129 commit 3616013

File tree

5 files changed

+67
-2
lines changed

5 files changed

+67
-2
lines changed

Gopkg.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fixtures/unicode.php

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?php
2+
"𝓏";

fixtures/unicode.php.native

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
children: [
3+
{
4+
attributes: {
5+
endFilePos: 11,
6+
endLine: 2,
7+
endTokenPos: 1,
8+
kind: 2,
9+
startFilePos: 6,
10+
startLine: 2,
11+
startTokenPos: 1,
12+
},
13+
nodeType: "Scalar_String",
14+
value: "𝓏",
15+
},
16+
],
17+
nodeType: "Module",
18+
}

fixtures/unicode.php.sem.uast

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{ '@type': "php:Module",
2+
'@role': [Module],
3+
children: [
4+
{ '@type': "uast:String",
5+
'@pos': { '@type': "uast:Positions",
6+
start: { '@type': "uast:Position",
7+
offset: 6,
8+
line: 2,
9+
col: 1,
10+
},
11+
end: { '@type': "uast:Position",
12+
offset: 12,
13+
line: 2,
14+
col: 7,
15+
},
16+
},
17+
Format: "",
18+
Value: "𝓏",
19+
},
20+
],
21+
}

fixtures/unicode.php.uast

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{ '@type': "Module",
2+
'@role': [Module],
3+
children: [
4+
{ '@type': "Scalar_String",
5+
'@token': "𝓏",
6+
'@role': [Expression, Literal, String],
7+
'@pos': { '@type': "uast:Positions",
8+
start: { '@type': "uast:Position",
9+
offset: 6,
10+
line: 2,
11+
col: 1,
12+
},
13+
end: { '@type': "uast:Position",
14+
offset: 12,
15+
line: 2,
16+
col: 7,
17+
},
18+
},
19+
attributes: {
20+
kind: 2,
21+
},
22+
},
23+
],
24+
}

0 commit comments

Comments
 (0)