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

Commit

Permalink
enable namespace for semantic uast
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 Oct 31, 2018
1 parent 9e2b975 commit dd97709
Show file tree
Hide file tree
Showing 68 changed files with 4,902 additions and 4,901 deletions.
6 changes: 3 additions & 3 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 Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

[[constraint]]
name = "gopkg.in/bblfsh/sdk.v2"
version = "v2.5.x"
version = "v2.6.x"

[prune]
go-tests = true
Expand Down
1 change: 1 addition & 0 deletions driver/normalizer/transforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package normalizer
import "gopkg.in/bblfsh/sdk.v2/driver"

var Transforms = driver.Transforms{
Namespace: "go",
Preprocess: Preprocess,
Normalize: Normalize,
Annotations: Native,
Expand Down
10 changes: 5 additions & 5 deletions fixtures/_integration.go.sem.uast
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ '@type': "File",
{ '@type': "go:File",
'@role': [File],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand All @@ -19,7 +19,7 @@
},
Comments: ~,
Decls: [
{ '@type': "GenDecl",
{ '@type': "go:GenDecl",
'@role': [Declaration, Type],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down Expand Up @@ -50,7 +50,7 @@
},
Doc: ~,
Specs: [
{ '@type': "TypeSpec",
{ '@type': "go:TypeSpec",
'@role': [Declaration],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down Expand Up @@ -87,7 +87,7 @@
},
Name: "Testcls1",
},
Type: { '@type': "StructType",
Type: { '@type': "go:StructType",
'@role': [Expression, Type],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand All @@ -106,7 +106,7 @@
col: 15,
},
},
Fields: { '@type': "FieldList",
Fields: { '@type': "go:FieldList",
'@role': [Incomplete],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down
22 changes: 11 additions & 11 deletions fixtures/augmented_assign.go.sem.uast
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ '@type': "File",
{ '@type': "go:File",
'@role': [File],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down Expand Up @@ -70,7 +70,7 @@
},
},
Statements: [
{ '@type': "AssignStmt",
{ '@type': "go:AssignStmt",
'@role': [Add, Arithmetic, Assignment, Binary, Operator, Statement],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down Expand Up @@ -130,7 +130,7 @@
},
],
},
{ '@type': "AssignStmt",
{ '@type': "go:AssignStmt",
'@role': [Arithmetic, Assignment, Binary, Operator, Statement, Substract],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down Expand Up @@ -190,7 +190,7 @@
},
],
},
{ '@type': "AssignStmt",
{ '@type': "go:AssignStmt",
'@role': [Arithmetic, Assignment, Binary, Divide, Operator, Statement],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down Expand Up @@ -250,7 +250,7 @@
},
],
},
{ '@type': "AssignStmt",
{ '@type': "go:AssignStmt",
'@role': [Arithmetic, Assignment, Binary, Modulo, Operator, Statement],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down Expand Up @@ -310,7 +310,7 @@
},
],
},
{ '@type': "AssignStmt",
{ '@type': "go:AssignStmt",
'@role': [Arithmetic, Assignment, Binary, Multiply, Operator, Statement],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down Expand Up @@ -370,7 +370,7 @@
},
],
},
{ '@type': "AssignStmt",
{ '@type': "go:AssignStmt",
'@role': [Assignment, Binary, Bitwise, Operator, Or, Statement],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down Expand Up @@ -430,7 +430,7 @@
},
],
},
{ '@type': "AssignStmt",
{ '@type': "go:AssignStmt",
'@role': [And, Assignment, Binary, Bitwise, Operator, Statement],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down Expand Up @@ -490,7 +490,7 @@
},
],
},
{ '@type': "AssignStmt",
{ '@type': "go:AssignStmt",
'@role': [Assignment, Binary, Bitwise, Operator, Statement, Xor],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down Expand Up @@ -550,7 +550,7 @@
},
],
},
{ '@type': "AssignStmt",
{ '@type': "go:AssignStmt",
'@role': [Assignment, Binary, Bitwise, LeftShift, Operator, Statement],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down Expand Up @@ -610,7 +610,7 @@
},
],
},
{ '@type': "AssignStmt",
{ '@type': "go:AssignStmt",
'@role': [Assignment, Binary, Bitwise, Operator, RightShift, Statement],
'@pos': { '@type': "uast:Positions",
start: { '@type': "uast:Position",
Expand Down
Loading

0 comments on commit dd97709

Please sign in to comment.