Add pub access to Define members #44

This commit is contained in:
dalance 2021-11-12 11:38:41 +09:00
parent d3d810fb8e
commit dc82f83903
2 changed files with 7 additions and 5 deletions

View File

@ -2,6 +2,8 @@
## [Unreleased](https://github.com/dalance/sv-parser/compare/v0.11.1...Unreleased) - ReleaseDate ## [Unreleased](https://github.com/dalance/sv-parser/compare/v0.11.1...Unreleased) - ReleaseDate
* [Changed] pub access to Define members
## [v0.11.1](https://github.com/dalance/sv-parser/compare/v0.11.0...v0.11.1) - 2021-03-05 ## [v0.11.1](https://github.com/dalance/sv-parser/compare/v0.11.0...v0.11.1) - 2021-03-05
* [Fixed] include with comment error * [Fixed] include with comment error

View File

@ -83,15 +83,15 @@ impl PreprocessedText {
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
pub struct Define { pub struct Define {
identifier: String, pub identifier: String,
arguments: Vec<(String, Option<String>)>, pub arguments: Vec<(String, Option<String>)>,
text: Option<DefineText>, pub text: Option<DefineText>,
} }
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
pub struct DefineText { pub struct DefineText {
text: String, pub text: String,
origin: Option<(PathBuf, Range)>, pub origin: Option<(PathBuf, Range)>,
} }
impl Define { impl Define {