Skip to content
callcount

github.com/microsoft/typescript-go/internal/ast.Node.AsSourceFile

third-party

The 5346th most-called third-party method by production calls. Called 174 times across 1 modules; 110 of those run outside tests and generated code.

All of github.com/microsoft/typescript-go/internal/ast → Docs on pkg.go.dev ↗

prod calls
110
non-test, non-generated
all calls
174
total callsites
modules
1
distinct callers
in loop
10%
of prod calls
in tests
37%
64 calls
resolved
100%
to a known target

resolution mix

How each call resolves

How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →

  • Concrete method98%A method on a value whose type is known exactly.
  • Embedded method2%Reached through an embedded type.

where it's called

Callsites in the wild

12 representative callsites of 174, prioritizing in-loop and non-test usage. We link to source, never display it.

Node.AsSourceFile · 12 of 174 callsites

top callers

The modules that reach for it

The modules that call Node.AsSourceFile most in this snapshot.

  • github.com/microsoft/typescript-go174100%

siblings

More from github.com/microsoft/typescript-go/internal/ast

The other most-called members in this package. See all →