blob: 8d499325681e470c0cf0322baee92995922ccf73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/**
** \file ast/non-object-visitor.hxx
** \brief Implementation for ast/non-object-visitor.hh.
*/
#pragma once
#include <ast/all.hh>
#include <ast/non-object-visitor.hh>
#include <misc/contract.hh>
namespace ast
{
template <template <typename> class Const>
GenNonObjectVisitor<Const>::GenNonObjectVisitor()
: GenVisitor<Const>()
{}
template <template <typename> class Const>
GenNonObjectVisitor<Const>::~GenNonObjectVisitor()
{}
/*-----------------------------------------.
| Object-related visit methods, disabled. |
`-----------------------------------------*/
template <template <typename> class Const>
void GenNonObjectVisitor<Const>::operator()(const_t<ClassTy>&)
{
// We must not be here (there should be no object feature in plain Tiger).
unreachable();
}
template <template <typename> class Const>
void GenNonObjectVisitor<Const>::operator()(const_t<MethodChunk>&)
{
// We must not be here (there should be no object feature in plain Tiger).
unreachable();
}
template <template <typename> class Const>
void GenNonObjectVisitor<Const>::operator()(const_t<MethodDec>&)
{
// We must not be here (there should be no object feature in plain Tiger).
unreachable();
}
template <template <typename> class Const>
void GenNonObjectVisitor<Const>::operator()(const_t<MethodCallExp>&)
{
// We must not be here (there should be no object feature in plain Tiger).
unreachable();
}
template <template <typename> class Const>
void GenNonObjectVisitor<Const>::operator()(const_t<ObjectExp>&)
{
// We must not be here (there should be no object feature in plain Tiger).
unreachable();
}
} // namespace ast
|