PredicateEvalInfo.cpp 685 B

1234567891011121314151617
  1. /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
  2. * Use of this file is governed by the BSD 3-clause license that
  3. * can be found in the LICENSE.txt file in the project root.
  4. */
  5. #include "SemanticContext.h"
  6. #include "atn/PredicateEvalInfo.h"
  7. using namespace antlr4;
  8. using namespace antlr4::atn;
  9. PredicateEvalInfo::PredicateEvalInfo(size_t decision, TokenStream *input, size_t startIndex, size_t stopIndex,
  10. Ref<const SemanticContext> semctx, bool evalResult, size_t predictedAlt, bool fullCtx)
  11. : DecisionEventInfo(decision, nullptr, input, startIndex, stopIndex, fullCtx),
  12. semctx(std::move(semctx)), predictedAlt(predictedAlt), evalResult(evalResult) {
  13. }