Skip to content

Commit

Permalink
go/types, types2: remove unused argument from Checker.compositeLit
Browse files Browse the repository at this point in the history
Change-Id: I4f52503bab569d85f28ae8920079de26a331b7ff
Reviewed-on: https://go-review.googlesource.com/c/go/+/610560
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Tim King <taking@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
griesemer authored and gopherbot committed Sep 5, 2024
1 parent 0fc3b12 commit e4f9cb5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/types2/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ func (check *Checker) exprInternal(T *target, x *operand, e syntax.Expr, hint Ty
}

case *syntax.CompositeLit:
check.compositeLit(T, x, e, hint)
check.compositeLit(x, e, hint)
if x.mode == invalid {
goto Error
}
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/types2/literals.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (check *Checker) funcLit(x *operand, e *syntax.FuncLit) {
}
}

func (check *Checker) compositeLit(T *target, x *operand, e *syntax.CompositeLit, hint Type) {
func (check *Checker) compositeLit(x *operand, e *syntax.CompositeLit, hint Type) {
var typ, base Type
var isElem bool // true if composite literal is an element of an enclosing composite literal

Expand Down
2 changes: 1 addition & 1 deletion src/go/types/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ func (check *Checker) exprInternal(T *target, x *operand, e ast.Expr, hint Type)
}

case *ast.CompositeLit:
check.compositeLit(T, x, e, hint)
check.compositeLit(x, e, hint)
if x.mode == invalid {
goto Error
}
Expand Down
2 changes: 1 addition & 1 deletion src/go/types/literals.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e4f9cb5

Please sign in to comment.