7#include "antlr/config.hpp"
8#include "antlr/AST.hpp"
9#include "antlr/BaseAST.hpp"
10#include "antlr/CommonAST.hpp"
11#include "antlr/CommonASTWithHiddenTokens.hpp"
12#include "antlr/CommonHiddenStreamToken.hpp"
14#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
18const char*
const CommonASTWithHiddenTokens::TYPE_NAME =
"CommonASTWithHiddenTokens";
23CommonASTWithHiddenTokens::CommonASTWithHiddenTokens()
28CommonASTWithHiddenTokens::~CommonASTWithHiddenTokens()
32void CommonASTWithHiddenTokens::initialize(
int t,
const ANTLR_USE_NAMESPACE(std)
string& txt)
34 CommonAST::initialize(t,txt);
37void CommonASTWithHiddenTokens::initialize(
RefAST t)
39 CommonAST::initialize(t);
44void CommonASTWithHiddenTokens::initialize(RefToken t)
46 CommonAST::initialize(t);
47 hiddenBefore =
static_cast<CommonHiddenStreamToken*
>(t.get())->getHiddenBefore();
48 hiddenAfter =
static_cast<CommonHiddenStreamToken*
>(t.get())->getHiddenAfter();
51RefAST CommonASTWithHiddenTokens::factory()
53 return RefAST(
new CommonASTWithHiddenTokens);
56RefAST CommonASTWithHiddenTokens::clone(
void )
const
62#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
A CommonAST whose initialization copies hidden token information from the Token used to create a node...