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.
6 #include "atn/EmptyPredictionContext.h"
8 using namespace antlr4::atn;
10 EmptyPredictionContext::EmptyPredictionContext() : SingletonPredictionContext(nullptr, EMPTY_RETURN_STATE) {
13 bool EmptyPredictionContext::isEmpty() const {
17 size_t EmptyPredictionContext::size() const {
21 Ref<PredictionContext> EmptyPredictionContext::getParent(size_t /*index*/) const {
25 size_t EmptyPredictionContext::getReturnState(size_t /*index*/) const {
29 bool EmptyPredictionContext::operator == (const PredictionContext &o) const {
33 std::string EmptyPredictionContext::toString() const {