Struct ink_analyzer_ir::InkFile
source · pub struct InkFile { /* private fields */ }Expand description
An ink! source file.
Implementations§
source§impl InkFile
impl InkFile
sourcepub fn trait_definitions(&self) -> &[TraitDefinition]
pub fn trait_definitions(&self) -> &[TraitDefinition]
Returns ink! trait definitions in source file.
sourcepub fn chain_extensions(&self) -> &[ChainExtension]
pub fn chain_extensions(&self) -> &[ChainExtension]
Returns ink! chain extensions in source file.
sourcepub fn storage_items(&self) -> &[StorageItem]
pub fn storage_items(&self) -> &[StorageItem]
Returns ink! storage items in source file.
sourcepub fn e2e_tests(&self) -> &[InkE2ETest]
pub fn e2e_tests(&self) -> &[InkE2ETest]
Returns ink! e2e tests in source file.
Trait Implementations§
source§impl From<SourceFile> for InkFile
impl From<SourceFile> for InkFile
source§fn from(file: SourceFile) -> Self
fn from(file: SourceFile) -> Self
Converts to this type from the input type.
source§impl FromAST for InkFile
impl FromAST for InkFile
§type AST = SourceFile
type AST = SourceFile
Associated AST node type.
source§fn ast(&self) -> &SourceFile
fn ast(&self) -> &SourceFile
Returns the AST node for the ink! entity.
source§impl PartialEq for InkFile
impl PartialEq for InkFile
impl Eq for InkFile
impl StructuralEq for InkFile
impl StructuralPartialEq for InkFile
Auto Trait Implementations§
impl !RefUnwindSafe for InkFile
impl !Send for InkFile
impl !Sync for InkFile
impl Unpin for InkFile
impl !UnwindSafe for InkFile
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> FromSyntax for Twhere
T: FromAST,
impl<T> FromSyntax for Twhere
T: FromAST,
source§fn syntax(&self) -> &SyntaxNode<RustLanguage>
fn syntax(&self) -> &SyntaxNode<RustLanguage>
Returns the syntax node for the ink! entity.
source§impl<T> IsInkEntity for Twhere
T: FromSyntax,
impl<T> IsInkEntity for Twhere
T: FromSyntax,
source§fn item_at_offset(&self, offset: TextSize) -> ItemAtOffset
fn item_at_offset(&self, offset: TextSize) -> ItemAtOffset
Returns a representation of a token in the subtree which covers the position.