| /AOO42X/main/idlc/source/ |
| H A D | astscope.cxx | 56 AstDeclaration* AstScope::addDeclaration(AstDeclaration* pDecl) in addDeclaration() argument 60 if ((pDeclaration = lookupForAdd(pDecl)) != NULL) in addDeclaration() 62 if (pDecl->getNodeType() == NT_union_branch ) in addDeclaration() 64 m_declarations.push_back(pDecl); in addDeclaration() 65 return pDecl; in addDeclaration() 67 if ( pDecl->hasAncestor(pDeclaration) ) in addDeclaration() 69 idlc()->error()->error2(EIDL_REDEF_SCOPE, pDecl, pDeclaration); in addDeclaration() 72 if ( (pDecl->getNodeType() == pDeclaration->getNodeType()) && in addDeclaration() 73 (pDecl->getNodeType() == NT_sequence in addDeclaration() 74 || pDecl->getNodeType() == NT_array in addDeclaration() [all …]
|
| H A D | astunion.cxx | 97 AstDeclaration* AstUnion::addDeclaration(AstDeclaration* pDecl) in addDeclaration() argument 99 if ( pDecl->getNodeType() == NT_union_branch ) in addDeclaration() 101 AstUnionBranch* pBranch = (AstUnionBranch*)pDecl; in addDeclaration() 104 idlc()->error()->error2(EIDL_MULTIPLE_BRANCH, this, pDecl); in addDeclaration() 109 return AstScope::addDeclaration(pDecl); in addDeclaration() 136 AstDeclaration *pDecl = NULL; in lookupDefault() local 140 pDecl = *iter; in lookupDefault() 141 if ( pDecl->getNodeType() == NT_union_branch ) in lookupDefault() 143 pBranch = (AstUnionBranch*)pDecl; in lookupDefault() 183 AstDeclaration* pDecl = NULL; in lookupLabel() local [all …]
|
| H A D | parser.y | 587 AstDeclaration* pDecl = NULL; variable 596 if ( pDecl = pScope->lookupByName(pForward->getScopedName()) ) 598 if ( (pDecl != pForward) && 599 (pDecl->getNodeType() == NT_interface) ) 604 idlc()->error()->error2(EIDL_REDEF_SCOPE, scopeAsDecl(pScope), pDecl); 626 AstDeclaration* pDecl = NULL; variable 637 (pDecl = pScope->lookupByName(pInterface->getScopedName())) ) 642 if (pDecl->getNodeType() == NT_interface) 644 pForward = (AstInterface*)pDecl; 1644 FeDeclarator* pDecl = NULL; variable [all …]
|
| H A D | fehelper.cxx | 57 AstType const * FeDeclarator::compose(AstDeclaration const * pDecl) in compose() argument 62 if ( pDecl == 0 ) in compose() 66 if ( !pDecl->isType() ) in compose() 68 idlc()->error()->noTypeError(pDecl); in compose() 71 pType = (AstType*)pDecl; in compose() 115 AstDeclaration* pDecl = pScope->lookupByName(*pInherits); in initializeInherits() local 116 if ( pDecl ) in initializeInherits() 118 AstDeclaration const * resolved = resolveTypedefs(pDecl); in initializeInherits() 124 if ( idlc()->error()->checkPublished( pDecl ) ) in initializeInherits() 126 m_pInherits = pDecl; in initializeInherits() [all …]
|
| H A D | astdeclaration.cxx | 61 AstDeclaration* pDecl = scopeAsDecl(m_pScope); in AstDeclaration() local 62 if (pDecl) in AstDeclaration() 64 m_scopedName = pDecl->getScopedName(); in AstDeclaration() 159 sal_Bool AstDeclaration::hasAncestor(AstDeclaration* pDecl) in hasAncestor() argument 161 if (this == pDecl) in hasAncestor() 165 return scopeAsDecl(m_pScope)->hasAncestor(pDecl); in hasAncestor() 177 AstDeclaration* pDecl = NULL; in dump() local 180 pDecl = *iter; in dump() 181 if ( pDecl->isInMainfile() ) in dump() 183 switch ( pDecl->getNodeType() ) in dump() [all …]
|
| H A D | astoperation.cxx | 77 AstDeclaration* pDecl = NULL; in dumpBlob() local 82 pDecl = *iter; in dumpBlob() 83 if ( pDecl->getNodeType() == NT_parameter ) in dumpBlob() 85 AstParameter* pParam = (AstParameter*)pDecl; in dumpBlob() 109 pDecl->getLocalName(), RTL_TEXTENCODING_UTF8), in dumpBlob() 136 AstDeclaration* AstOperation::addDeclaration(AstDeclaration* pDecl) in addDeclaration() argument 138 if ( pDecl->getNodeType() == NT_parameter ) in addDeclaration() 140 AstParameter* pParam = (AstParameter*)pDecl; in addDeclaration() 144 idlc()->error()->error2(EIDL_ONEWAY_CONFLICT, pDecl, this); in addDeclaration() 148 return AstScope::addDeclaration(pDecl); in addDeclaration()
|
| H A D | idlc.cxx | 79 AstScope* SAL_CALL declAsScope(AstDeclaration* pDecl) in declAsScope() argument 81 if (pDecl == NULL) return NULL; in declAsScope() 83 switch(pDecl->getNodeType()) in declAsScope() 86 return (AstInterface*)(pDecl); in declAsScope() 89 return (AstService*)(pDecl); in declAsScope() 92 return (AstModule*)(pDecl); in declAsScope() 94 return (AstConstants*)(pDecl); in declAsScope() 96 return (AstException*)(pDecl); in declAsScope() 98 return (AstUnion*)(pDecl); in declAsScope() 100 return (AstStruct*)(pDecl); in declAsScope() [all …]
|
| H A D | astenum.cxx | 49 AstDeclaration* pDecl = NULL; in checkValue() local 53 pDecl = *iter; in checkValue() 54 pConst = (AstConstant*)pDecl; in checkValue() 91 AstDeclaration* pDecl = NULL; in dump() local 95 pDecl = *iter; in dump() 96 if ( pDecl->getNodeType() == NT_enum_val ) in dump() 97 ((AstConstant*)pDecl)->dumpBlob(aBlob, index++, false); in dump() 118 AstDeclaration* AstEnum::addDeclaration(AstDeclaration* pDecl) in addDeclaration() argument 120 return AstScope::addDeclaration(pDecl); in addDeclaration()
|
| H A D | errorhandler.cxx | 598 void ErrorHandler::noTypeError(AstDeclaration const * pDecl) in noTypeError() argument 601 fprintf(stderr, "'%s'\n", pDecl->getScopedName().getStr()); in noTypeError() 625 void ErrorHandler::inheritanceError(NodeType nodeType, const OString* name, AstDeclaration* pDecl) in inheritanceError() argument 628 (pDecl->getNodeType() == NT_interface) && in inheritanceError() 629 !((AstInterface*)pDecl)->isDefined() ) in inheritanceError() 633 name->getStr(), pDecl->getScopedName().getStr()); in inheritanceError() 639 pDecl->getScopedName().getStr()); in inheritanceError() 653 void ErrorHandler::constantExpected(AstDeclaration* pDecl, in constantExpected() argument 657 fprintf(stderr, "'%s' is bound to '%s'\n", name.getStr(), pDecl->getScopedName().getStr()); in constantExpected()
|
| H A D | astdump.cxx | 80 AstDeclaration* pDecl = NULL; in dump() local 84 pDecl = *iter; in dump() 85 if ( pDecl->getNodeType() == NT_const && in dump() 86 pDecl->isInMainfile() ) in dump() 88 ((AstConstant*)pDecl)->dumpBlob( in dump() 90 getNodeType() == NT_module && pDecl->isPublished()); in dump()
|
| H A D | aststruct.cxx | 134 AstDeclaration* pDecl = NULL; in dump() local 140 pDecl = *iter; in dump() 141 if ( pDecl->getNodeType() == NT_member ) in dump() 143 pMember = (AstMember*)pDecl; in dump()
|
| H A D | astexpression.cxx | 1070 AstDeclaration *pDecl; in eval_symbol() local 1094 pDecl = pScope->lookupByName(*m_pSymbolicName); in eval_symbol() 1095 if (pDecl == NULL) in eval_symbol() 1103 if (pDecl->getNodeType() != NT_const && in eval_symbol() 1104 pDecl->getNodeType() != NT_enum_val) in eval_symbol() 1106 idlc()->error()->constantExpected(pDecl, *m_pSymbolicName); in eval_symbol() 1109 if (!idlc()->error()->checkPublished(pDecl)) in eval_symbol() 1116 pConst = static_cast< AstConstant* >(pDecl); in eval_symbol()
|
| /AOO42X/main/idlc/inc/idlc/ |
| H A D | errorhandler.hxx | 128 void noTypeError(AstDeclaration const * pDecl); 130 void inheritanceError(NodeType nodeType, const ::rtl::OString* name, AstDeclaration* pDecl); 136 void constantExpected(AstDeclaration* pDecl, const ::rtl::OString& name);
|
| H A D | astscope.hxx | 41 virtual AstDeclaration* addDeclaration(AstDeclaration* pDecl); 62 AstDeclaration* lookupForAdd(AstDeclaration* pDecl);
|
| H A D | astenum.hxx | 47 virtual AstDeclaration* addDeclaration(AstDeclaration* pDecl);
|
| H A D | astunion.hxx | 42 virtual AstDeclaration* addDeclaration(AstDeclaration* pDecl);
|
| H A D | astoperation.hxx | 64 virtual AstDeclaration* addDeclaration(AstDeclaration* pDecl);
|
| H A D | fehelper.hxx | 52 AstType const * compose(AstDeclaration const * pDecl);
|
| H A D | astdeclaration.hxx | 117 sal_Bool hasAncestor(AstDeclaration* pDecl);
|
| H A D | idlctypes.hxx | 78 AstScope* SAL_CALL declAsScope(AstDeclaration* pDecl);
|