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

Method checkStrictModeFunctionName

internal/binder/binder.go:1372–1377  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

1370}
1371
1372func (b *Binder) checkStrictModeFunctionName(node *ast.Node) {
1373 if node.Flags&ast.NodeFlagsAmbient == 0 {
1374 // It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a strict mode FunctionDeclaration or FunctionExpression (13.1))
1375 b.checkStrictModeEvalOrArguments(node, node.Name())
1376 }
1377}
1378
1379func (b *Binder) getStrictModeBlockScopeFunctionDeclarationMessage(node *ast.Node) *diagnostics.Message {
1380 // Provide specialized messages to help the user understand why we think they're in strict mode.

Callers 2

Calls 2

NameMethod · 0.65

Tested by

no test coverage detected