From 6324bf4460132225f682a59bc59794610c25924e Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Mon, 2 Aug 2010 12:04:59 +0200 Subject: Introduced IdExpressionAST. --- src/shared/cplusplus/AST.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/shared/cplusplus/AST.cpp') diff --git a/src/shared/cplusplus/AST.cpp b/src/shared/cplusplus/AST.cpp index 3922b44a33..3d5f80a7f5 100644 --- a/src/shared/cplusplus/AST.cpp +++ b/src/shared/cplusplus/AST.cpp @@ -4211,3 +4211,21 @@ unsigned AttributeSpecifierAST::lastToken() const return 0; } +/** \generated */ +unsigned IdExpressionAST::firstToken() const +{ + if (name) + if (unsigned candidate = name->firstToken()) + return candidate; + return 0; +} + +/** \generated */ +unsigned IdExpressionAST::lastToken() const +{ + if (name) + if (unsigned candidate = name->lastToken()) + return candidate; + return 0; +} + -- cgit v1.2.1