IsWord returns true if the token is some kind of word-like entity, including IDENT, STRING, CHAR, or one of the Go keywords. This is for exec filtering.
()
| 111 | // including IDENT, STRING, CHAR, or one of the Go keywords. |
| 112 | // This is for exec filtering. |
| 113 | func (tk *Token) IsWord() bool { |
| 114 | return tk.Tok == token.IDENT || tk.IsGo() || tk.Tok == token.STRING || tk.Tok == token.CHAR |
| 115 | } |