pub struct GoParser;Implementations§
Trait Implementations§
Source§impl LanguageParser for GoParser
impl LanguageParser for GoParser
fn language_id(&self) -> &'static str
fn language(&self) -> Language
fn extensions(&self) -> &'static [&'static str]
fn parse(&self, source: &str) -> ParseResult
fn extract_unchecked(&self, result: &ParseResult) -> ExtractionResult
fn parser_mode(&self) -> &'static str
fn validate_result(&self, result: &ParseResult) -> Result<(), ExtractionError>
Source§fn extract(
&self,
result: &ParseResult,
) -> Result<ExtractionResult, ExtractionError>
fn extract( &self, result: &ParseResult, ) -> Result<ExtractionResult, ExtractionError>
Extract facts only from a complete parse result.
Source§fn extract_best_effort(
&self,
result: &ParseResult,
) -> Result<ExtractionResult, ExtractionError>
fn extract_best_effort( &self, result: &ParseResult, ) -> Result<ExtractionResult, ExtractionError>
Explicitly opt into facts recovered from an incomplete parse.
fn symbols( &self, result: &ParseResult, ) -> Result<Vec<ParsedSymbol>, ExtractionError>
fn imports( &self, result: &ParseResult, ) -> Result<Vec<ParsedImport>, ExtractionError>
fn calls( &self, result: &ParseResult, ) -> Result<Vec<ParsedCall>, ExtractionError>
fn variables( &self, result: &ParseResult, ) -> Result<Vec<ParsedVariable>, ExtractionError>
Auto Trait Implementations§
impl Freeze for GoParser
impl RefUnwindSafe for GoParser
impl Send for GoParser
impl Sync for GoParser
impl Unpin for GoParser
impl UnsafeUnpin for GoParser
impl UnwindSafe for GoParser
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