Lines Matching defs:method
243 LogError(Token::IDENTIFIER, String::Format("\"%s\" is an illegal method property.",
277 void Parser::SetMethodAttr(ASTMethod* method, ASTType *returnType, bool oneway, bool cacheable, int cacheTime)
279 method->SetName(lexer_.GetIdentifier());
280 method->SetOneway(oneway);
281 method->SetReturnType(returnType);
283 method->SetCacheable(cacheTime);
334 bool Parser::ParseMethodBrackets(Token& token, ASTMethod* method, bool& ret)
336 if (method->IsOneway()) {
337 if (!method->GetReturnType()->IsVoidType()) {
338 LogError(token, String("void return type expected in oneway method."));
363 ret = ParseParameter(method) && ret;
390 AutoPtr<ASTMethod> method = new ASTMethod();
391 if (method == nullptr) {
392 LogError(token, String("method is nullptr."));
395 SetMethodAttr(method, type, oneway, cacheable, cacheTime);
396 if (!ParseMethodBrackets(token, method, ret)) {
400 if (interface->IsOneway() || method->IsOneway()) {
401 for (size_t i = 0; i< method->GetParameterNumber(); i++) {
402 auto parameter = method->GetParameter(i);
404 LogError(token, String("out parameter type not expected in oneway method."));
425 interface->AddMethod(method);
485 bool Parser::ParseParameter(ASTMethod* method)
529 method->AddParameter(parameter);