1
Fork 0

Feature gate

This commit is contained in:
Michael Goulet 2023-03-04 02:23:36 +00:00
parent f50c1e1f05
commit fb9ca9223d
6 changed files with 73 additions and 6 deletions

View file

@ -174,6 +174,10 @@ impl GenericArgs {
matches!(self, AngleBracketed(..))
}
pub fn is_parenthesized(&self) -> bool {
matches!(self, Parenthesized(..))
}
pub fn span(&self) -> Span {
match self {
AngleBracketed(data) => data.span,