-
Notifications
You must be signed in to change notification settings - Fork 9
Bip 5 #16
Bip 5 #16
Conversation
@dennwc PTAL when you can, all remaining issues should have been fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Few micro changes and let's merge it! :)
driver/fixtures/fixtures_test.go
Outdated
"gopkg.in/bblfsh/sdk.v2/sdk/driver/fixtures" | ||
) | ||
|
||
//const projectRoot = "/opt/driver/src" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove the comment
driver/normalizer/annotation.go
Outdated
On(HasInternalRole("cond")).Roles(uast.Case), | ||
), | ||
func (op opParts2Str) Check(st *State, n uast.Node) (bool, error) { | ||
if _, ok := n.(uast.String); ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is redundant, since n.(uast.Array)
already filters this case
driver/normalizer/annotation.go
Outdated
), | ||
), | ||
func (op opParts2Str) Construct(st *State, n uast.Node) (uast.Node, error) { | ||
n, err := op.orig.Construct(st, n) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just return op.orig.Construct(st, n)
LGTM! Feel free to squash/merge as necessary. |
- Some HasInternalRole conversions - Assignmnent and opAssign annotations - Added phpast aliases module - More annotations. Reparent native attributes - Some conditional annotations - Some fixes - UncommentCLike working, update to SDK.v2 - Add missing files - Comment positions - Added missing tokens - Delete old tonoder test Signed-off-by: Juanjo Alvarez <[email protected]> Fixed build with v2 fix name transform Signed-off-by: Denys Smirnov <[email protected]> Cleanup of debug stuff Signed-off-by: Juanjo Alvarez <[email protected]> Remove debug yaml output Signed-off-by: Juanjo Alvarez <[email protected]> Fix Makefile Signed-off-by: Juanjo Alvarez <[email protected]> Fix some unannotated roles Signed-off-by: Juanjo Alvarez <[email protected]> xxx Signed-off-by: Juanjo Alvarez <[email protected]> Fix several issues Signed-off-by: Juanjo Alvarez <[email protected]> Compute line and col from offset instead of using the native ones Signed-off-by: Juanjo Alvarez <[email protected]> Remove the now unneeded attributes object Signed-off-by: Juanjo Alvarez <[email protected]> Join Name.parts into a single string Signed-off-by: Juanjo Alvarez <[email protected]> Fix CI Signed-off-by: Juanjo Alvarez <[email protected]> Fix unannotated name corner case Signed-off-by: Juanjo Alvarez <[email protected]> Fixes from review Signed-off-by: Juanjo Alvarez <[email protected]>
Pending:
attributes
node (positions are there, are translated but the node remains). Not critical but it's ugly.Name.parts
doesn't get the Unannotated roles and doesn't get new types set. Seems to be an SDK problem, but I'll join them into a single string like the previous driver did.File
missing on root, even trough I added it directly in the native AST (Fixed: had to delete thebuild/
directory to get the image to update).