MCPcopy Create free account
hub / github.com/cogentcore/core / IsOp

Method IsOp

shell/token.go:201–206  ·  view source on GitHub ↗

IsOp returns true if the given token is an operator

()

Source from the content-addressed store, hash-verified

199
200// IsOp returns true if the given token is an operator
201func (tk *Token) IsOp() bool {
202 if tk.Tok >= token.ADD && tk.Tok <= token.DEFINE {
203 return true
204 }
205 return false
206}
207
208// Contains returns true if the token string contains any of the given token(s)
209func (tk Tokens) Contains(toks ...token.Token) bool {

Callers 1

CodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected