Struct ink_analyzer::Analysis
source · pub struct Analysis { /* private fields */ }Expand description
Entry point for asking for semantic information about ink! smart contract code.
Implementations§
source§impl Analysis
impl Analysis
sourcepub fn file(&self) -> &InkFile
pub fn file(&self) -> &InkFile
Returns the intermediate representation (IR) of the smart contract code.
sourcepub fn diagnostics(&self) -> Vec<Diagnostic>
pub fn diagnostics(&self) -> Vec<Diagnostic>
Runs diagnostics for the smart contract code.
sourcepub fn completions(&self, position: TextSize) -> Vec<Completion>
pub fn completions(&self, position: TextSize) -> Vec<Completion>
Computes ink! attribute completions at the given position.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Analysis
impl !Send for Analysis
impl !Sync for Analysis
impl Unpin for Analysis
impl !UnwindSafe for Analysis
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more