| 207 | return *std::get_if<InstanceDecl>(&Decl); |
| 208 | } |
| 209 | void setInstance(InstanceDecl &&Inst) noexcept { |
| 210 | Decl.emplace<InstanceDecl>(std::move(Inst)); |
| 211 | } |
| 212 | |
| 213 | bool isImportDecl() const noexcept { |
| 214 | return std::holds_alternative<ImportDecl>(Decl); |