pub struct Analysis<T>where
    T: LanguageType,
{ pub file_types: &'static [&'static str], pub project_files: RefCell<Vec<ProjectFile<T>>>, }

Fields§

§file_types: &'static [&'static str]§project_files: RefCell<Vec<ProjectFile<T>>>

Implementations§

Creates a new Analysis instance.

Example
use thinlinelib::analysis::Analysis;
use thinlinelib::language_type::{C, LanguageType};

let analysis: Analysis<C> = Analysis::new();

assert_eq!(analysis.file_types, C::file_types());
assert_eq!(analysis.project_files().len(), 0);

Returns a reference to the collected project files for analysis.

Returns a mutable reference to the collected project files for analysis.

Example
use thinlinelib::analysis::{Analysis, ProjectFile};
use thinlinelib::language_type::C;

let analysis: Analysis<C> = Analysis::new();
let mut project_files = analysis.project_files_mut();
assert_eq!(project_files.len(), 0);

project_files.push(ProjectFile::new("test/anotherFile"));
assert_eq!(project_files.len(), 1);

Collects all the sources within the given project dir.

Extracts function signatures and comments of thinlines parsed files.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.