Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kampfkarren/full-moon
/ functions
Functions
556 in github.com/Kampfkarren/full-moon
⨍
Functions
556
◇
Types & classes
129
↓ 168 callers
Method
unwrap
(self)
full-moon/src/ast/parser_structs.rs:248
↓ 132 callers
Method
push
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 callers
Method
consume
(&mut self)
full-moon/src/ast/parser_structs.rs:47
↓ 88 callers
Method
token_error
( &mut self, token_reference: TokenReference, error: S, )
full-moon/src/ast/parser_structs.rs:185
↓ 77 callers
Method
current
(&self)
full-moon/src/ast/parser_structs.rs:31
↓ 71 callers
Method
is_symbol
Checks if the token is the given symbol
full-moon/src/tokenizer/structs.rs:765
↓ 46 callers
Method
iter
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 callers
Method
create
( &self, start_position: Position, token_type: TokenType, )
full-moon/src/tokenizer/lexer.rs:102
↓ 41 callers
Method
map
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 callers
Method
unwrap
Unwraps the result, panicking if it is not [`LexerResult::Ok`].
full-moon/src/tokenizer/lexer.rs:1524
↓ 34 callers
Method
next
(&mut self)
full-moon/src/tokenizer/lexer.rs:1449
↓ 34 callers
Method
require
(&mut self, symbol: Symbol, error: &'static str)
full-moon/src/ast/parser_structs.rs:101
↓ 29 callers
Method
collect
Returns a vector of all tokens left in the source string.
full-moon/src/tokenizer/lexer.rs:74
↓ 26 callers
Method
token_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 callers
Method
has_luau
Returns true if Luau is enabled.
full-moon/src/ast/versions.rs:46
↓ 24 callers
Method
consume_if
(&mut self, symbol: Symbol)
full-moon/src/ast/parser_structs.rs:73
↓ 20 callers
Method
into_iter
(self)
full-moon/src/ast/punctuated.rs:256
↓ 20 callers
Function
parse_expression
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:2067
↓ 19 callers
Method
consume
Consumes the current token and returns the next token.
full-moon/src/tokenizer/lexer.rs:66
↓ 19 callers
Method
token_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 callers
Method
tokens
Returns the start and end bounds in a tuple as references
full-moon/src/ast/span.rs:36
↓ 18 callers
Method
lua_version
(&self)
full-moon/src/ast/parser_structs.rs:27
↓ 17 callers
Function
parse
(code: &str)
full-moon/src/lib.rs:92
↓ 16 callers
Method
current
Returns the current token.
full-moon/src/tokenizer/lexer.rs:56
↓ 15 callers
Method
next
(&mut self)
full-moon/src/ast/luau.rs:1401
↓ 13 callers
Method
len
Returns the length of the ShortString.
full-moon/src/short_string.rs:26
↓ 13 callers
Method
nodes
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 callers
Method
is_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 callers
Function
parse_type
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:2766
↓ 11 callers
Function
run_test_folder
(folder: P, test_fn: impl Fn(&Path))
full-moon/tests/common/mod.rs:12
↓ 10 callers
Method
last
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 callers
Method
len
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 callers
Method
next_back
(&mut self)
full-moon/src/node.rs:96
↓ 9 callers
Method
eat_invalid_number
( &mut self, start_position: Position, mut number: String, )
full-moon/src/tokenizer/lexer.rs:1015
↓ 9 callers
Function
generate
()
full-moon/tests/comments_around_functions.rs:45
↓ 9 callers
Method
into_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 callers
Method
position
(&self)
full-moon/src/tokenizer/lexer.rs:1478
↓ 9 callers
Method
token_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 callers
Method
token
The `return` token
full-moon/src/ast/mod.rs:154
↓ 7 callers
Method
into_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 callers
Function
parse_block
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:38
↓ 7 callers
Function
test_pass_case
(path: &Path, lua_version: LuaVersion)
full-moon/tests/pass_cases.rs:32
↓ 6 callers
Method
as_str
Returns a `&str` representation of the ShortString.
full-moon/src/short_string.rs:21
↓ 6 callers
Method
has_luajit
Returns true if LuaJIT is enabled.
full-moon/src/ast/versions.rs:122
↓ 6 callers
Function
parse_function_body
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:2400
↓ 6 callers
Method
pop
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 callers
Function
run_parser_fail_cases
(folder: &str, lua_version: LuaVersion)
full-moon/tests/fail_cases.rs:62
↓ 5 callers
Function
expect_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 callers
Method
has_cfxlua
Returns true if CFX Lua is enabled.
full-moon/src/ast/versions.rs:141
↓ 5 callers
Method
has_lua52
Returns true if Lua 5.2 is enabled.
full-moon/src/ast/versions.rs:65
↓ 5 callers
Method
into_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 callers
Function
parse_expression_list
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:3977
↓ 5 callers
Function
parse_name
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:3733
↓ 5 callers
Method
push_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 callers
Function
search_hint
(name: &str, attrs: &[syn::Attribute])
full-moon-derive/src/derive.rs:102
↓ 5 callers
Method
type_specifiers
(&self)
full-moon/src/ast/mod.rs:902
↓ 5 callers
Method
value
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 callers
Function
force_name
(_state: &mut ParserState, name: TokenReference)
full-moon/src/ast/parsers.rs:3778
↓ 4 callers
Function
force_name_with_type_specifiers
(state: &mut ParserState, name: TokenReference)
full-moon/src/ast/parsers.rs:3866
↓ 4 callers
Method
is_empty
Returns whether or not the ShortString is empty.
full-moon/src/short_string.rs:31
↓ 4 callers
Function
one_or_more
( state: &mut ParserState, parser: F, delimiter: Symbol, )
full-moon/src/ast/parsers.rs:3930
↓ 4 callers
Function
parse_type_pack
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:2814
↓ 4 callers
Function
parse_type_suffix
( state: &mut ParserState, simple_type: Option<ast::TypeInfo>, )
full-moon/src/ast/parsers.rs:2998
↓ 4 callers
Method
peek
Returns the next token.
full-moon/src/tokenizer/lexer.rs:61
↓ 4 callers
Function
process_fail_case
(path: &Path, source: &str, lua_version: LuaVersion)
full-moon/tests/fail_cases.rs:15
↓ 4 callers
Method
process_next
Processes and returns the next token in the source string, ignoring trivia.
full-moon/src/tokenizer/lexer.rs:257
↓ 4 callers
Method
process_next_with_trivia
(&mut self)
full-moon/src/tokenizer/lexer.rs:130
↓ 4 callers
Method
range
Returns the range of the error
full-moon/src/lib.rs:56
↓ 4 callers
Method
stmts
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 callers
Method
update_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 callers
Method
cmp
(&self, other: &Self)
full-moon/src/tokenizer/structs.rs:527
↓ 3 callers
Method
create_recovered
( &self, start_position: Position, token_type: TokenType, errors: Vec<Tokenize
full-moon/src/tokenizer/lexer.rs:114
↓ 3 callers
Function
expect_generic_type_params
( state: &mut ParserState, left_arrow: TokenReference, )
full-moon/src/ast/parsers.rs:3648
↓ 3 callers
Method
first
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 callers
Method
has_lua53
Returns true if Lua 5.3 is enabled.
full-moon/src/ast/versions.rs:84
↓ 3 callers
Method
is_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 callers
Method
leading_trivia
Returns the leading trivia
full-moon/src/tokenizer/structs.rs:746
↓ 3 callers
Method
pairs
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 callers
Function
parse_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 callers
Function
parse_generic_type_list
( state: &mut ParserState, style: TypeListStyle, )
full-moon/src/ast/parsers.rs:3488
↓ 3 callers
Function
parse_primary_expression
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:2077
↓ 3 callers
Function
parse_return_type
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:3471
↓ 3 callers
Function
parse_simple_type
( state: &mut ParserState, style: SimpleTypeStyle, )
full-moon/src/ast/parsers.rs:2857
↓ 3 callers
Function
parse_type_or_pack
(state: &mut ParserState)
full-moon/src/ast/parsers.rs:2787
↓ 3 callers
Method
read_luajit_number_suffix
( &mut self, start_position: Position, mut number: String, )
full-moon/src/tokenizer/lexer.rs:1166
↓ 3 callers
Method
read_number
( &mut self, start_position: Position, mut number: String, )
full-moon/src/tokenizer/lexer.rs:979
↓ 3 callers
Method
require_with_reference_range
( &mut self, symbol: Symbol, error: impl MaybeLazyString, start_token: &TokenR
full-moon/src/ast/parser_structs.rs:136
↓ 3 callers
Function
token_getter
( ty: &syn::Type, ident: &syn::Ident, mut prefix: Option<TokenStream>, deref: bool, )
full-moon-derive/src/node.rs:6
↓ 3 callers
Method
tokens
(&self)
full-moon/src/node.rs:125
↓ 3 callers
Method
trailing_trivia
Returns the trailing trivia
full-moon/src/tokenizer/structs.rs:751
↓ 3 callers
Method
update_token
(&mut self, token: &Token)
full-moon/src/ast/update_positions.rs:14
↓ 3 callers
Method
value
The type for the field, `number` in `foo: number`.
full-moon/src/ast/luau.rs:320
↓ 3 callers
Method
visit_token
(&mut self, token: Token)
full-moon/src/ast/mod.rs:2532
↓ 3 callers
Method
with_attributes
(self, attributes: Vec<LuauAttribute>)
full-moon/src/ast/mod.rs:326
↓ 3 callers
Method
with_block
Returns a new NumericFor with the given block
full-moon/src/ast/mod.rs:764
↓ 2 callers
Method
attributes
(&self)
full-moon/src/ast/mod.rs:310
↓ 2 callers
Method
bytes
How many bytes, ignoring lines, it would take to find this position
full-moon/src/tokenizer/structs.rs:862
↓ 2 callers
Method
consume_if_symbols
(&mut self, symbols: &[Symbol])
full-moon/src/ast/parser_structs.rs:87
↓ 2 callers
Method
end_position
(&self)
full-moon/src/ast/span.rs:46
↓ 2 callers
Method
errors
Returns the errors, if there was any.
full-moon/src/tokenizer/lexer.rs:1540
next →
1–100 of 556, ranked by callers