Change PFunction's superclass from PNamedType to PSymbol

This commit is contained in:
Randy Heit 2013-08-10 20:17:55 -05:00
parent 6575499f37
commit 973b0f5c56
2 changed files with 5 additions and 3 deletions

View file

@ -253,7 +253,6 @@ void PType::StaticInit()
RUNTIME_CLASS(PMap)->TypeTableType = RUNTIME_CLASS(PMap); RUNTIME_CLASS(PMap)->TypeTableType = RUNTIME_CLASS(PMap);
RUNTIME_CLASS(PStruct)->TypeTableType = RUNTIME_CLASS(PStruct); RUNTIME_CLASS(PStruct)->TypeTableType = RUNTIME_CLASS(PStruct);
RUNTIME_CLASS(PPrototype)->TypeTableType = RUNTIME_CLASS(PPrototype); RUNTIME_CLASS(PPrototype)->TypeTableType = RUNTIME_CLASS(PPrototype);
RUNTIME_CLASS(PFunction)->TypeTableType = RUNTIME_CLASS(PFunction);
RUNTIME_CLASS(PClass)->TypeTableType = RUNTIME_CLASS(PClass); RUNTIME_CLASS(PClass)->TypeTableType = RUNTIME_CLASS(PClass);
TypeTable.AddType(TypeSInt8 = new PInt(1, false)); TypeTable.AddType(TypeSInt8 = new PInt(1, false));

View file

@ -440,9 +440,9 @@ protected:
}; };
// TBD: Should we really support overloading? // TBD: Should we really support overloading?
class PFunction : public PNamedType class PFunction : public PSymbol
{ {
DECLARE_CLASS(PFunction, PNamedType); DECLARE_CLASS(PFunction, PSymbol);
public: public:
struct Variant struct Variant
{ {
@ -452,6 +452,9 @@ public:
TArray<Variant> Variants; TArray<Variant> Variants;
size_t PropagateMark(); size_t PropagateMark();
PFunction(FName name) : PSymbol(name) {}
PFunction() : PSymbol(NAME_None) {}
}; };
// Meta-info for every class derived from DObject --------------------------- // Meta-info for every class derived from DObject ---------------------------