LibreOffice Module basic (master) 1
|
#include <symtbl.hxx>
Public Member Functions | |
SbiSymDef (OUString) | |
virtual | ~SbiSymDef () |
virtual SbiProcDef * | GetProcDef () |
virtual SbiConstDef * | GetConstDef () |
SbxDataType | GetType () const |
virtual void | SetType (SbxDataType) |
const OUString & | GetName () |
SbiSymScope | GetScope () const |
sal_uInt32 | GetAddr () const |
sal_uInt16 | GetId () const |
sal_uInt16 | GetTypeId () const |
void | SetTypeId (sal_uInt16 n) |
sal_uInt16 | GetPos () const |
void | SetLen (short n) |
short | GetLen () const |
void | SetDims (short n) |
short | GetDims () const |
bool | IsDefined () const |
void | SetOptional () |
void | SetParamArray () |
void | SetWithEvents () |
void | SetWithBrackets () |
void | SetByVal (bool bByVal_) |
void | SetStatic (bool bAsStatic=true) |
void | SetNew () |
void | SetDefinedAs () |
void | SetGlobal (bool b) |
void | SetDefaultId (sal_uInt16 n) |
sal_uInt16 | GetDefaultId () const |
bool | IsOptional () const |
bool | IsParamArray () const |
bool | IsWithEvents () const |
bool | IsWithBrackets () const |
bool | IsByVal () const |
bool | IsStatic () const |
bool | IsNew () const |
bool | IsDefinedAs () const |
bool | IsGlobal () const |
short | GetFixedStringLength () const |
void | SetFixedStringLength (short n) |
SbiSymPool & | GetPool () |
sal_uInt32 | Define () |
sal_uInt32 | Reference () |
Protected Attributes | |
OUString | aName |
SbxDataType | eType |
SbiSymPool * | pIn |
std::unique_ptr< SbiSymPool > | pPool |
short | nLen |
short | nDims |
sal_uInt16 | nId |
sal_uInt16 | nTypeId |
sal_uInt16 | nProcId |
sal_uInt16 | nPos |
sal_uInt32 | nChain |
bool | bNew: 1 |
bool | bChained: 1 |
bool | bByVal: 1 |
bool | bOpt: 1 |
bool | bStatic: 1 |
bool | bAs: 1 |
bool | bGlobal: 1 |
bool | bParamArray: 1 |
bool | bWithEvents: 1 |
bool | bWithBrackets: 1 |
sal_uInt16 | nDefaultId |
short | nFixedStringLength |
Private Member Functions | |
SbiSymDef (const SbiSymDef &)=delete | |
Friends | |
class | SbiSymPool |
Definition at line 83 of file symtbl.hxx.
SbiSymDef::SbiSymDef | ( | OUString | _aName | ) |
|
virtual |
Definition at line 306 of file symtbl.cxx.
|
privatedelete |
sal_uInt32 SbiSymDef::Define | ( | ) |
Definition at line 369 of file symtbl.cxx.
References SbiParser::aGen, SbiCodeGen::BackChain(), bChained, SbiCodeGen::GenStmnt(), SbiCodeGen::GetPC(), n, nChain, pIn, and SbiSymPool::pParser.
Referenced by SbiParser::DefDeclare(), and SbiParser::DefProc().
|
inline |
|
virtual |
Reimplemented in SbiConstDef.
Definition at line 315 of file symtbl.cxx.
Referenced by SbiParser::Assign(), SbiParser::DefEnum(), SbiParser::DefVar(), SbiParser::LSet(), SbiParser::RSet(), SbiParser::Set(), SbiParser::Symbol(), and SbiExpression::Term().
|
inline |
|
inline |
Definition at line 127 of file symtbl.hxx.
References nDims.
Referenced by SbiCodeGen::Save(), and SbiExpression::Term().
|
inline |
Definition at line 149 of file symtbl.hxx.
References nFixedStringLength.
Referenced by SbiParser::DefVar().
|
inline |
Definition at line 120 of file symtbl.hxx.
References nId.
Referenced by SbiParser::DefDeclare(), SbiParser::DefEnum(), SbiParser::DefProc(), SbiParser::DefVar(), SbiExprNode::GenElement(), and SbiParser::Set().
|
inline |
Definition at line 125 of file symtbl.hxx.
References nLen.
Referenced by SbiParser::Assign(), and SbiParser::TypeDecl().
const OUString & SbiSymDef::GetName | ( | ) |
Definition at line 321 of file symtbl.cxx.
References aName, SbiStringPool::Find(), nId, pIn, and SbiSymPool::rStrings.
Referenced by SbiParser::Assign(), SbiParser::DefDeclare(), SbiParser::DefEnum(), SbiParser::DefProc(), SbiParser::DefVar(), SbiParser::For(), SbModule::GetCodeCompleteDataFromParse(), SbiParser::LSet(), SbiParser::ProcDecl(), SbiParser::RSet(), SbiCodeGen::Save(), SbiConstExpression::SbiConstExpression(), SbiParser::Set(), SbiParser::Symbol(), and SbiParser::TypeDecl().
SbiSymPool & SbiSymDef::GetPool | ( | ) |
Definition at line 385 of file symtbl.cxx.
References SbiParser::aGblStrings, pIn, SbiSymPool::pParser, pPool, and SbLOCAL.
Referenced by SbModule::GetCodeCompleteDataFromParse(), SbiProcDef::GetLocals(), and SbiExpression::ObjTerm().
|
inline |
Definition at line 123 of file symtbl.hxx.
References nPos.
Referenced by SbiExprNode::Gen(), and SbiExprNode::GenElement().
|
virtual |
Reimplemented in SbiProcDef.
Definition at line 310 of file symtbl.cxx.
Referenced by SbiSymPool::Add(), SbiParser::DefDeclare(), SbiParser::DefProc(), SbiExprNode::Gen(), and SbiExpression::Term().
SbiSymScope SbiSymDef::GetScope | ( | ) | const |
Definition at line 394 of file symtbl.cxx.
References SbiSymPool::GetScope(), pIn, and SbLOCAL.
Referenced by SbiParser::DefVar(), SbiExprNode::Gen(), and SbiParser::Symbol().
|
inline |
Definition at line 115 of file symtbl.hxx.
References eType.
Referenced by SbiParser::DefDeclare(), SbiParser::DefEnum(), SbiParser::DefVar(), SbModule::GetCodeCompleteDataFromParse(), SbiExpression::ObjTerm(), SbiParser::ProcDecl(), SbiCodeGen::Save(), SbiExprNode::SbiExprNode(), SbiParser::Symbol(), SbiExpression::Term(), SbiParser::TypeDecl(), and SbiParser::With().
|
inline |
Definition at line 121 of file symtbl.hxx.
References nTypeId.
Referenced by SbiParser::DefVar(), SbModule::GetCodeCompleteDataFromParse(), SbiParser::Set(), SbiParser::Symbol(), and SbiExpression::Unary().
|
inline |
Definition at line 144 of file symtbl.hxx.
References bByVal.
Referenced by SbiParser::DefDeclare(), and SbiCodeGen::Save().
|
inline |
|
inline |
Definition at line 147 of file symtbl.hxx.
References bAs.
Referenced by SbiParser::DefVar(), and SbiExpression::Term().
|
inline |
|
inline |
Definition at line 146 of file symtbl.hxx.
References bNew.
Referenced by SbiParser::DefVar(), and SbiParser::TypeDecl().
|
inline |
Definition at line 140 of file symtbl.hxx.
References bOpt.
Referenced by SbiProcDef::Match(), and SbiCodeGen::Save().
|
inline |
Definition at line 141 of file symtbl.hxx.
References bParamArray.
Referenced by SbiProcDef::Match(), and SbiCodeGen::Save().
|
inline |
Definition at line 145 of file symtbl.hxx.
References bStatic.
Referenced by SbiSymPool::Add(), SbiParser::DefVar(), SbiParser::Dim(), SbiExprNode::Gen(), SbiParser::ReDim(), and SbiExpression::Term().
|
inline |
Definition at line 143 of file symtbl.hxx.
References bWithBrackets.
Referenced by SbiCodeGen::Save().
|
inline |
Definition at line 142 of file symtbl.hxx.
References bWithEvents.
Referenced by SbiParser::DefVar().
sal_uInt32 SbiSymDef::Reference | ( | ) |
Definition at line 357 of file symtbl.cxx.
References SbiParser::aGen, bChained, SbiCodeGen::GetOffset(), n, nChain, pIn, and SbiSymPool::pParser.
|
inline |
Definition at line 133 of file symtbl.hxx.
References bByVal.
Referenced by SbiParser::DefDeclare(), and SbiParser::ProcDecl().
|
inline |
Definition at line 138 of file symtbl.hxx.
References n, and nDefaultId.
Referenced by SbiParser::ProcDecl().
|
inline |
|
inline |
Definition at line 126 of file symtbl.hxx.
Referenced by SbiParser::DefVar().
|
inline |
Definition at line 150 of file symtbl.hxx.
References n, and nFixedStringLength.
Referenced by SbiParser::TypeDecl().
|
inline |
|
inline |
Definition at line 124 of file symtbl.hxx.
Referenced by SbiParser::TypeDecl().
|
inline |
|
inline |
|
inline |
Definition at line 130 of file symtbl.hxx.
References bParamArray.
Referenced by SbiParser::ProcDecl().
|
inline |
Definition at line 134 of file symtbl.hxx.
References bStatic.
Referenced by SbiParser::DefProc(), SbiExpression::Term(), and SbiParser::VarDecl().
|
virtual |
Reimplemented in SbiProcDef.
Definition at line 331 of file symtbl.cxx.
References aName, ch, SbiParser::eDefTypes, eType, N_DEF_TYPES, nIndex, pIn, SbiSymPool::pParser, SbxVARIANT, and t.
Referenced by addStringConst(), AddSym(), SbiParser::CheckRTLForSym(), SbiExpression::ObjTerm(), SbiProcDef::SetType(), SbiExpression::Term(), SbiParser::TypeDecl(), SbiParser::VarDecl(), and SbiParser::With().
|
inline |
Definition at line 122 of file symtbl.hxx.
References eType, n, nTypeId, and SbxOBJECT.
Referenced by SbiParser::TypeDecl().
|
inline |
Definition at line 132 of file symtbl.hxx.
References bWithBrackets.
Referenced by SbiParser::VarDecl().
|
inline |
Definition at line 131 of file symtbl.hxx.
References bWithEvents.
Referenced by SbiParser::VarDecl().
|
friend |
Definition at line 84 of file symtbl.hxx.
|
protected |
Definition at line 86 of file symtbl.hxx.
Referenced by SbiSymPool::Add(), SbiSymPool::Find(), GetName(), SbiProcDef::Match(), SbiProcDef::SbiProcDef(), SbiProcDef::setPropertyMode(), and SetType().
|
protected |
Definition at line 102 of file symtbl.hxx.
Referenced by IsDefinedAs(), and SetDefinedAs().
|
protected |
Definition at line 99 of file symtbl.hxx.
Referenced by IsByVal(), and SetByVal().
|
protected |
Definition at line 98 of file symtbl.hxx.
Referenced by Define(), IsDefined(), and Reference().
|
protected |
Definition at line 103 of file symtbl.hxx.
Referenced by IsGlobal(), and SetGlobal().
|
protected |
Definition at line 97 of file symtbl.hxx.
|
protected |
Definition at line 100 of file symtbl.hxx.
Referenced by IsOptional(), and SetOptional().
|
protected |
Definition at line 104 of file symtbl.hxx.
Referenced by IsParamArray(), and SetParamArray().
|
protected |
Definition at line 101 of file symtbl.hxx.
Referenced by IsStatic(), SbiProcDef::SbiProcDef(), and SetStatic().
|
protected |
Definition at line 106 of file symtbl.hxx.
Referenced by IsWithBrackets(), and SetWithBrackets().
|
protected |
Definition at line 105 of file symtbl.hxx.
Referenced by IsWithEvents(), and SetWithEvents().
|
protected |
Definition at line 87 of file symtbl.hxx.
Referenced by GetType(), SbiConstDef::SbiConstDef(), SbiConstDef::Set(), SetType(), SbiProcDef::SetType(), and SetTypeId().
|
protected |
Definition at line 96 of file symtbl.hxx.
Referenced by Define(), GetAddr(), and Reference().
|
protected |
Definition at line 107 of file symtbl.hxx.
Referenced by GetDefaultId(), and SetDefaultId().
|
protected |
Definition at line 91 of file symtbl.hxx.
|
protected |
Definition at line 108 of file symtbl.hxx.
Referenced by GetFixedStringLength(), and SetFixedStringLength().
|
protected |
Definition at line 92 of file symtbl.hxx.
Referenced by SbiSymPool::Add(), GetId(), GetName(), and SbiProcDef::Match().
|
protected |
Definition at line 90 of file symtbl.hxx.
|
protected |
Definition at line 95 of file symtbl.hxx.
Referenced by SbiSymPool::Add(), GetPos(), and SbiProcDef::Match().
|
protected |
Definition at line 94 of file symtbl.hxx.
Referenced by SbiSymPool::Add(), and SbiSymPool::Find().
|
protected |
Definition at line 93 of file symtbl.hxx.
Referenced by GetTypeId(), and SetTypeId().
|
protected |
Definition at line 88 of file symtbl.hxx.
Referenced by SbiSymPool::Add(), Define(), GetName(), GetPool(), GetScope(), SbiProcDef::Match(), Reference(), and SetType().
|
protected |
Definition at line 89 of file symtbl.hxx.
Referenced by GetPool(), and SbiProcDef::SbiProcDef().