MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / fieldsFor

Method fieldsFor

tools/ipc_codegen/ipc_codegen.cpp:994–1005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992 }
993
994 static std::vector<Field> fieldsFor(const Method& method, Dir direction, bool includeReturn) {
995 std::vector<Field> fields;
996 if (includeReturn && method.retType != "void") {
997 Field result;
998 result.type = method.retType;
999 result.name = "returnValue";
1000 fields.push_back(result);
1001 }
1002 for (const auto& field : method.params)
1003 if (field.dir == direction) fields.push_back(field);
1004 return fields;
1005 }
1006
1007 static std::vector<std::string> externalRefs(const Method& method,
1008 const std::vector<Field>& fields) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected