Home
last modified time | relevance | path

Searched refs:pDecl (Results 1 – 20 of 20) sorted by relevance

/AOO42X/main/idlc/source/
H A Dastscope.cxx56 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 Dastunion.cxx97 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 Dparser.y587 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 Dfehelper.cxx57 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 Dastdeclaration.cxx61 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 Dastoperation.cxx77 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 Didlc.cxx79 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 Dastenum.cxx49 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 Derrorhandler.cxx598 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 Dastdump.cxx80 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 Daststruct.cxx134 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 Dastexpression.cxx1070 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 Derrorhandler.hxx128 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 Dastscope.hxx41 virtual AstDeclaration* addDeclaration(AstDeclaration* pDecl);
62 AstDeclaration* lookupForAdd(AstDeclaration* pDecl);
H A Dastenum.hxx47 virtual AstDeclaration* addDeclaration(AstDeclaration* pDecl);
H A Dastunion.hxx42 virtual AstDeclaration* addDeclaration(AstDeclaration* pDecl);
H A Dastoperation.hxx64 virtual AstDeclaration* addDeclaration(AstDeclaration* pDecl);
H A Dfehelper.hxx52 AstType const * compose(AstDeclaration const * pDecl);
H A Dastdeclaration.hxx117 sal_Bool hasAncestor(AstDeclaration* pDecl);
H A Didlctypes.hxx78 AstScope* SAL_CALL declAsScope(AstDeclaration* pDecl);