File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 14
14
// language object (Object) it denotes.
15
15
// Use Info.{Defs,Uses,Implicits} for the results of name resolution.
16
16
//
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.
19
19
// Use Info.Types[expr].Value for the results of constant folding.
20
20
//
21
21
// Type inference computes the type (Type) of every expression (ast.Expr)
@@ -218,7 +218,7 @@ func (info *Info) ObjectOf(id *ast.Ident) Object {
218
218
type TypeAndValue struct {
219
219
mode operandMode
220
220
Type Type
221
- Value exact.Value
221
+ Value exact.Value // == constant.Value
222
222
}
223
223
224
224
// TODO(gri) Consider eliminating the IsVoid predicate. Instead, report
You can’t perform that action at this time.
0 commit comments