MCPcopy Create free account
hub / github.com/microsoft/typescript-go / shouldCheckErasableSyntax

Method shouldCheckErasableSyntax

internal/checker/checker.go:2638–2640  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

2636}
2637
2638func (c *Checker) shouldCheckErasableSyntax(node *ast.Node) bool {
2639 return c.compilerOptions.ErasableSyntaxOnly.IsTrue() && !ast.IsInJSFile(node)
2640}
2641
2642func (c *Checker) checkParameter(node *ast.Node) {
2643 // Grammar checking

Callers 6

checkParameterMethod · 0.95
checkEnumDeclarationMethod · 0.95
checkExportAssignmentMethod · 0.95
checkAssertionMethod · 0.95

Calls 2

IsInJSFileFunction · 0.92
IsTrueMethod · 0.80

Tested by

no test coverage detected