[−][src]Struct vhdl_parser::Project
Methods
impl Project
[src]
pub fn new() -> Project
[src]
pub fn from_config(
config: &Config,
messages: &mut dyn MessageHandler
) -> Project
[src]
config: &Config,
messages: &mut dyn MessageHandler
) -> Project
pub fn get_source(&self, file_name: &Path) -> Option<Source>
[src]
pub fn update_source(&mut self, source: &Source)
[src]
pub fn analyse(&mut self) -> Vec<Diagnostic>
[src]
pub fn search_reference(
&self,
source: &Source,
cursor: Position
) -> Option<SrcPos>
[src]
&self,
source: &Source,
cursor: Position
) -> Option<SrcPos>
Search for reference at position
Character offset on a line in a document (zero-based). Assuming that the line is
represented as a string, the character
value represents the gap between the
character
and character + 1
.
If the character value is greater than the line length it defaults back to the line length.
pub fn find_all_references(&self, decl_pos: &SrcPos) -> Vec<SrcPos>
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl !UnwindSafe for Project
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,