Lines Matching refs:AutoPtr
59 AutoPtr<ASTEnumType> g_currentEnum = nullptr;
333 AutoPtr<AST> importAst = (iter != allAsts_.end()) ? iter->second : nullptr; in ParseImportInfo()
360 AutoPtr<ASTSequenceableType> seqType = new ASTSequenceableType(); in ParseSequenceableInfo()
370 AutoPtr<AST> seqAst = new AST(); in ParseSequenceableInfo()
530 AutoPtr<ASTInterfaceType> interfaceType = new ASTInterfaceType; in ParseInterface()
531 AutoPtr<ASTAttr> astAttr = ParseInfAttrInfo(attrs); in ParseInterface()
567 AutoPtr<ASTAttr> Parser::ParseInfAttrInfo(const AttrSet &attrs) in ParseInfAttrInfo()
569 AutoPtr<ASTAttr> infAttr = new ASTAttr(); in ParseInfAttrInfo()
603 void Parser::CheckInterfaceAttr(const AutoPtr<ASTInterfaceType> &interface, Token token) in CheckInterfaceAttr()
630 void Parser::ParseInterfaceExternal(const AutoPtr<ASTInterfaceType> &interface) in ParseInterfaceExternal()
641 void Parser::ParseInterfaceBody(const AutoPtr<ASTInterfaceType> &interface) in ParseInterfaceBody()
654 AutoPtr<ASTMethod> method = ParseMethod(interface); in ParseInterfaceBody()
676 AutoPtr<ASTMethod> Parser::ParseMethod(const AutoPtr<ASTInterfaceType> &interface) in ParseMethod()
679 AutoPtr<ASTMethod> method = new ASTMethod(); in ParseMethod()
680 AutoPtr<ASTAttr> methodAttr = ParseMethodAttr(); in ParseMethod()
707 AutoPtr<ASTInterfaceType> extInterface = interface->GetExtendsInterface(); in ParseMethod()
722 AutoPtr<ASTType> Parser::ParseMethodReturnType() in ParseMethodReturnType()
739 AutoPtr<ASTAttr> Parser::ParseMethodAttr() in ParseMethodAttr()
746 AutoPtr<ASTAttr> methodAttr = new ASTAttr(); in ParseMethodAttr()
778 AutoPtr<ASTMethod> Parser::CreateGetVersionMethod() in CreateGetVersionMethod()
780 AutoPtr<ASTMethod> method = new ASTMethod(); in CreateGetVersionMethod()
783 AutoPtr<ASTType> type = ast_->FindType("unsigned int"); in CreateGetVersionMethod()
793 void Parser::CheckMethodAttr(const AutoPtr<ASTInterfaceType> &interface, const AutoPtr<ASTMethod> &… in CheckMethodAttr()
821 void Parser::ParseMethodParamList(const AutoPtr<ASTMethod> &method) in ParseMethodParamList()
840 AutoPtr<ASTParameter> param = ParseParam(); in ParseMethodParamList()
869 AutoPtr<ASTParameter> Parser::ParseParam() in ParseParam()
871 AutoPtr<ASTParamAttr> paramAttr = ParseParamAttr(); in ParseParam()
872 AutoPtr<ASTType> paramType = ParseType(); in ParseParam()
885 AutoPtr<ASTInterfaceType> ifaceType = dynamic_cast<ASTInterfaceType *>(paramType.Get()); in ParseParam()
894 AutoPtr<ASTParamAttr> Parser::ParseParamAttr() in ParseParamAttr()
896 AutoPtr<ASTParamAttr> attr = new ASTParamAttr(ASTParamAttr::PARAM_NONE); in ParseParamAttr()
950 void Parser::SetParamAttrVal(Token token, AutoPtr<ASTParamAttr> attr) in SetParamAttrVal()
970 AutoPtr<ASTType> Parser::ParseType() in ParseType()
972 AutoPtr<ASTType> type = nullptr; in ParseType()
1034 AutoPtr<ASTType> Parser::ParseBasicType() in ParseBasicType()
1036 AutoPtr<ASTType> type = nullptr; in ParseBasicType()
1049 AutoPtr<ASTType> Parser::ParseUnsignedType() in ParseUnsignedType()
1051 AutoPtr<ASTType> type = nullptr; in ParseUnsignedType()
1070 AutoPtr<ASTType> Parser::ParseArrayType(const AutoPtr<ASTType> &elementType) in ParseArrayType()
1085 AutoPtr<ASTArrayType> arrayType = new ASTArrayType(); in ParseArrayType()
1087 AutoPtr<ASTType> retType = ast_->FindType(arrayType->ToString(), false); in ParseArrayType()
1095 AutoPtr<ASTType> Parser::ParseListType() in ParseListType()
1106 AutoPtr<ASTType> type = ParseType(); // element type in ParseListType()
1119 AutoPtr<ASTListType> listType = new ASTListType(); in ParseListType()
1121 AutoPtr<ASTType> retType = ast_->FindType(listType->ToString(), false); in ParseListType()
1129 AutoPtr<ASTType> Parser::ParseMapType() in ParseMapType()
1140 AutoPtr<ASTType> keyType = ParseType(); // key type in ParseMapType()
1154 AutoPtr<ASTType> valueType = ParseType(); in ParseMapType()
1168 AutoPtr<ASTMapType> mapType = new ASTMapType(); in ParseMapType()
1171 AutoPtr<ASTType> retType = ast_->FindType(mapType->ToString(), false); in ParseMapType()
1179 AutoPtr<ASTType> Parser::ParseSmqType() in ParseSmqType()
1190 AutoPtr<ASTType> innerType = ParseType(); in ParseSmqType()
1203 AutoPtr<ASTSmqType> smqType = new ASTSmqType(); in ParseSmqType()
1205 AutoPtr<ASTType> retType = smqType.Get(); in ParseSmqType()
1224 AutoPtr<ASTType> Parser::ParseUserDefType() in ParseUserDefType()
1237 AutoPtr<ASTType> type = ast_->FindType(token.value); in ParseUserDefType()
1244 AutoPtr<ASTEnumType> enumType = new ASTEnumType; in ParseEnumDeclaration()
1285 AutoPtr<ASTType> Parser::ParseEnumBaseType() in ParseEnumBaseType()
1294 AutoPtr<ASTType> baseType = ParseType(); in ParseEnumBaseType()
1323 void Parser::ParserEnumMember(const AutoPtr<ASTEnumType> &enumType) in ParserEnumMember()
1327 AutoPtr<ASTEnumValue> enumValue = new ASTEnumValue(token.value); in ParserEnumMember()
1354 AutoPtr<ASTStructType> structType = new ASTStructType; in ParseStructDeclaration()
1368 AutoPtr<ASTStructType> parentType = ParseStructParentType(); in ParseStructDeclaration()
1396 AutoPtr<ASTStructType> Parser::ParseStructParentType() in ParseStructParentType()
1400 AutoPtr<ASTType> baseType = ParseType(); in ParseStructParentType()
1420 void Parser::ParseStructMember(const AutoPtr<ASTStructType> &structType) in ParseStructMember()
1424 AutoPtr<ASTType> memberType = ParseType(); in ParseStructMember()
1458 AutoPtr<ASTUnionType> unionType = new ASTUnionType; in ParseUnionDeclaration()
1497 void Parser::ParseUnionMember(const AutoPtr<ASTUnionType> &unionType) in ParseUnionMember()
1501 AutoPtr<ASTType> memberType = ParseType(); in ParseUnionMember()
1537 …const AutoPtr<ASTUnionType> &unionType, const AutoPtr<ASTType> &type, const std::string &name) con… in AddUnionMember()
1554 AutoPtr<ASTAttr> Parser::ParseUserDefTypeAttr(const AttrSet &attrs) in ParseUserDefTypeAttr()
1556 AutoPtr<ASTAttr> attr = new ASTAttr(); in ParseUserDefTypeAttr()
1582 AutoPtr<ASTExpr> Parser::ParseExpr() in ParseExpr()
1585 AutoPtr<ASTExpr> value = ParseAndExpr(); in ParseExpr()
1590 AutoPtr<ASTExpr> Parser::ParseAndExpr() in ParseAndExpr()
1592 AutoPtr<ASTExpr> left = ParseXorExpr(); in ParseAndExpr()
1596 AutoPtr<ASTBinaryExpr> expr = new ASTBinaryExpr; in ParseAndExpr()
1607 AutoPtr<ASTExpr> Parser::ParseXorExpr() in ParseXorExpr()
1609 AutoPtr<ASTExpr> left = ParseOrExpr(); in ParseXorExpr()
1613 AutoPtr<ASTBinaryExpr> expr = new ASTBinaryExpr; in ParseXorExpr()
1624 AutoPtr<ASTExpr> Parser::ParseOrExpr() in ParseOrExpr()
1626 AutoPtr<ASTExpr> left = ParseShiftExpr(); in ParseOrExpr()
1630 AutoPtr<ASTBinaryExpr> expr = new ASTBinaryExpr; in ParseOrExpr()
1641 AutoPtr<ASTExpr> Parser::ParseShiftExpr() in ParseShiftExpr()
1643 AutoPtr<ASTExpr> left = ParseAddExpr(); in ParseShiftExpr()
1648 AutoPtr<ASTBinaryExpr> expr = new ASTBinaryExpr; in ParseShiftExpr()
1659 AutoPtr<ASTExpr> Parser::ParseAddExpr() in ParseAddExpr()
1661 AutoPtr<ASTExpr> left = ParseMulExpr(); in ParseAddExpr()
1666 AutoPtr<ASTBinaryExpr> expr = new ASTBinaryExpr; in ParseAddExpr()
1677 AutoPtr<ASTExpr> Parser::ParseMulExpr() in ParseMulExpr()
1679 AutoPtr<ASTExpr> left = ParseUnaryExpr(); in ParseMulExpr()
1690 AutoPtr<ASTBinaryExpr> expr = new ASTBinaryExpr; in ParseMulExpr()
1701 AutoPtr<ASTExpr> Parser::ParseUnaryExpr() in ParseUnaryExpr()
1709 AutoPtr<ASTUnaryExpr> expr = new ASTUnaryExpr; in ParseUnaryExpr()
1725 AutoPtr<ASTExpr> Parser::ParsePrimaryExpr() in ParsePrimaryExpr()
1731 AutoPtr<ASTExpr> expr = ParseExpr(); in ParsePrimaryExpr()
1757 AutoPtr<ASTExpr> Parser::ParseNumExpr() in ParseNumExpr()
1765 AutoPtr<ASTNumExpr> expr = new ASTNumExpr; in ParseNumExpr()
1770 AutoPtr<ASTExpr> Parser::ParseEnumExpr() in ParseEnumExpr()
1778 AutoPtr<ASTEnumExpr> expr = new ASTEnumExpr; in ParseEnumExpr()
1792 bool Parser::CheckType(const Token &token, const AutoPtr<ASTType> &type) in CheckType()
1826 bool Parser::CheckTypeByMode(const Token &token, const AutoPtr<ASTType> &type) in CheckTypeByMode()
1905 bool Parser::AddAst(const AutoPtr<AST> &ast) in AddAst()
1923 void Parser::ParseInterfaceExtends(AutoPtr<ASTInterfaceType> &interface) in ParseInterfaceExtends()
1940 void Parser::ParseExtendsInfo(AutoPtr<ASTInterfaceType> &interfaceType) in ParseExtendsInfo()
1953 AutoPtr<AST> extendsAst = (iter != allAsts_.end()) ? iter->second : nullptr; in ParseExtendsInfo()
1975 bool Parser::CheckExtendsName(AutoPtr<ASTInterfaceType> &interfaceType, const std::string &extendsI… in CheckExtendsName()
1982 … AutoPtr<ASTInterfaceType> &interfaceType, const std::string &extendsName, AutoPtr<AST> extendsAst) in CheckExtendsVersion()
1990 bool Parser::CheckImportsVersion(AutoPtr<AST> extendsAst) in CheckImportsVersion()
2005 AutoPtr<ASTNamespace> ns; in PostProcess()
2023 …return std::any_of(allAsts_.begin(), allAsts_.end(), [](const std::pair<std::string, AutoPtr<AST>>… in CheckExistExtends()
2051 void Parser::GetGenNamespace(AutoPtr<ASTNamespace> &ns) in GetGenNamespace()
2066 AutoPtr<AST> ast = astPair.second; in SortAstByName()
2074 AutoPtr<AST> targetAst = nullptr; in MergeAsts()
2082 void Parser::MergeAst(AutoPtr<AST> &targetAst, AutoPtr<AST> sourceAst) in MergeAst()
2095 void Parser::MergeImport(AutoPtr<AST> &targetAst, AutoPtr<AST> sourceAst) in MergeImport()
2098 AutoPtr<AST> importAst = importPair.second; in MergeImport()
2103 void Parser::MergeInterfaceDef(AutoPtr<AST> &targetAst, AutoPtr<AST> sourceAst) in MergeInterfaceDef()
2105 AutoPtr<ASTInterfaceType> sourceInterface = sourceAst->GetInterfaceDef(); in MergeInterfaceDef()
2109 AutoPtr<ASTInterfaceType> targetInterface = targetAst->GetInterfaceDef(); in MergeInterfaceDef()
2121 void Parser::MergeTypeDefinitions(AutoPtr<AST> &targetAst, AutoPtr<AST> sourceAst) in MergeTypeDefinitions()
2128 void Parser::MergeSequenceableDef(AutoPtr<AST> &targetAst, AutoPtr<AST> sourceAst) in MergeSequenceableDef()
2135 void Parser::MergeTypes(AutoPtr<AST> &targetAst, AutoPtr<AST> sourceAst) in MergeTypes()
2170 void Parser::ModifyInterfaceNamespace(AutoPtr<ASTNamespace> &ns) in ModifyInterfaceNamespace()
2173 AutoPtr<ASTInterfaceType> interface = astPair.second->GetInterfaceDef(); in ModifyInterfaceNamespace()