Lines Matching refs:method
35 static std::string getSanitizedMethodName(const Method& method) { in getSanitizedMethodName() argument
36 size_t underscore = method.name().find('_'); in getSanitizedMethodName()
37 return (underscore == std::string::npos) ? method.name() : method.name().substr(0, underscore); in getSanitizedMethodName()
40 static bool checkMethodVersion(const Method& method, const FQName& fqName, std::string* error) { in checkMethodVersion() argument
41 size_t underscore = method.name().find('_'); in checkMethodVersion()
44 std::string version = method.name().substr(underscore + 1); // don't include _ in checkMethodVersion()
45 std::string nameWithoutVersion = method.name().substr(0, underscore); in checkMethodVersion()
83 *error = method.name() + " looks like version "s + std::to_string(major) + "."s + in checkMethodVersion()
84 std::to_string(minor) + " of "s + getSanitizedMethodName(method) + in checkMethodVersion()
96 for (Method* method : iface->userDefinedMethods()) { in methodVersions()
97 if (method->name().find('_') == std::string::npos) { in methodVersions()
98 if (method->name() != StringHelper::ToCamelCase(method->name())) { in methodVersions()
99 errors->push_back(Lint(WARNING, method->location(), in methodVersions()
108 if (checkMethodVersion(*method, ast.package(), &errorString)) { in methodVersions()
110 std::string methodName = getSanitizedMethodName(*method); in methodVersions()
125 errors->push_back(Lint(WARNING, method->location()) in methodVersions()
132 errors->push_back(Lint(WARNING, method->location()) << errorString << "\n"); in methodVersions()