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

Method IsValidExecIdent

shell/token.go:113–115  ·  view source on GitHub ↗

IsValidExecIdent returns true if the given token is a valid component of an Exec mode identifier

()

Source from the content-addressed store, hash-verified

111// IsValidExecIdent returns true if the given token is a valid component
112// of an Exec mode identifier
113func (tk *Token) IsValidExecIdent() bool {
114 return (tk.IsGo() || tk.Tok == token.IDENT || tk.Tok == token.SUB || tk.Tok == token.DEC || tk.Tok == token.INT || tk.Tok == token.FLOAT || tk.Tok == token.ASSIGN)
115}
116
117// String is the stringer version which includes the token ID
118// in addition to the string literal

Callers

nothing calls this directly

Calls 1

IsGoMethod · 0.95

Tested by

no test coverage detected