Lines Matching refs:pDef

46 	SbiSymDef* pDef = bConst ? new SbiConstDef( aSym ) : new SbiSymDef( aSym );  in VarDecl()  local
53 pDef->SetWithBrackets(); in VarDecl()
55 pDef->SetType( t ); in VarDecl()
57 pDef->SetStatic(); in VarDecl()
59 pDef->SetWithEvents(); in VarDecl()
60 TypeDecl( *pDef ); in VarDecl()
69 return pDef; in VarDecl()
290 SbiSymDef* pDef; in DefVar() local
302 while( ( pDef = VarDecl( &pDim, bStatic, bConst ) ) != NULL ) in DefVar()
308 SbiSymDef* pOld = pPool->Find( pDef->GetName() ); in DefVar()
313 pOld = CheckRTLForSym( pDef->GetName(), SbxVARIANT ); in DefVar()
319 if( pDef->GetScope() == SbLOCAL && pOld->GetScope() != SbLOCAL ) in DefVar()
335 else if( pOld->GetType() != ( eDefType = pDef->GetType() ) ) in DefVar()
337 if( !( eDefType == SbxVARIANT && !pDef->IsDefinedAs() ) ) in DefVar()
341 Error( SbERR_VAR_DEFINED, pDef->GetName() ); in DefVar()
344 Error( SbERR_VAR_DEFINED, pDef->GetName() ); in DefVar()
345 delete pDef; pDef = pOld; in DefVar()
348 pPool->Add( pDef ); in DefVar()
353 && ( !bConst || pDef->GetScope() == SbGLOBAL ) ) in DefVar()
357 switch ( pDef->GetScope() ) in DefVar()
374 sal_uInt32 nOpnd2 = sal::static_int_cast< sal_uInt16 >( pDef->GetType() ); in DefVar()
375 if( pDef->IsWithEvents() ) in DefVar()
378 if( bCompatible && pDef->IsNew() ) in DefVar()
381 short nFixedStringLength = pDef->GetFixedStringLength(); in DefVar()
388 aGen.Gen( eOp2, pDef->GetId(), nOpnd2 ); in DefVar()
393 if( pDef->GetType() == SbxOBJECT in DefVar()
394 && pDef->GetTypeId() ) in DefVar()
396 if( !bCompatible && !pDef->IsNew() ) in DefVar()
398 String aTypeName( aGblStrings.Find( pDef->GetTypeId() ) ); in DefVar()
412 SbiExpression aExpr( this, *pDef, NULL ); in DefVar()
416 pDef->SetDims( pDim->GetDims() ); in DefVar()
417 SbiExpression aExpr2( this, *pDef, pDim ); in DefVar()
419 aGen.Gen( _DCREATE_REDIMP, pDef->GetId(), pDef->GetTypeId() ); in DefVar()
423 pDef->SetDims( pDim->GetDims() ); in DefVar()
424 SbiExpression aExpr( this, *pDef, pDim ); in DefVar()
426 aGen.Gen( _DCREATE, pDef->GetId(), pDef->GetTypeId() ); in DefVar()
431 SbiExpression aExpr( this, *pDef ); in DefVar()
433 SbiOpcode eOp_ = pDef->IsNew() ? _CREATE : _TCREATE; in DefVar()
434 aGen.Gen( eOp_, pDef->GetId(), pDef->GetTypeId() ); in DefVar()
448 SbiExpression aVar( this, *pDef ); in DefVar()
454 if( pDef->GetScope() == SbGLOBAL ) in DefVar()
461 SbiConstDef* pConst = pDef->GetConstDef(); in DefVar()
474 SbiExpression aExpr( this, *pDef, NULL ); in DefVar()
487 SbiExpression aExpr( this, *pDef, NULL ); in DefVar()
491 pDef->SetDims( pDim->GetDims() ); in DefVar()
493 pDef->SetGlobal( sal_True ); in DefVar()
494 SbiExpression aExpr( this, *pDef, pDim ); in DefVar()
496 pDef->SetGlobal( sal_False ); in DefVar()
822 SbiProcDef* pDef = new SbiProcDef( this, aName, true ); in ProcDecl() local
823 pDef->SetType( eType ); in ProcDecl()
826 Next(); pDef->SetCdecl(); in ProcDecl()
832 pDef->GetLib() = aSym; in ProcDecl()
840 pDef->GetAlias() = aSym; in ProcDecl()
847 if( pDef->GetLib().Len() ) in ProcDecl()
849 if( pDef->GetAlias().Len() ) in ProcDecl()
851 if( pDef->IsCdecl() ) in ProcDecl()
853 pDef->SetCdecl( sal_False ); in ProcDecl()
854 pDef->GetLib().Erase(); in ProcDecl()
855 pDef->GetAlias().Erase(); in ProcDecl()
857 else if( !pDef->GetLib().Len() ) in ProcDecl()
860 if( pDef->GetAlias().Len() ) in ProcDecl()
862 if( pDef->IsCdecl() ) in ProcDecl()
864 pDef->SetCdecl( sal_False ); in ProcDecl()
865 pDef->GetAlias().Erase(); in ProcDecl()
900 pDef->GetParams().Add( pPar ); in ProcDecl()
933 TypeDecl( *pDef ); in ProcDecl()
934 if( eType != SbxVARIANT && pDef->GetType() != eType ) in ProcDecl()
939 if( pDef->GetType() == SbxVARIANT && !( bFunc || bProp ) ) in ProcDecl()
940 pDef->SetType( SbxEMPTY ); in ProcDecl()
941 return pDef; in ProcDecl()
960 SbiProcDef* pDef = ProcDecl( sal_True ); in DefDeclare() local
961 if( pDef ) in DefDeclare()
963 if( !pDef->GetLib().Len() ) in DefDeclare()
966 SbiSymDef* pOld = aPublics.Find( pDef->GetName() ); in DefDeclare()
973 Error( SbERR_BAD_DECLARATION, pDef->GetName() ); in DefDeclare()
974 delete pDef; in DefDeclare()
975 pDef = NULL; in DefDeclare()
978 pDef->Match( p ); in DefDeclare()
981 aPublics.Add( pDef ); in DefDeclare()
983 if ( pDef ) in DefDeclare()
985 pDef->SetPublic( !bPrivate ); in DefDeclare()
988 if( pDef->GetLib().Len() > 0 ) in DefDeclare()
998 pDef->Define(); in DefDeclare()
999 pDef->SetLine1( nSavLine ); in DefDeclare()
1000 pDef->SetLine2( nSavLine ); in DefDeclare()
1002 SbiSymPool& rPool = pDef->GetParams(); in DefDeclare()
1005 SbxDataType eType = pDef->GetType(); in DefDeclare()
1032 aGen.Gen( _LIB, aGblStrings.Add( pDef->GetLib() ) ); in DefDeclare()
1034 SbiOpcode eOp = pDef->IsCdecl() ? _CALLC : _CALL; in DefDeclare()
1035 sal_uInt16 nId = pDef->GetId(); in DefDeclare()
1036 if( pDef->GetAlias().Len() ) in DefDeclare()
1037 nId = ( nId & 0x8000 ) | aGblStrings.Add( pDef->GetAlias() ); in DefDeclare()
1093 SbiProcDef* pDef = ProcDecl( sal_False ); in DefProc() local
1094 if( !pDef ) in DefProc()
1096 pDef->setPropertyMode( ePropertyMode ); in DefProc()
1099 SbiSymDef* pOld = aPublics.Find( pDef->GetName() ); in DefProc()
1108 Error( SbERR_BAD_DECLARATION, pDef->GetName() ); in DefProc()
1109 delete pDef; in DefProc()
1117 PropertyMode ePropMode = pDef->getPropertyMode(); in DefProc()
1120 Error( SbERR_PROC_DEFINED, pDef->GetName() ); in DefProc()
1121 delete pDef; in DefProc()
1129 pDef->Match( pProc ); in DefProc()
1130 pProc = pDef; in DefProc()
1134 aPublics.Add( pDef ), pProc = pDef; in DefProc()