зеркало из https://github.com/golang/tools.git
go/ssa: fix some incorrect comments
Change-Id: I8aa4780e0fa4a182678f1d34b247ab203e906144 Reviewed-on: https://go-review.googlesource.com/119915 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Родитель
fcb3cb6c24
Коммит
25b95b4822
|
@ -547,8 +547,8 @@ type BinOp struct {
|
||||||
register
|
register
|
||||||
// One of:
|
// One of:
|
||||||
// ADD SUB MUL QUO REM + - * / %
|
// ADD SUB MUL QUO REM + - * / %
|
||||||
// AND OR XOR SHL SHR AND_NOT & | ^ << >> &~
|
// AND OR XOR SHL SHR AND_NOT & | ^ << >> &^
|
||||||
// EQL LSS GTR NEQ LEQ GEQ == != < <= < >=
|
// EQL NEQ LSS LEQ GTR GEQ == != < <= < >=
|
||||||
Op token.Token
|
Op token.Token
|
||||||
X, Y Value
|
X, Y Value
|
||||||
}
|
}
|
||||||
|
@ -788,7 +788,7 @@ type Slice struct {
|
||||||
type FieldAddr struct {
|
type FieldAddr struct {
|
||||||
register
|
register
|
||||||
X Value // *struct
|
X Value // *struct
|
||||||
Field int // index into X.Type().Deref().(*types.Struct).Fields
|
Field int // field is X.Type().Underlying().(*types.Pointer).Elem().Underlying().(*types.Struct).Field(Field)
|
||||||
}
|
}
|
||||||
|
|
||||||
// The Field instruction yields the Field of struct X.
|
// The Field instruction yields the Field of struct X.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче