From b99ff5ef614f00e1a97cab9f6c29d91b223188f9 Mon Sep 17 00:00:00 2001 From: Juanjo Alvarez Date: Fri, 15 Sep 2017 11:29:08 +0200 Subject: [PATCH 1/2] Add missing Visibility role, GoFmt --- uast/uast.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/uast/uast.go b/uast/uast.go index 4906cd06..54d94cd0 100644 --- a/uast/uast.go +++ b/uast/uast.go @@ -199,6 +199,9 @@ const ( // Subtype is a type that can be used to substitute another type. Subtype + // Visibility is an access granter role, usually together with an specifier role + Visibility + // Subpackage is a package that is below another package in the hierarchy. Subpackage @@ -240,7 +243,7 @@ const ( Condition // Then is the clause executed when the Condition is true. - Then + Then // Else is the clause executed when the Condition is false. Else @@ -452,7 +455,7 @@ type Node struct { func NewNode() *Node { return &Node{ Properties: make(map[string]string, 0), - Roles: []Role{Unannotated}, + Roles: []Role{Unannotated}, } } From e3d7b92aa384b58a5f3a53a8fa846e050471da93 Mon Sep 17 00:00:00 2001 From: Juanjo Alvarez Date: Fri, 15 Sep 2017 11:36:48 +0200 Subject: [PATCH 2/2] Some comment fixes --- uast/uast.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/uast/uast.go b/uast/uast.go index 54d94cd0..e9c9d4b2 100644 --- a/uast/uast.go +++ b/uast/uast.go @@ -239,7 +239,7 @@ const ( // Else is not defined. If - // IfCondition is a condition in an IfStatement or IfExpression. + // Condition is a condition in an IfStatement or IfExpression. Condition // Then is the clause executed when the Condition is true. @@ -272,7 +272,10 @@ const ( // Update is the assignment of a new value to a variable // (i.e. a for loop variable update.) Update + + // Iterator is the element that iterates over something. Iterator + // While is a loop construct with a condition and a body. While @@ -329,7 +332,7 @@ const ( // Positional is an element which position has meaning (i.e. a positional argument in a call). Positional - // A construct that does nothing. + // Noop is a construct that does nothing. Noop // Literal is a literal value.