Lines Matching defs:token
99 void ParseAttrUnitFreezecontrol(AttrSet &attrs, Token &token);
106 void CheckInterfaceAttr(const AutoPtr<ASTInterfaceType> &interface, Token token);
128 void SetParamAttrVal(Token token, AutoPtr<ASTParamAttr> attr);
135 bool CheckBasicType(Token token);
149 bool CheckUserDefType(Token token);
202 bool CheckType(const Token &token, const AutoPtr<ASTType> &type);
204 bool CheckTypeByMode(const Token &token, const AutoPtr<ASTType> &type);
223 inline static bool IsPrimitiveType(Token token)
225 return token.kind >= TokenType::BOOLEAN && token.kind <= TokenType::ASHMEM;
235 void LogError(const char *funcName, int fileLine, const Token &token, const std::string &message)
238 funcName, fileLine, LocInfo(token).c_str(), message.c_str()));
241 void LogErrorBeforeToken(const char *funcName, int fileLine, const Token &token, const std::string &message)
243 errors_.push_back(StringHelper::Format("[%s:%d] [%s] error:%s before '%s' token",
244 funcName, fileLine, LocInfo(token).c_str(), message.c_str(), token.value.c_str()));