buildClassifierInput function presentation ✓ 100.0%

Last updated: 2026-03-01T23:25:47.102Z

Metrics

LOC: 7 Complexity: 2 Params: 1 Coverage: 100.0% (1/1 lines, 12x executed)

Signature

buildClassifierInput(field: FormField): : FieldClassifierInput

Summary

Extracts FieldClassifierInput from a live DOM FormField.

Source Code

function buildClassifierInput(field: FormField): FieldClassifierInput {
  return {
    elementHtml: field.element.outerHTML,
    contextHtml: getContextHtml(field.element as HTMLElement) ?? undefined,
    signals: field.contextSignals,
  };
}

Dependencies (Outgoing)

graph LR buildClassifierInput["buildClassifierInput"] getContextHtml["getContextHtml"] buildClassifierInput -->|calls| getContextHtml style buildClassifierInput fill:#dbeafe,stroke:#2563eb,stroke-width:2px click buildClassifierInput "48b9b13d289a7b63.html" click getContextHtml "765515d6b3d443b6.html"
TargetType
getContextHtml calls

Impact (Incoming)

graph LR buildClassifierInput["buildClassifierInput"] detectAsync["detectAsync"] detectAsync -->|calls| buildClassifierInput style buildClassifierInput fill:#dbeafe,stroke:#2563eb,stroke-width:2px click buildClassifierInput "48b9b13d289a7b63.html" click detectAsync "25ab12b02ee66faf.html"
SourceType
detectAsync calls