Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boltlang/Bolt
/ functions
Functions
321 in github.com/boltlang/Bolt
⨍
Functions
321
◇
Types & classes
102
↓ 41 callers
Method
write
(&mut self, text: &str)
crates/boltlang/src/emit.rs:28
↓ 19 callers
Method
get
(&mut self)
crates/boltlang/src/parser/lexer.rs:114
↓ 17 callers
Method
complete
Will create a node with children between [Parer::start] and the current position.
crates/boltlang/src/parser/parser.rs:33
↓ 17 callers
Method
start
Starts a new node in the syntax tree. All nodes and tokens consumed between the `start` and the corresponding `Marker::complete` belong to the same no
crates/boltlang/src/parser/parser.rs:135
↓ 16 callers
Method
fresh_type_var
(&mut self)
crates/boltlang/src/tc/infer/core.rs:126
↓ 15 callers
Method
at
(&self, kind: SyntaxKind)
crates/boltlang/src/parser/parser.rs:97
↓ 15 callers
Method
eat
Tries to consume a specific token. If the token isn't present, this function returns `false`.
crates/boltlang/src/parser/parser.rs:108
↓ 13 callers
Method
expect
Consume the next token if it is `kind` or emit an error otherwise.
crates/boltlang/src/parser/parser.rs:149
↓ 13 callers
Method
find_node
(&self)
crates/boltlang/src/ast.rs:37
↓ 11 callers
Method
as_ref
(&self)
crates/boltlang/src/vfs/path.rs:82
↓ 11 callers
Method
len
(&self)
crates/boltlang/src/parser/lexer.rs:268
↓ 11 callers
Method
revision
(&self)
crates/boltlang/src/vfs/metadata.rs:102
↓ 10 callers
Method
system
(&self)
crates/boltlang/src/db.rs:180
↓ 9 callers
Method
file_type
(&self)
crates/boltlang/src/vfs/metadata.rs:110
↓ 9 callers
Method
name
(&self)
crates/boltlang/src/ast.rs:129
↓ 8 callers
Method
bump_any
Advances the parser by one token
crates/boltlang/src/parser/parser.rs:124
↓ 8 callers
Method
current
(&self)
crates/boltlang/src/parser/parser.rs:84
↓ 8 callers
Method
peek
(&mut self, n: usize)
crates/boltlang/src/parser/lexer.rs:131
↓ 8 callers
Method
syntax
(&self)
crates/boltlang/src/ast.rs:91
↓ 7 callers
Method
add
(&mut self, name: S, kind: SymbolKind, scheme: Scheme)
crates/boltlang/src/tc/infer/core.rs:64
↓ 7 callers
Method
error
Emit an error.
crates/boltlang/src/parser/parser.rs:142
↓ 7 callers
Method
error_and_bump
Create an error node and consume the next token.
crates/boltlang/src/parser/parser.rs:174
↓ 7 callers
Method
find_token
(&self, kind: SyntaxKind)
crates/boltlang/src/ast.rs:30
↓ 7 callers
Method
infer_expr
(&mut self, expr: &Expr, env: TypeEnvId)
crates/boltlang/src/tc/infer/expr.rs:164
↓ 7 callers
Method
infer_type_expr
(&mut self, te: &TypeExpr, env: TypeEnvId)
crates/boltlang/src/tc/infer/type_expr.rs:59
↓ 7 callers
Method
params
(&self)
crates/boltlang/src/ast.rs:103
↓ 7 callers
Method
pattern
(&self)
crates/boltlang/src/ast.rs:179
↓ 7 callers
Method
type_expr
(&self)
crates/boltlang/src/ast.rs:423
↓ 6 callers
Method
kind
()
crates/boltlang/src/ast.rs:114
↓ 6 callers
Function
parse_expression
(p: &mut Parser)
crates/boltlang/src/parser/grammar.rs:120
↓ 6 callers
Method
span
(&self)
crates/boltlang/src/tc/solve.rs:24
↓ 5 callers
Method
as_str
(&self)
crates/boltlang/src/vfs/path.rs:139
↓ 5 callers
Method
canonicalize
(&self, path: impl AsRef<Path>)
crates/boltlang/src/vfs/memory.rs:69
↓ 5 callers
Method
elements
(&self)
crates/boltlang/src/ast.rs:301
↓ 5 callers
Method
id
(&self)
crates/boltlang/src/tc/infer/core.rs:86
↓ 5 callers
Method
read
(&mut self)
crates/boltlang/src/parser/lexer.rs:110
↓ 4 callers
Method
as_path
(&self)
crates/boltlang/src/vfs/path.rs:135
↓ 4 callers
Method
at_ts
Check whether the current token falls into the given [TokenSet].
crates/boltlang/src/parser/parser.rs:93
↓ 4 callers
Method
body
(&self)
crates/boltlang/src/ast.rs:313
↓ 4 callers
Function
check_semi
(p: &mut Parser)
crates/boltlang/src/parser/grammar.rs:265
↓ 4 callers
Method
default
(&self)
crates/boltlang/src/ast.rs:472
↓ 4 callers
Method
drop_env
(&mut self, mut env: ForkedEnv)
crates/boltlang/src/tc/infer/core.rs:204
↓ 4 callers
Method
eat_trivias
(&mut self)
crates/boltlang/src/parser/event.rs:169
↓ 4 callers
Method
fork_env
(&mut self, _env: TypeEnvId)
crates/boltlang/src/tc/infer/core.rs:198
↓ 4 callers
Function
is_dec_num
(ch: char)
crates/boltlang/src/parser/lexer.rs:68
↓ 4 callers
Method
is_file
(self)
crates/boltlang/src/vfs/metadata.rs:66
↓ 4 callers
Method
kind
(&self, idx: usize)
crates/boltlang/src/parser/parser.rs:62
↓ 4 callers
Method
nth
(&self, n: usize)
crates/boltlang/src/parser/parser.rs:88
↓ 4 callers
Function
parse_type_expression
(p: &mut Parser)
crates/boltlang/src/parser/grammar.rs:181
↓ 4 callers
Method
push_event
Helper function to add an event to the builder.
crates/boltlang/src/parser/parser.rs:188
↓ 4 callers
Method
skip_last
(self, n: usize)
crates/boltlang/src/util.rs:58
↓ 3 callers
Method
abandon
Abandon this node and apppend all children of this node directly to the parent node.
crates/boltlang/src/parser/parser.rs:21
↓ 3 callers
Method
as_std_path
(&self)
crates/boltlang/src/vfs/path.rs:24
↓ 3 callers
Method
check_pattern
(&mut self, pattern: &Pattern, ty: &Type, to_insert: TypeEnvId, env: TypeEnvId)
crates/boltlang/src/tc/infer/pattern.rs:7
↓ 3 callers
Method
contains
(&self, kind: SyntaxKind)
crates/boltlang/src/parser/token_set.rs:26
↓ 3 callers
Method
current_directory
(&self)
crates/boltlang/src/vfs/memory.rs:88
↓ 3 callers
Method
defuse
(&mut self)
crates/boltlang/src/util.rs:17
↓ 3 callers
Method
emit
(&self, f: &mut Formatter<'_>)
crates/boltlang/src/emit.rs:79
↓ 3 callers
Method
env_add
(&mut self, env: TypeEnvId, name: S, kind: SymbolKind, scm: Scheme)
crates/boltlang/src/tc/infer/core.rs:164
↓ 3 callers
Method
finish
Finishes the builder and returns the events that were generated during the build.
crates/boltlang/src/parser/parser.rs:193
↓ 3 callers
Method
infer_pattern
(&mut self, pattern: &Pattern, to_insert: TypeEnvId, env: TypeEnvId)
crates/boltlang/src/tc/infer/pattern.rs:56
↓ 3 callers
Function
is_a_dir
()
crates/boltlang/src/vfs/memory.rs:46
↓ 3 callers
Method
is_directory
(self)
crates/boltlang/src/vfs/metadata.rs:70
↓ 3 callers
Method
next
(&mut self)
crates/boltlang/src/ast.rs:70
↓ 3 callers
Function
parse_file
(db: &dyn Db, file: File)
crates/boltlang/src/parser/mod.rs:15
↓ 3 callers
Method
permissions
(&self)
crates/boltlang/src/vfs/metadata.rs:106
↓ 3 callers
Method
to_system_path_buf
(&self)
crates/boltlang/src/vfs/path.rs:69
↓ 3 callers
Method
token_kind
(&self, n: u32)
crates/boltlang/src/parser/lexer.rs:260
↓ 3 callers
Method
token_len
(&self, n: u32)
crates/boltlang/src/parser/lexer.rs:264
↓ 3 callers
Method
type_expression
(&self)
crates/boltlang/src/ast.rs:183
↓ 3 callers
Method
value
(&self)
crates/boltlang/src/ast.rs:333
↓ 2 callers
Method
args
(&self)
crates/boltlang/src/ast.rs:388
↓ 2 callers
Method
block
(&self)
crates/boltlang/src/ast.rs:280
↓ 2 callers
Method
check_expr
(&mut self, expr: &Expr, ty: &Type, env: TypeEnvId)
crates/boltlang/src/tc/infer/expr.rs:18
↓ 2 callers
Function
check_file
(db: &dyn Db, file: File)
crates/boltlang/src/lib.rs:59
↓ 2 callers
Method
code
(&self)
crates/boltlang/src/diagnostic.rs:77
↓ 2 callers
Method
do_bump
Perform the actual recording of a token.
crates/boltlang/src/parser/parser.rs:182
↓ 2 callers
Method
do_token
(&mut self, kind: SyntaxKind)
crates/boltlang/src/parser/event.rs:179
↓ 2 callers
Function
emit_interspersed
(f: &mut Formatter<'_>, list: I, sep: &str)
crates/boltlang/src/emit.rs:66
↓ 2 callers
Method
expr
(&self)
crates/boltlang/src/ast.rs:427
↓ 2 callers
Method
feed_event
(&mut self, event: Event)
crates/boltlang/src/parser/event.rs:85
↓ 2 callers
Function
file_not_found
()
crates/boltlang/src/system/memory.rs:10
↓ 2 callers
Function
file_not_found
()
crates/boltlang/src/system/os.rs:8
↓ 2 callers
Method
files
(&self)
crates/boltlang/src/db.rs:177
↓ 2 callers
Method
files
(&self)
crates/bolt-language-server/src/db.rs:25
↓ 2 callers
Method
get
(&self, name: &str, kind: SymbolKind)
crates/boltlang/src/tc/infer/core.rs:60
↓ 2 callers
Function
index_lines
(db: &dyn Db, file: File)
crates/boltlang/src/text.rs:111
↓ 2 callers
Method
infer_element
(&mut self, element: &SourceElement, is_toplevel: bool, env: TypeEnvId)
crates/boltlang/src/tc/infer/toplevel.rs:14
↓ 2 callers
Method
infer_literal
(&mut self, token: SyntaxToken)
crates/boltlang/src/tc/infer/core.rs:210
↓ 2 callers
Method
infer_var_decl_like
( &mut self, pattern: &Option<Pattern>, te: &Option<TypeExpr>, expr: &Option<E
crates/boltlang/src/tc/infer/decl.rs:22
↓ 2 callers
Function
is_ident_part
(ch: char)
crates/boltlang/src/parser/lexer.rs:56
↓ 2 callers
Function
is_operator
(ch: char)
crates/boltlang/src/parser/lexer.rs:76
↓ 2 callers
Method
is_trivia
(&self)
crates/boltlang/src/syntax.rs:94
↓ 2 callers
Function
is_whitespace
(ch: char)
crates/boltlang/src/parser/lexer.rs:48
↓ 2 callers
Method
line_column_of_offset
Return the 0-based line and column that belongs to a given offset. FIXME should either be 1-based or lexer should be 0-based
crates/boltlang/src/text.rs:88
↓ 2 callers
Method
lookup
(&mut self, name: &str, span: Span, kind: SymbolKind, env: TypeEnvId)
crates/boltlang/src/tc/infer/core.rs:168
↓ 2 callers
Method
message
(&self)
crates/boltlang/src/diagnostic.rs:81
↓ 2 callers
Method
metadata
(&self, path: &Path)
crates/boltlang/src/vfs/memory.rs:92
↓ 2 callers
Method
new
()
crates/boltlang/src/files.rs:26
↓ 2 callers
Method
normalize_type
(&mut self, ty: Type)
crates/boltlang/src/tc/unify.rs:67
next →
1–100 of 321, ranked by callers