MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / is_function_def_keyword

Method is_function_def_keyword

aiscript-lexer/src/lib.rs:144–146  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

142 }
143
144 pub fn is_function_def_keyword(&self) -> bool {
145 matches!(self.kind, TokenType::Fn | TokenType::AI | TokenType::Pub)
146 }
147
148 pub fn is_error_type(&self) -> bool {
149 self.kind == TokenType::Error

Callers 1

enum_declarationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected