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

Method checkVariableDeclaration

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

Source from the content-addressed store, hash-verified

5758}
5759
5760func (c *Checker) checkVariableDeclaration(node *ast.Node) {
5761 if tr := c.tracer; tr != nil {
5762 defer tr.Push(tracing.PhaseCheck, "checkVariableDeclaration", map[string]any{"kind": node.Kind, "pos": node.Pos(), "end": node.End(), "path": ast.GetSourceFileOfNode(node).FileName()}, false)()
5763 }
5764 c.checkGrammarVariableDeclaration(node.AsVariableDeclaration())
5765 c.checkVariableLikeDeclaration(node)
5766}
5767
5768// Check variable, parameter, or property declaration
5769func (c *Checker) checkVariableLikeDeclaration(node *ast.Node) {

Callers 1

Calls 8

GetSourceFileOfNodeFunction · 0.92
AsVariableDeclarationMethod · 0.80
PosMethod · 0.65
EndMethod · 0.65
FileNameMethod · 0.65
PushMethod · 0.45

Tested by

no test coverage detected