MCPcopy Index your code
hub / github.com/coder/coder / logEvent

Function logEvent

site/scripts/check-compiler.mjs:138–146  ·  view source on GitHub ↗
(_filename, event)

Source from the content-addressed store, hash-verified

136 ["babel-plugin-react-compiler", {
137 logger: {
138 logEvent(_filename, event) {
139 if (event.kind === "CompileError" || event.kind === "CompileSkip") {
140 const msg = event.detail || event.reason || "(unknown)";
141 diagnostics.push({
142 line: event.fnLoc?.start?.line ?? 0,
143 short: shortenMessage(msg),
144 });
145 }
146 },
147 },
148 }],
149 ],

Callers

nothing calls this directly

Calls 2

shortenMessageFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected