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

Commit

Permalink
Merge pull request #172 from juanjux/fix/visibility_role
Browse files Browse the repository at this point in the history
Add missing Visibility role, GoFmt
  • Loading branch information
juanjux authored Sep 15, 2017
2 parents b04b0f3 + e3d7b92 commit fd92811
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions uast/uast.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -236,11 +239,11 @@ 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.
Then
Then

// Else is the clause executed when the Condition is false.
Else
Expand Down Expand Up @@ -269,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

Expand Down Expand Up @@ -326,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.
Expand Down Expand Up @@ -452,7 +458,7 @@ type Node struct {
func NewNode() *Node {
return &Node{
Properties: make(map[string]string, 0),
Roles: []Role{Unannotated},
Roles: []Role{Unannotated},
}
}

Expand Down

0 comments on commit fd92811

Please sign in to comment.