Skip to content

Commit 87fd98d

Browse files
committed
go/types: update comment to refer to package go/constant
For #11949. Change-Id: I4329604a24efc7f40cf5bf52fb3c9e30916b3cc2 Reviewed-on: https://go-review.googlesource.com/12931 Reviewed-by: Alan Donovan <[email protected]>
1 parent 80e6d63 commit 87fd98d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/go/types/api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
// language object (Object) it denotes.
1515
// Use Info.{Defs,Uses,Implicits} for the results of name resolution.
1616
//
17-
// Constant folding computes the exact constant value (exact.Value) for
18-
// every expression (ast.Expr) that is a compile-time constant.
17+
// Constant folding computes the exact constant value (constant.Value)
18+
// for every expression (ast.Expr) that is a compile-time constant.
1919
// Use Info.Types[expr].Value for the results of constant folding.
2020
//
2121
// Type inference computes the type (Type) of every expression (ast.Expr)
@@ -218,7 +218,7 @@ func (info *Info) ObjectOf(id *ast.Ident) Object {
218218
type TypeAndValue struct {
219219
mode operandMode
220220
Type Type
221-
Value exact.Value
221+
Value exact.Value // == constant.Value
222222
}
223223

224224
// TODO(gri) Consider eliminating the IsVoid predicate. Instead, report

0 commit comments

Comments
 (0)