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

Commit

Permalink
update sdk version; add unicode fixture; fixes #31
Browse files Browse the repository at this point in the history
Signed-off-by: Denys Smirnov <[email protected]>
  • Loading branch information
Denys Smirnov authored and dennwc committed Apr 8, 2019
1 parent 8ce5129 commit 3616013
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions fixtures/unicode.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
"𝓏";
18 changes: 18 additions & 0 deletions fixtures/unicode.php.native
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
children: [
{
attributes: {
endFilePos: 11,
endLine: 2,
endTokenPos: 1,
kind: 2,
startFilePos: 6,
startLine: 2,
startTokenPos: 1,
},
nodeType: "Scalar_String",
value: "𝓏",
},
],
nodeType: "Module",
}
21 changes: 21 additions & 0 deletions fixtures/unicode.php.sem.uast
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{ '@type': "php:Module",
'@role': [Module],
children: [
{ '@type': "uast:String",
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
offset: 6,
line: 2,
col: 1,
},
end: { '@type': "uast:Position",
offset: 12,
line: 2,
col: 7,
},
},
Format: "",
Value: "𝓏",
},
],
}
24 changes: 24 additions & 0 deletions fixtures/unicode.php.uast
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ '@type': "Module",
'@role': [Module],
children: [
{ '@type': "Scalar_String",
'@token': "𝓏",
'@role': [Expression, Literal, String],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
offset: 6,
line: 2,
col: 1,
},
end: { '@type': "uast:Position",
offset: 12,
line: 2,
col: 7,
},
},
attributes: {
kind: 2,
},
},
],
}

0 comments on commit 3616013

Please sign in to comment.