Skip to content

Commit

Permalink
feat: adding fix for SelectorStmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Iván Corrales Solera committed Nov 25, 2019
1 parent 611a825 commit 8598523
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions adapter/internal/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ func astToExpressionEval(expr ast.Expr) string {
case *ast.Ellipsis:
return fmt.Sprintf("[]%s", astToExpression(t.Elt, false))
case *ast.SelectorExpr:
return fmt.Sprintf("%s.%s", astToExpression(t.X, false),t.Sel.String())
case *ast.FuncType:
return fmt.Sprintf("%s.%s", astToExpression(t.X, false), t.Sel.String())
default:
logger.Errorf("Unexpected type %s", reflect.TypeOf(t))
}
Expand Down

0 comments on commit 8598523

Please sign in to comment.