Lines Matching defs:Token
109 type Token struct { struct
111 kind Kind
115 attrs uint8
119 numAttrs uint8
121 pos int
124 raw []byte
129 str string
133 func (t Token) Kind() Kind {
138 func (t Token) RawString() string {
143 func (t Token) Pos() int {
149 func (t Token) NameKind() NameKind {
158 func (t Token) HasSeparator() bool {
166 func (t Token) IdentName() string {
174 func (t Token) TypeName() string {
184 func (t Token) FieldNumber() int32 {
195 func (t Token) String() (string, bool) {
203 func (t Token) Enum() (string, bool) {
211 func (t Token) Bool() (bool, bool) {
247 func (t Token) Uint64() (uint64, bool) {
260 func (t Token) Uint32() (uint32, bool) {
273 func (t Token) Int64() (int64, bool) {
291 func (t Token) Int32() (int32, bool) {
309 func (t Token) Float64() (float64, bool) {
332 func (t Token) Float32() (float32, bool) {
366 func TokenEquals(x, y Token) bool {