55 lines · cpp
1//===-- DILAST.cpp --------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#include "lldb/ValueObject/DILAST.h"10#include "llvm/Support/ErrorHandling.h"11 12namespace lldb_private::dil {13 14llvm::Expected<lldb::ValueObjectSP> ErrorNode::Accept(Visitor *v) const {15 llvm_unreachable("Attempting to Visit a DIL ErrorNode.");16}17 18llvm::Expected<lldb::ValueObjectSP> IdentifierNode::Accept(Visitor *v) const {19 return v->Visit(this);20}21 22llvm::Expected<lldb::ValueObjectSP> MemberOfNode::Accept(Visitor *v) const {23 return v->Visit(this);24}25 26llvm::Expected<lldb::ValueObjectSP> UnaryOpNode::Accept(Visitor *v) const {27 return v->Visit(this);28}29 30llvm::Expected<lldb::ValueObjectSP>31ArraySubscriptNode::Accept(Visitor *v) const {32 return v->Visit(this);33}34 35llvm::Expected<lldb::ValueObjectSP>36BitFieldExtractionNode::Accept(Visitor *v) const {37 return v->Visit(this);38}39 40llvm::Expected<lldb::ValueObjectSP>41IntegerLiteralNode::Accept(Visitor *v) const {42 return v->Visit(this);43}44 45llvm::Expected<lldb::ValueObjectSP> FloatLiteralNode::Accept(Visitor *v) const {46 return v->Visit(this);47}48 49llvm::Expected<lldb::ValueObjectSP>50BooleanLiteralNode::Accept(Visitor *v) const {51 return v->Visit(this);52}53 54} // namespace lldb_private::dil55