File tree 1 file changed +4
-12
lines changed 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -797,16 +797,13 @@ impl<'a> Drop for RawTokens<'a> {
797
797
}
798
798
}
799
799
800
- /// A raw clang token, that exposes only kind, spelling, and extent . This is a
800
+ /// A raw clang token, that exposes only the kind and spelling . This is a
801
801
/// slightly more convenient version of `CXToken` which owns the spelling
802
- /// string and extent .
802
+ /// string.
803
803
#[ derive( Debug ) ]
804
804
pub struct ClangToken {
805
805
spelling : CXString ,
806
- /// The extent of the token. This is the same as the relevant member from
807
- /// `CXToken`.
808
- pub extent : CXSourceRange ,
809
- /// The kind of the token. This is the same as the relevant member from
806
+ /// The kind of token, this is the same as the relevant member from
810
807
/// `CXToken`.
811
808
pub kind : CXTokenKind ,
812
809
}
@@ -865,12 +862,7 @@ impl<'a> Iterator for ClangTokenIterator<'a> {
865
862
unsafe {
866
863
let kind = clang_getTokenKind ( * raw) ;
867
864
let spelling = clang_getTokenSpelling ( self . tu , * raw) ;
868
- let extent = clang_getTokenExtent ( self . tu , * raw) ;
869
- Some ( ClangToken {
870
- kind,
871
- extent,
872
- spelling,
873
- } )
865
+ Some ( ClangToken { kind, spelling } )
874
866
}
875
867
}
876
868
}
You can’t perform that action at this time.
0 commit comments