CommonASTWithHiddenTokens.cpp
Upload User: afrynkmhm
Upload Date: 2007-01-06
Package Size: 1262k
Code Size: 1k
Development Platform:

Others

  1. #include "antlr/config.hpp"
  2. #include "antlr/CommonASTWithHiddenTokens.hpp"
  3. #include "antlr/CommonHiddenStreamToken.hpp"
  4. ANTLR_BEGIN_NAMESPACE(antlr)
  5. void CommonASTWithHiddenTokens::initialize(RefToken t)
  6. {
  7. CommonAST::initialize(t);
  8. hiddenBefore = static_cast<CommonHiddenStreamToken*>(t.get())->getHiddenBefore();
  9. hiddenAfter = static_cast<CommonHiddenStreamToken*>(t.get())->getHiddenAfter();
  10. }
  11. RefAST CommonASTWithHiddenTokens::factory()
  12. { return RefAST(new CommonASTWithHiddenTokens); }
  13. ANTLR_END_NAMESPACE