| 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-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "lldb/ValueObject/DILAST.h" |
| 10 | #include "llvm/Support/ErrorHandling.h" |
| 11 | |
| 12 | namespace lldb_private::dil { |
| 13 | |
| 14 | llvm::Expected<lldb::ValueObjectSP> ErrorNode::Accept(Visitor *v) const { |
| 15 | llvm_unreachable("Attempting to Visit a DIL ErrorNode."); |
| 16 | } |
| 17 | |
| 18 | llvm::Expected<lldb::ValueObjectSP> IdentifierNode::Accept(Visitor *v) const { |
| 19 | return v->Visit(node: this); |
| 20 | } |
| 21 | |
| 22 | llvm::Expected<lldb::ValueObjectSP> MemberOfNode::Accept(Visitor *v) const { |
| 23 | return v->Visit(node: this); |
| 24 | } |
| 25 | |
| 26 | llvm::Expected<lldb::ValueObjectSP> UnaryOpNode::Accept(Visitor *v) const { |
| 27 | return v->Visit(node: this); |
| 28 | } |
| 29 | |
| 30 | llvm::Expected<lldb::ValueObjectSP> |
| 31 | ArraySubscriptNode::Accept(Visitor *v) const { |
| 32 | return v->Visit(node: this); |
| 33 | } |
| 34 | |
| 35 | } // namespace lldb_private::dil |
| 36 |
