Re-exports§
pub use parser::populate_gas_directives;
pub use parser::populate_instructions;
pub use parser::populate_name_to_directive_map;
pub use parser::populate_name_to_instruction_map;
pub use parser::populate_name_to_register_map;
pub use parser::populate_registers;
pub use types::*;
Modules§
Enums§
Functions§
- alt_
mac_ config_ dir - apply_
compile_ cmd - Attempts to run the given compile command and parses the resulting output. Any
relevant output will be translated into a
Diagnostic
object and pushed intodiagnostics
- find_
word_ at_ pos - Find the ([start], [end]) indices and the cursor’s offset in a word on the given line
- get_
comp_ resp - get_
compile_ cmd_ for_ req - Returns the compile command associated with
uri
if it exists, or the default one fromcompile_cmds
otherwise - get_
compile_ cmds_ from_ file - Attempts to find either the
compile_commands.json
orcompile_flags.txt
file in the project’s root or build directories, returning either file as aCompilationDatabase
object - get_
completes - Given a
NameTo_SomeItem_
map, returns aVec<CompletionItem>
for the items contained within the map - get_
default_ compile_ cmd - Returns a default
CompileCommand
for the provideduri
. - get_
document_ symbols - Get a tree of symbols describing the document’s structure.
- get_
global_ cfg_ dirs - get_
goto_ def_ resp - get_
hover_ resp - get_
include_ dirs - Fetches default include directories, as well as any additional directories
as specified by a
compile_commands.json
orcompile_flags.txt
file in the appropriate location - get_
ref_ resp - get_
root_ config - Searches for global config in ~/.config/asm-lsp, then the project’s directory Project specific configs will override global configs
- get_
sig_ help_ resp - Produces a signature help response if the appropriate instruction forms can be found
- get_
word_ from_ file_ params - Returns the word undernearth the cursor given the specified
TextDocumentPositionParams
- get_
word_ from_ pos_ params - Returns a string slice to the word in doc specified by the position params, and the cursor’s offset into the word
- instr_
filter_ targets - process_
uri - Sanitizes the URI path sent by an LSP client
- run_
info - Prints information about the server
- send_
empty_ resp - Sends an empty, non-error response to the lsp client via
connection
- send_
notification - Sends a notification with to the client
Param
message
is the owned typeString
to help reduce redundant allocations - text_
doc_ change_ to_ ts_ edit - Convert an
lsp_types::TextDocumentContentChangeEvent
to atree_sitter::InputEdit
- tree_
sitter_ logger - Function allowing us to connect tree sitter’s logging with the log crate