File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -696,14 +696,6 @@ impl Cursor {
696
696
RawTokens :: new ( self )
697
697
}
698
698
699
- /// Gets the tokens that correspond to that cursor as `cexpr` tokens.
700
- pub fn cexpr_tokens ( self ) -> Vec < cexpr:: token:: Token > {
701
- self . tokens ( )
702
- . iter ( )
703
- . filter_map ( |token| token. as_cexpr_token ( ) )
704
- . collect ( )
705
- }
706
-
707
699
/// Obtain the real path name of a cursor of InclusionDirective kind.
708
700
///
709
701
/// Returns None if the cursor does not include a file, otherwise the file's full name
Original file line number Diff line number Diff line change @@ -405,7 +405,11 @@ fn parse_int_literal_tokens(cursor: &clang::Cursor) -> Option<i64> {
405
405
use cexpr:: expr;
406
406
use cexpr:: expr:: EvalResult ;
407
407
408
- let cexpr_tokens = cursor. cexpr_tokens ( ) ;
408
+ let cexpr_tokens: Vec < _ > = cursor
409
+ . tokens ( )
410
+ . iter ( )
411
+ . filter_map ( |t| t. as_cexpr_token ( ) )
412
+ . collect ( ) ;
409
413
410
414
// TODO(emilio): We can try to parse other kinds of literals.
411
415
match expr:: expr ( & cexpr_tokens) {
You can’t perform that action at this time.
0 commit comments