-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathnamedobject.cpp
More file actions
40 lines (34 loc) · 821 Bytes
/
namedobject.cpp
File metadata and controls
40 lines (34 loc) · 821 Bytes
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
#include "namedobject.h"
#include "expr.h"
void NamedObject::dump() const
{
std::cerr << Name() << " Type: ";
Type()->dump();
std::cerr << std::endl;
}
void ConstDef::dump() const
{
std::cerr << "Const: " << Name() << " Value: " << constVal->Translate().ToString() << std::endl;
}
void EnumDef::dump() const
{
std::cerr << "Enum: " << Name() << " Value: " << enumValue << std::endl;
}
void WithDef::dump() const
{
std::cerr << "With: " << Name() << " Actual: ";
actual->dump();
std::cerr << " Type: ";
Type()->dump();
std::cerr << std::endl;
}
void MembFuncDef::dump() const
{
std::cerr << "Membfunc: " << Name() << " Index:" << Index();
Type()->dump();
std::cerr << std::endl;
}
void LabelDef::dump() const
{
std::cerr << "Label: " << Name() << std::endl;
}