Derive Eq, PartialEq for Define, DefineText
This commit is contained in:
parent
d3d810fb8e
commit
5f20d2acee
@ -81,14 +81,14 @@ impl PreprocessedText {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||||
pub struct Define {
|
pub struct Define {
|
||||||
identifier: String,
|
identifier: String,
|
||||||
arguments: Vec<(String, Option<String>)>,
|
arguments: Vec<(String, Option<String>)>,
|
||||||
text: Option<DefineText>,
|
text: Option<DefineText>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||||
pub struct DefineText {
|
pub struct DefineText {
|
||||||
text: String,
|
text: String,
|
||||||
origin: Option<(PathBuf, Range)>,
|
origin: Option<(PathBuf, Range)>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user