-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use crate::parser::ParseOutput; | ||
|
||
pub struct File { | ||
id: String, | ||
|
||
parse_output: ParseOutput, | ||
} | ||
|
||
impl File { | ||
pub fn new(id: String, parse_output: ParseOutput) -> Self { | ||
Self { id, parse_output } | ||
} | ||
|
||
pub fn id(&self) -> &String { | ||
&self.id | ||
} | ||
|
||
pub fn parse_output(&self) -> &ParseOutput { | ||
&self.parse_output | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
mod internal; | ||
mod core; | ||
mod file; | ||
|
||
/// Only intended to be used internally by the TypeScript comilation API. | ||
pub use internal::Compilation; | ||
pub use core::{CompilationCore, CompilationInitializationError}; | ||
|
||
pub use file::File; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.