Skip to content

Commit

Permalink
lang: Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Frank committed Dec 26, 2024
1 parent 96cf458 commit 1b0b92f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lang/ast/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ var (
// TextArea stores the coordinates of a statement or expression in the form of
// starting line/column and ending line/column
type TextArea struct {
startLine int
startLine int
startColumn int
endLine int
endColumn int
endLine int
endColumn int

// Bug5819 works around issue https://github.com/golang/go/issues/5819
Bug5819 interface{} // XXX: workaround
Expand Down Expand Up @@ -8583,7 +8583,7 @@ func (obj *ExprCall) Infer() (*types.Type, []*interfaces.UnificationInvariant, e
invar := &interfaces.UnificationInvariant{
Expr: obj.expr, // this should NOT be obj
Node: obj,
Expect: typFunc, // TODO: are these two reversed here?
Expect: typFunc, // TODO: are these two reversed here?
Actual: typFn,
}
invariants = append(invariants, invar)
Expand Down
2 changes: 1 addition & 1 deletion lang/gapi/gapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func (obj *GAPI) Cli(info *gapi.Info) (*gapi.Deploy, error) {
logf("type unification failed after %s", formatted)
}
cause := unifyErr.(*interfaces.UnificationInvariant).Node
parent := ast.AreaParentOf(cause,iast)
parent := ast.AreaParentOf(cause, iast)
line, col := parent.GetPosition()
logf("possible type issue found at line %d column %d", line, col)
return nil, errwrap.Wrapf(unifyErr, "could not unify types")
Expand Down

0 comments on commit 1b0b92f

Please sign in to comment.