Lines Matching refs:AutoPtr
39 bool operator()(const AutoPtr<AST> &lhs, const AutoPtr<AST> &rhs) const
44 using AstMergeMap = std::map<std::string, std::set<AutoPtr<AST>, AstCompare>>;
53 using StrAstMap = std::unordered_map<std::string, AutoPtr<AST>>;
104 AutoPtr<ASTAttr> ParseInfAttrInfo(const AttrSet &attrs);
106 void CheckInterfaceAttr(const AutoPtr<ASTInterfaceType> &interface, Token token);
108 void ParseInterfaceExternal(const AutoPtr<ASTInterfaceType> &interface);
110 void ParseInterfaceBody(const AutoPtr<ASTInterfaceType> &interface);
112 AutoPtr<ASTMethod> ParseMethod(const AutoPtr<ASTInterfaceType> &interface);
114 AutoPtr<ASTType> ParseMethodReturnType();
116 AutoPtr<ASTAttr> ParseMethodAttr();
118 AutoPtr<ASTMethod> CreateGetVersionMethod();
120 void CheckMethodAttr(const AutoPtr<ASTInterfaceType> &interface, const AutoPtr<ASTMethod> &method);
122 void ParseMethodParamList(const AutoPtr<ASTMethod> &method);
124 AutoPtr<ASTParameter> ParseParam();
128 void SetParamAttrVal(Token token, AutoPtr<ASTParamAttr> attr);
130 AutoPtr<ASTParamAttr> ParseParamAttr();
133 AutoPtr<ASTType> ParseType();
137 AutoPtr<ASTType> ParseBasicType();
139 AutoPtr<ASTType> ParseUnsignedType();
141 AutoPtr<ASTType> ParseArrayType(const AutoPtr<ASTType> &elementType);
143 AutoPtr<ASTType> ParseListType();
145 AutoPtr<ASTType> ParseMapType();
147 AutoPtr<ASTType> ParseSmqType();
151 AutoPtr<ASTType> ParseUserDefType();
156 AutoPtr<ASTType> ParseEnumBaseType();
158 void ParserEnumMember(const AutoPtr<ASTEnumType> &enumType);
163 AutoPtr<ASTStructType> ParseStructParentType();
165 void ParseStructMember(const AutoPtr<ASTStructType> &structType);
170 void ParseUnionMember(const AutoPtr<ASTUnionType> &unionType);
173 const AutoPtr<ASTUnionType> &unionType, const AutoPtr<ASTType> &type, const std::string &name) const;
175 AutoPtr<ASTAttr> ParseUserDefTypeAttr(const AttrSet &attrs);
178 AutoPtr<ASTExpr> ParseExpr();
180 AutoPtr<ASTExpr> ParseAndExpr();
182 AutoPtr<ASTExpr> ParseXorExpr();
184 AutoPtr<ASTExpr> ParseOrExpr();
186 AutoPtr<ASTExpr> ParseShiftExpr();
188 AutoPtr<ASTExpr> ParseAddExpr();
190 AutoPtr<ASTExpr> ParseMulExpr();
192 AutoPtr<ASTExpr> ParseUnaryExpr();
194 AutoPtr<ASTExpr> ParsePrimaryExpr();
196 AutoPtr<ASTExpr> ParseNumExpr();
198 AutoPtr<ASTExpr> ParseEnumExpr();
202 bool CheckType(const Token &token, const AutoPtr<ASTType> &type);
204 bool CheckTypeByMode(const Token &token, const AutoPtr<ASTType> &type);
212 void ParseInterfaceExtends(AutoPtr<ASTInterfaceType> &interface);
214 void ParseExtendsInfo(AutoPtr<ASTInterfaceType> &interfaceType);
216 bool CheckExtendsName(AutoPtr<ASTInterfaceType> &interfaceType, const std::string &extendsName);
219 AutoPtr<ASTInterfaceType> &interfaceType, const std::string &extendsName, AutoPtr<AST> extendsAst);
221 bool CheckImportsVersion(AutoPtr<AST> extendsAst);
228 bool AddAst(const AutoPtr<AST> &ast);
255 void GetGenNamespace(AutoPtr<ASTNamespace> &ns);
261 void MergeAst(AutoPtr<AST> &targetAst, AutoPtr<AST> sourceAst);
263 void MergeImport(AutoPtr<AST> &targetAst, AutoPtr<AST> sourceAst);
265 void MergeInterfaceDef(AutoPtr<AST> &targetAst, AutoPtr<AST> sourceAst);
267 void MergeTypes(AutoPtr<AST> &targetAst, AutoPtr<AST> sourceAst);
269 void MergeSequenceableDef(AutoPtr<AST> &targetAst, AutoPtr<AST> sourceAst);
271 void MergeTypeDefinitions(AutoPtr<AST> &targetAst, AutoPtr<AST> sourceAst);
277 void ModifyInterfaceNamespace(AutoPtr<ASTNamespace> &ns);
281 AutoPtr<AST> ast_;