MCPcopy Create free account

hub / github.com/Kampfkarren/full-moon / functions

Functions556 in github.com/Kampfkarren/full-moon

↓ 168 callersMethodunwrap
(self)
full-moon/src/ast/parser_structs.rs:248
↓ 132 callersMethodpush
Pushes a new pair onto the sequence ```rust # use full_moon::ast::punctuated::{Pair, Punctuated}; let mut punctuated = Punctuated::new(); punctuated.p
full-moon/src/ast/punctuated.rs:182
↓ 108 callersMethodconsume
(&mut self)
full-moon/src/ast/parser_structs.rs:47
↓ 88 callersMethodtoken_error
( &mut self, token_reference: TokenReference, error: S, )
full-moon/src/ast/parser_structs.rs:185
↓ 77 callersMethodcurrent
(&self)
full-moon/src/ast/parser_structs.rs:31
↓ 71 callersMethodis_symbol
Checks if the token is the given symbol
full-moon/src/tokenizer/structs.rs:765
↓ 46 callersMethoditer
Returns an iterator over references of the sequence values, ignoring punctuation ```rust # use full_moon::ast::punctuated::{Pair, Punctuated}; let mut
full-moon/src/ast/punctuated.rs:83
↓ 42 callersMethodcreate
( &self, start_position: Position, token_type: TokenType, )
full-moon/src/tokenizer/lexer.rs:102
↓ 41 callersMethodmap
Maps a `Pair<T>` to a `Pair<U>` by applying a function to the value of the pair, while preserving punctuation if it is not the end. ```rust # use full
full-moon/src/ast/punctuated.rs:435
↓ 37 callersMethodunwrap
Unwraps the result, panicking if it is not [`LexerResult::Ok`].
full-moon/src/tokenizer/lexer.rs:1524
↓ 34 callersMethodnext
(&mut self)
full-moon/src/tokenizer/lexer.rs:1449
↓ 34 callersMethodrequire
(&mut self, symbol: Symbol, error: &'static str)
full-moon/src/ast/parser_structs.rs:101
↓ 29 callersMethodcollect
Returns a vector of all tokens left in the source string.
full-moon/src/tokenizer/lexer.rs:74
↓ 26 callersMethodtoken_type
The type of token as well as the data needed to represent it If you don't need any other information, use [`token_kind`](Token::token_kind) instead.
full-moon/src/tokenizer/structs.rs:458
↓ 25 callersMethodhas_luau
Returns true if Luau is enabled.
full-moon/src/ast/versions.rs:46
↓ 24 callersMethodconsume_if
(&mut self, symbol: Symbol)
full-moon/src/ast/parser_structs.rs:73
↓ 20 callersMethodinto_iter
(self)
full-moon/src/ast/punctuated.rs:256
↓ 20 callersFunctionparse_expression
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:2067
↓ 19 callersMethodconsume
Consumes the current token and returns the next token.
full-moon/src/tokenizer/lexer.rs:66
↓ 19 callersMethodtoken_kind
The kind of token with no additional data. If you need any information such as idenitfier names, use [`token_type`](Token::token_type) instead.
full-moon/src/tokenizer/structs.rs:464
↓ 19 callersMethodtokens
Returns the start and end bounds in a tuple as references
full-moon/src/ast/span.rs:36
↓ 18 callersMethodlua_version
(&self)
full-moon/src/ast/parser_structs.rs:27
↓ 17 callersFunctionparse
(code: &str)
full-moon/src/lib.rs:92
↓ 16 callersMethodcurrent
Returns the current token.
full-moon/src/tokenizer/lexer.rs:56
↓ 15 callersMethodnext
(&mut self)
full-moon/src/ast/luau.rs:1401
↓ 13 callersMethodlen
Returns the length of the ShortString.
full-moon/src/short_string.rs:26
↓ 13 callersMethodnodes
The entire code of the function ```rust # fn main() -> Result<(), Vec<full_moon::Error>> { assert_eq!(full_moon::parse("local x = 1; local y = 2")?.n
full-moon/src/ast/mod.rs:2475
↓ 12 callersMethodis_empty
Returns whether there's any nodes in the punctuated sequence ```rust # use full_moon::ast::punctuated::{Pair, Punctuated}; let mut punctuated = Punctu
full-moon/src/ast/punctuated.rs:58
↓ 12 callersFunctionparse_type
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:2766
↓ 11 callersFunctionrun_test_folder
(folder: P, test_fn: impl Fn(&Path))
full-moon/tests/common/mod.rs:12
↓ 10 callersMethodlast
Returns the last pair in the sequence ```rust # use full_moon::ast::punctuated::{Pair, Punctuated}; let mut punctuated = Punctuated::new(); punctuated
full-moon/src/ast/punctuated.rs:133
↓ 10 callersMethodlen
Returns the number of pairs in the punctuated sequence ```rust # use full_moon::ast::punctuated::{Pair, Punctuated}; let mut punctuated = Punctuated::
full-moon/src/ast/punctuated.rs:70
↓ 10 callersMethodnext_back
(&mut self)
full-moon/src/node.rs:96
↓ 9 callersMethodeat_invalid_number
( &mut self, start_position: Position, mut number: String, )
full-moon/src/tokenizer/lexer.rs:1015
↓ 9 callersFunctiongenerate
()
full-moon/tests/comments_around_functions.rs:45
↓ 9 callersMethodinto_pairs
Returns an iterator over pairs ```rust # use full_moon::ast::punctuated::{Pair, Punctuated}; let mut punctuated = Punctuated::new(); punctuated.push(P
full-moon/src/ast/punctuated.rs:110
↓ 9 callersMethodposition
(&self)
full-moon/src/tokenizer/lexer.rs:1478
↓ 9 callersMethodtoken_error_ranged
This takes start_token and end_token as owned references because otherwise, we tend to stack an immutable over mutable borrow.
full-moon/src/ast/parser_structs.rs:199
↓ 8 callersMethodtoken
The `return` token
full-moon/src/ast/mod.rs:154
↓ 7 callersMethodinto_tuple
Takes the `Pair` and returns the node `T` and the punctuation, if it exists as a tuple ```rust # use full_moon::ast::punctuated::Pair; let pair = Pair
full-moon/src/ast/punctuated.rs:371
↓ 7 callersFunctionparse_block
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:38
↓ 7 callersFunctiontest_pass_case
(path: &Path, lua_version: LuaVersion)
full-moon/tests/pass_cases.rs:32
↓ 6 callersMethodas_str
Returns a `&str` representation of the ShortString.
full-moon/src/short_string.rs:21
↓ 6 callersMethodhas_luajit
Returns true if LuaJIT is enabled.
full-moon/src/ast/versions.rs:122
↓ 6 callersFunctionparse_function_body
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:2400
↓ 6 callersMethodpop
Pops off the last pair if it isn't empty ```rust # use full_moon::ast::punctuated::{Pair, Punctuated}; let mut punctuated = Punctuated::new(); punctua
full-moon/src/ast/punctuated.rs:171
↓ 6 callersFunctionrun_parser_fail_cases
(folder: &str, lua_version: LuaVersion)
full-moon/tests/fail_cases.rs:62
↓ 5 callersFunctionexpect_block_with_end
Blocks in general are not very fallible. This means, for instance, not finishing `function()` will result in a completely ignored function body. This
full-moon/src/ast/parsers.rs:76
↓ 5 callersMethodhas_cfxlua
Returns true if CFX Lua is enabled.
full-moon/src/ast/versions.rs:141
↓ 5 callersMethodhas_lua52
Returns true if Lua 5.2 is enabled.
full-moon/src/ast/versions.rs:65
↓ 5 callersMethodinto_value
Takes the `Pair` and returns the node `T` ```rust # use full_moon::ast::punctuated::Pair; let pair = Pair::new(1, None); assert_eq!(pair.into_value(),
full-moon/src/ast/punctuated.rs:384
↓ 5 callersFunctionparse_expression_list
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:3977
↓ 5 callersFunctionparse_name
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:3733
↓ 5 callersMethodpush_punctuated
Pushes a new node `T` onto the sequence, with the given punctuation. Will apply the punctuation to the last item, which must exist.
full-moon/src/ast/punctuated.rs:188
↓ 5 callersFunctionsearch_hint
(name: &str, attrs: &[syn::Attribute])
full-moon-derive/src/derive.rs:102
↓ 5 callersMethodtype_specifiers
(&self)
full-moon/src/ast/mod.rs:902
↓ 5 callersMethodvalue
Returns a reference to the node `T` ```rust # use full_moon::ast::punctuated::Pair; let pair = Pair::new(1, None); assert_eq!(pair.value(), &1); ```
full-moon/src/ast/punctuated.rs:394
↓ 4 callersFunctionforce_name
(_state: &mut ParserState, name: TokenReference)
full-moon/src/ast/parsers.rs:3778
↓ 4 callersFunctionforce_name_with_type_specifiers
(state: &mut ParserState, name: TokenReference)
full-moon/src/ast/parsers.rs:3866
↓ 4 callersMethodis_empty
Returns whether or not the ShortString is empty.
full-moon/src/short_string.rs:31
↓ 4 callersFunctionone_or_more
( state: &mut ParserState, parser: F, delimiter: Symbol, )
full-moon/src/ast/parsers.rs:3930
↓ 4 callersFunctionparse_type_pack
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:2814
↓ 4 callersFunctionparse_type_suffix
( state: &mut ParserState, simple_type: Option<ast::TypeInfo>, )
full-moon/src/ast/parsers.rs:2998
↓ 4 callersMethodpeek
Returns the next token.
full-moon/src/tokenizer/lexer.rs:61
↓ 4 callersFunctionprocess_fail_case
(path: &Path, source: &str, lua_version: LuaVersion)
full-moon/tests/fail_cases.rs:15
↓ 4 callersMethodprocess_next
Processes and returns the next token in the source string, ignoring trivia.
full-moon/src/tokenizer/lexer.rs:257
↓ 4 callersMethodprocess_next_with_trivia
(&mut self)
full-moon/src/tokenizer/lexer.rs:130
↓ 4 callersMethodrange
Returns the range of the error
full-moon/src/lib.rs:56
↓ 4 callersMethodstmts
An iterator over the statements in the block, such as `local foo = 1`. Note that this does not contain the final statement which can be attained via
full-moon/src/ast/mod.rs:78
↓ 4 callersMethodupdate_positions
Will update the positions of all the tokens in the tree Necessary if you are both mutating the tree and need the positions of the tokens
full-moon/src/ast/update_positions.rs:74
↓ 3 callersMethodcmp
(&self, other: &Self)
full-moon/src/tokenizer/structs.rs:527
↓ 3 callersMethodcreate_recovered
( &self, start_position: Position, token_type: TokenType, errors: Vec<Tokenize
full-moon/src/tokenizer/lexer.rs:114
↓ 3 callersFunctionexpect_generic_type_params
( state: &mut ParserState, left_arrow: TokenReference, )
full-moon/src/ast/parsers.rs:3648
↓ 3 callersMethodfirst
Returns the first pair in the sequence ```rust # use full_moon::ast::punctuated::{Pair, Punctuated}; let mut punctuated = Punctuated::new(); assert_eq
full-moon/src/ast/punctuated.rs:122
↓ 3 callersMethodhas_lua53
Returns true if Lua 5.3 is enabled.
full-moon/src/ast/versions.rs:84
↓ 3 callersMethodis_trivia
Returns whether a token can be practically ignored in most cases Comments and whitespace will return `true`, everything else will return `false`
full-moon/src/tokenizer/structs.rs:327
↓ 3 callersMethodleading_trivia
Returns the leading trivia
full-moon/src/tokenizer/structs.rs:746
↓ 3 callersMethodpairs
Returns an iterator over pairs as references ```rust # use full_moon::ast::punctuated::{Pair, Punctuated}; let mut punctuated = Punctuated::new(); pun
full-moon/src/ast/punctuated.rs:146
↓ 3 callersFunctionparse_fallible
Given code and a pinned Lua version, will produce an [`ast::AstResult`]. This AstResult always produces some [`Ast`](ast::Ast), regardless of errors.
full-moon/src/lib.rs:109
↓ 3 callersFunctionparse_generic_type_list
( state: &mut ParserState, style: TypeListStyle, )
full-moon/src/ast/parsers.rs:3488
↓ 3 callersFunctionparse_primary_expression
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:2077
↓ 3 callersFunctionparse_return_type
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:3471
↓ 3 callersFunctionparse_simple_type
( state: &mut ParserState, style: SimpleTypeStyle, )
full-moon/src/ast/parsers.rs:2857
↓ 3 callersFunctionparse_type_or_pack
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:2787
↓ 3 callersMethodread_luajit_number_suffix
( &mut self, start_position: Position, mut number: String, )
full-moon/src/tokenizer/lexer.rs:1166
↓ 3 callersMethodread_number
( &mut self, start_position: Position, mut number: String, )
full-moon/src/tokenizer/lexer.rs:979
↓ 3 callersMethodrequire_with_reference_range
( &mut self, symbol: Symbol, error: impl MaybeLazyString, start_token: &TokenR
full-moon/src/ast/parser_structs.rs:136
↓ 3 callersFunctiontoken_getter
( ty: &syn::Type, ident: &syn::Ident, mut prefix: Option<TokenStream>, deref: bool, )
full-moon-derive/src/node.rs:6
↓ 3 callersMethodtokens
(&self)
full-moon/src/node.rs:125
↓ 3 callersMethodtrailing_trivia
Returns the trailing trivia
full-moon/src/tokenizer/structs.rs:751
↓ 3 callersMethodupdate_token
(&mut self, token: &Token)
full-moon/src/ast/update_positions.rs:14
↓ 3 callersMethodvalue
The type for the field, `number` in `foo: number`.
full-moon/src/ast/luau.rs:320
↓ 3 callersMethodvisit_token
(&mut self, token: Token)
full-moon/src/ast/mod.rs:2532
↓ 3 callersMethodwith_attributes
(self, attributes: Vec<LuauAttribute>)
full-moon/src/ast/mod.rs:326
↓ 3 callersMethodwith_block
Returns a new NumericFor with the given block
full-moon/src/ast/mod.rs:764
↓ 2 callersMethodattributes
(&self)
full-moon/src/ast/mod.rs:310
↓ 2 callersMethodbytes
How many bytes, ignoring lines, it would take to find this position
full-moon/src/tokenizer/structs.rs:862
↓ 2 callersMethodconsume_if_symbols
(&mut self, symbols: &[Symbol])
full-moon/src/ast/parser_structs.rs:87
↓ 2 callersMethodend_position
(&self)
full-moon/src/ast/span.rs:46
↓ 2 callersMethoderrors
Returns the errors, if there was any.
full-moon/src/tokenizer/lexer.rs:1540
next →1–100 of 556, ranked by callers