MCPcopy Index your code
hub / github.com/microsoft/typescript-go / makeAsExpression

Method makeAsExpression

internal/parser/parser.go:4665–4667  ·  view source on GitHub ↗
(left *ast.Expression, right *ast.TypeNode)

Source from the content-addressed store, hash-verified

4663}
4664
4665func (p *Parser) makeAsExpression(left *ast.Expression, right *ast.TypeNode) *ast.Node {
4666 return p.checkJSSyntax(p.finishNode(p.factory.NewAsExpression(left, right), left.Pos()))
4667}
4668
4669func (p *Parser) makeBinaryExpression(left *ast.Expression, operatorToken *ast.Node, right *ast.Expression, pos int) *ast.Node {
4670 return p.finishNode(p.factory.NewBinaryExpression(nil /*modifiers*/, left, nil /*typeNode*/, operatorToken, right), pos)

Callers 1

Calls 4

checkJSSyntaxMethod · 0.95
finishNodeMethod · 0.95
NewAsExpressionMethod · 0.80
PosMethod · 0.65

Tested by

no test coverage detected