Lines Matching refs:pScope

514         AstScope* 		pScope = idlc()->scopes()->topNonNull();
518 if ( pScope )
520 pModule = new AstModule(*$3, pScope);
521 if( (pExists = pScope->lookupForAdd(pModule)) )
538 pScope->addDeclaration(pModule);
585 AstScope* pScope = idlc()->scopes()->topNonNull();
592 if ( pScope && $1 )
594 pForward = new AstInterface(*$1, NULL, pScope);
596 if ( pDecl = pScope->lookupByName(pForward->getScopedName()) )
604 idlc()->error()->error2(EIDL_REDEF_SCOPE, scopeAsDecl(pScope), pDecl);
611 pScope->addDeclaration(pForward);
623 AstScope* pScope = idlc()->scopes()->topNonNull();
631 if ( pScope && $1 )
635 static_cast< AstInterface * >($1->getInherits()), pScope);
637 (pDecl = pScope->lookupByName(pInterface->getScopedName())) )
650 if ( pForward->getScope() != pScope )
655 pInterface, pForward, scopeAsDecl(pScope));
690 pScope->addDeclaration(pInterface);
1008 AstInterface * pScope = static_cast< AstInterface * >(
1016 if ( pScope && $2 )
1024 pOp = new AstOperation($1, pType, *$4, pScope);
1027 pScope->checkMemberClashes(pOp));
1029 pScope->addMember(pOp);
1055 AstScope* pScope = idlc()->scopes()->topNonNull();
1060 if ( pScope && pScope->getScopeNodeType() == NT_operation)
1062 pOp = (AstOperation*)pScope;
1132 AstOperation * pScope = static_cast< AstOperation * >(
1140 if ( pScope && $5 && $8 )
1145 if (pScope->isConstructor() && $2 != DIR_IN) {
1148 if (pScope->isVariadic()) {
1159 if (pScope->isConstructor()) {
1160 if (pScope->getIteratorBegin()
1161 != pScope->getIteratorEnd())
1173 pScope);
1180 pScope->addDeclaration(pParam);
1338 AstScope* pScope = idlc()->scopes()->topNonNull();
1341 if ( $9 && pScope )
1348 pConstant = new AstConstant($3, $9, *$5, pScope);
1349 pScope->addDeclaration(pConstant);
1370 AstScope* pScope = idlc()->scopes()->topNonNull();
1374 if ( pScope )
1376 pConstants = new AstConstants(*$3, pScope);
1377 if( (pExists = pScope->lookupForAdd(pConstants)) )
1384 pScope->addDeclaration(pConstants);
1548 AstScope* pScope = idlc()->scopes()->topNonNull();
1555 if ( pScope && (type = pScope->lookupByName(*$1)) ) {
1599 AstScope* pScope = idlc()->scopes()->topNonNull();
1602 if ( pScope )
1606 pExcept = new AstException(*$1->getName(), pBase, pScope);
1607 pScope->addDeclaration(pExcept);
1641 AstScope* pScope = idlc()->scopes()->topNonNull();
1647 if ( pScope->getScopeNodeType() == NT_singleton )
1662 if ( pScope && $2 && pList )
1684 pAttr = new AstAttribute(NT_property, $1, pType, pDecl->getName(), pScope);
1686 pScope->addDeclaration(pAttr);
1715 AstScope* pScope = idlc()->scopes()->topNonNull();
1719 if ( pScope->getScopeNodeType() == NT_singleton )
1728 if ( pScope && $2 )
1735 pDecl = pScope->lookupByName(*iter);
1745 $1, (AstInterface*)pDecl, *iter, pScope);
1746 pScope->addDeclaration(pIMember);
1751 lookupError(EIDL_INTERFACEMEMBER_LOOKUP, *iter, scopeAsDecl(pScope));
1765 AstScope* pScope = idlc()->scopes()->topNonNull();
1773 if ( pScope && $2 )
1780 pDecl = pScope->lookupByName(*iter);
1783 if ( pScope->getScopeNodeType() == NT_singleton && pScope->nMembers() > 0 )
1788 $1, (AstService*)pDecl, *iter, pScope);
1789 pScope->addDeclaration(pSMember);
1794 lookupError(EIDL_SERVICEMEMBER_LOOKUP, *iter, scopeAsDecl(pScope));
1807 AstScope* pScope = idlc()->scopes()->topNonNull();
1811 if ( pScope->getScopeNodeType() == NT_singleton )
1820 if ( pScope && $2 )
1827 pDecl = pScope->lookupByName(*iter);
1830 pObserves = new AstObserves((AstInterface*)pDecl, *iter, pScope);
1831 pScope->addDeclaration(pObserves);
1835 lookupError(EIDL_INTERFACEMEMBER_LOOKUP, *iter, scopeAsDecl(pScope));
1849 AstScope* pScope = idlc()->scopes()->topNonNull();
1853 if ( pScope->getScopeNodeType() == NT_singleton )
1862 if ( pScope && $2 )
1869 pDecl = pScope->lookupByName(*iter);
1872 pNeeds = new AstNeeds((AstService*)pDecl, *iter, pScope);
1873 pScope->addDeclaration(pNeeds);
1877 lookupError(EIDL_SERVICEMEMBER_LOOKUP, *iter, scopeAsDecl(pScope));
1934 AstScope* pScope = idlc()->scopes()->topNonNull();
1940 if (pScope != NULL)
1942 pService = new AstService(*$3, pScope);
1943 pScope->addDeclaration(pService);
2042 AstScope* pScope = idlc()->scopes()->topNonNull();
2048 if (pScope != NULL)
2050 pService = new AstService(NT_singleton, *$3, pScope);
2051 pScope->addDeclaration(pService);
2133 AstScope* pScope = idlc()->scopes()->topNonNull();
2143 if ( pScope && $1 && pList )
2165 pTypeDef = new AstTypeDef(pType, pDecl->getName(), pScope);
2167 pScope->addDeclaration(pTypeDef);
2569 AstScope* pScope = idlc()->scopes()->bottom();
2576 if ( pScope )
2578 pDecl = pScope->addDeclaration(pArray);
2619 AstScope* pScope = idlc()->scopes()->bottom();
2628 pSeq = new AstSequence(pType, pScope);
2632 pDecl = pScope->addDeclaration(pSeq);
2656 AstScope* pScope = idlc()->scopes()->topNonNull();
2659 if ( pScope )
2663 *$1->getName(), $1->getTypeParameters(), pBase, pScope);
2664 pScope->addDeclaration(pStruct);
2768 AstScope* pScope = idlc()->scopes()->topNonNull();
2776 if ( pScope && pList && $1 )
2797 pMember = new AstMember(pType, pDecl->getName(), pScope);
2804 pScope->addDeclaration(pMember);
2852 AstScope* pScope = idlc()->scopes()->topNonNull();
2859 if (pScope != NULL)
2861 pEnum = new AstEnum(*$3, pScope);
2865 pScope->addDeclaration(pEnum);
2920 AstScope* pScope = idlc()->scopes()->topNonNull();
2924 if ( pScope && pScope->getScopeNodeType() == NT_enum)
2926 pEnum = (AstEnum*)pScope;
2931 pExpr, *$1, pScope);
2936 pScope->addDeclaration(pEnumVal);
2946 AstScope* pScope = idlc()->scopes()->topNonNull();
2950 if ( $3 && pScope && pScope->getScopeNodeType() == NT_enum)
2955 pEnum = (AstEnum*)pScope;
2959 $3, *$1, pScope);
2964 pScope->addDeclaration(pEnumVal);
3001 AstScope* pScope = idlc()->scopes()->topNonNull();
3008 if ( $9 && pScope )
3016 pUnion = new AstUnion(*$3, pType, pScope);
3017 pScope->addDeclaration(pUnion);
3058 AstScope* pScope = idlc()->scopes()->topNonNull();
3067 if ( pScope && (pDecl = pScope->lookupByName(*$1)) )
3140 AstScope* pScope = idlc()->scopes()->topNonNull();
3149 if ( pScope && $1 && $3 )
3162 pMember->getLocalName(), pScope);
3163 pScope->addDeclaration(pBranch);
3244 AstScope* pScope = idlc()->scopes()->topNonNull();
3259 $$ = new AstMember(pType, $3->getName(), pScope);