remove raw member def from code types, reduction on CodeAttributes

This commit is contained in:
2024-12-02 11:20:31 -05:00
parent ea18792373
commit 0bad61fda6
7 changed files with 72 additions and 209 deletions

View File

@ -55,11 +55,6 @@ inline CodeAttributes::operator bool()
return ast != nullptr;
}
inline AST* CodeAttributes::raw()
{
return rcast( AST*, ast );
}
inline CodeAttributes::operator Code()
{
return *rcast( Code*, this );
@ -91,11 +86,6 @@ inline CodeComment::operator bool()
return ast != nullptr;
}
inline AST* CodeComment::raw()
{
return rcast( AST*, ast );
}
inline CodeComment::operator Code()
{
return *rcast( Code*, this );
@ -127,11 +117,6 @@ inline CodeConstructor::operator bool()
return ast != nullptr;
}
inline AST* CodeConstructor::raw()
{
return rcast( AST*, ast );
}
inline CodeConstructor::operator Code()
{
return *rcast( Code*, this );
@ -179,11 +164,6 @@ inline CodeDefine::operator bool()
return ast != nullptr;
}
inline AST* CodeDefine::raw()
{
return rcast( AST*, ast );
}
inline CodeDefine::operator Code()
{
return *rcast( Code*, this );
@ -215,11 +195,6 @@ inline CodeDestructor::operator bool()
return ast != nullptr;
}
inline AST* CodeDestructor::raw()
{
return rcast( AST*, ast );
}
inline CodeDestructor::operator Code()
{
return *rcast( Code*, this );
@ -251,11 +226,6 @@ inline CodeEnum::operator bool()
return ast != nullptr;
}
inline AST* CodeEnum::raw()
{
return rcast( AST*, ast );
}
inline CodeEnum::operator Code()
{
return *rcast( Code*, this );
@ -287,11 +257,6 @@ inline CodeExec::operator bool()
return ast != nullptr;
}
inline AST* CodeExec::raw()
{
return rcast( AST*, ast );
}
inline CodeExec::operator Code()
{
return *rcast( Code*, this );
@ -323,11 +288,6 @@ inline CodeExtern::operator bool()
return ast != nullptr;
}
inline AST* CodeExtern::raw()
{
return rcast( AST*, ast );
}
inline CodeExtern::operator Code()
{
return *rcast( Code*, this );
@ -359,11 +319,6 @@ inline CodeFriend::operator bool()
return ast != nullptr;
}
inline AST* CodeFriend::raw()
{
return rcast( AST*, ast );
}
inline CodeFriend::operator Code()
{
return *rcast( Code*, this );
@ -395,11 +350,6 @@ inline CodeFn::operator bool()
return ast != nullptr;
}
inline AST* CodeFn::raw()
{
return rcast( AST*, ast );
}
inline CodeFn::operator Code()
{
return *rcast( Code*, this );
@ -431,11 +381,6 @@ inline CodeInclude::operator bool()
return ast != nullptr;
}
inline AST* CodeInclude::raw()
{
return rcast( AST*, ast );
}
inline CodeInclude::operator Code()
{
return *rcast( Code*, this );
@ -467,11 +412,6 @@ inline CodeModule::operator bool()
return ast != nullptr;
}
inline AST* CodeModule::raw()
{
return rcast( AST*, ast );
}
inline CodeModule::operator Code()
{
return *rcast( Code*, this );
@ -503,11 +443,6 @@ inline CodeNS::operator bool()
return ast != nullptr;
}
inline AST* CodeNS::raw()
{
return rcast( AST*, ast );
}
inline CodeNS::operator Code()
{
return *rcast( Code*, this );
@ -539,11 +474,6 @@ inline CodeOperator::operator bool()
return ast != nullptr;
}
inline AST* CodeOperator::raw()
{
return rcast( AST*, ast );
}
inline CodeOperator::operator Code()
{
return *rcast( Code*, this );
@ -575,11 +505,6 @@ inline CodeOpCast::operator bool()
return ast != nullptr;
}
inline AST* CodeOpCast::raw()
{
return rcast( AST*, ast );
}
inline CodeOpCast::operator Code()
{
return *rcast( Code*, this );
@ -627,11 +552,6 @@ inline CodePragma::operator bool()
return ast != nullptr;
}
inline AST* CodePragma::raw()
{
return rcast( AST*, ast );
}
inline CodePragma::operator Code()
{
return *rcast( Code*, this );
@ -663,11 +583,6 @@ inline CodePreprocessCond::operator bool()
return ast != nullptr;
}
inline AST* CodePreprocessCond::raw()
{
return rcast( AST*, ast );
}
inline CodePreprocessCond::operator Code()
{
return *rcast( Code*, this );
@ -731,11 +646,6 @@ inline CodeTemplate::operator bool()
return ast != nullptr;
}
inline AST* CodeTemplate::raw()
{
return rcast( AST*, ast );
}
inline CodeTemplate::operator Code()
{
return *rcast( Code*, this );
@ -767,11 +677,6 @@ inline CodeType::operator bool()
return ast != nullptr;
}
inline AST* CodeType::raw()
{
return rcast( AST*, ast );
}
inline CodeType::operator Code()
{
return *rcast( Code*, this );
@ -803,11 +708,6 @@ inline CodeTypedef::operator bool()
return ast != nullptr;
}
inline AST* CodeTypedef::raw()
{
return rcast( AST*, ast );
}
inline CodeTypedef::operator Code()
{
return *rcast( Code*, this );
@ -839,11 +739,6 @@ inline CodeUnion::operator bool()
return ast != nullptr;
}
inline AST* CodeUnion::raw()
{
return rcast( AST*, ast );
}
inline CodeUnion::operator Code()
{
return *rcast( Code*, this );
@ -875,11 +770,6 @@ inline CodeUsing::operator bool()
return ast != nullptr;
}
inline AST* CodeUsing::raw()
{
return rcast( AST*, ast );
}
inline CodeUsing::operator Code()
{
return *rcast( Code*, this );
@ -911,11 +801,6 @@ inline CodeVar::operator bool()
return ast != nullptr;
}
inline AST* CodeVar::raw()
{
return rcast( AST*, ast );
}
inline CodeVar::operator Code()
{
return *rcast( Code*, this );