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

Method IsBacktickString

shell/token.go:93–98  ·  view source on GitHub ↗

IsBacktickString returns true if the given STRING uses backticks

()

Source from the content-addressed store, hash-verified

91
92// IsBacktickString returns true if the given STRING uses backticks
93func (tk *Token) IsBacktickString() bool {
94 if tk.Tok != token.STRING {
95 return false
96 }
97 return (tk.Str[0] == '`')
98}
99
100// IsGo returns true if the given token is a Go Keyword or Comment
101func (tk *Token) IsGo() bool {

Callers 2

TranspileLineTokensMethod · 0.80
TranspileGoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected