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 and add unicode fixture
Browse files Browse the repository at this point in the history
Signed-off-by: Denys Smirnov <denys@sourced.tech>
  • Loading branch information
Denys Smirnov authored and dennwc committed Apr 8, 2019
1 parent 1e99981 commit 223a293
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 3 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: 1 addition & 1 deletion driver/normalizer/annotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var Native = Transformers([][]Transformer{
}...)

var Code = []CodeTransformer{
positioner.NewFillOffsetFromLineCol(),
positioner.FromLineCol(),
}

var PreprocessCode = []CodeTransformer{}
Expand Down
1 change: 1 addition & 0 deletions fixtures/unicode.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"𝓏"
15 changes: 15 additions & 0 deletions fixtures/unicode.rb.native
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ '@type': "module",
file: { '@type': "str",
'@token': "𝓏",
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
line: 1,
col: 1,
},
end: { '@type': "uast:Position",
line: 1,
col: 4,
},
},
},
}
19 changes: 19 additions & 0 deletions fixtures/unicode.rb.sem.uast
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ '@type': "ruby:module",
'@role': [Identifier, Module, Statement],
file: { '@type': "uast:String",
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
offset: 0,
line: 1,
col: 1,
},
end: { '@type': "uast:Position",
offset: 3,
line: 1,
col: 4,
},
},
Format: "",
Value: "𝓏",
},
}
19 changes: 19 additions & 0 deletions fixtures/unicode.rb.uast
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ '@type': "module",
'@role': [Identifier, Module, Statement],
file: { '@type': "str",
'@token': "𝓏",
'@role': [Expression, Literal, Primitive, String],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
offset: 0,
line: 1,
col: 1,
},
end: { '@type': "uast:Position",
offset: 3,
line: 1,
col: 4,
},
},
},
}

0 comments on commit 223a293

Please sign in to comment.