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

Method makeSatisfiesExpression

internal/parser/parser.go:4661–4663  ·  view source on GitHub ↗
(expression *ast.Expression, typeNode *ast.TypeNode)

Source from the content-addressed store, hash-verified

4659}
4660
4661func (p *Parser) makeSatisfiesExpression(expression *ast.Expression, typeNode *ast.TypeNode) *ast.Node {
4662 return p.checkJSSyntax(p.finishNode(p.factory.NewSatisfiesExpression(expression, typeNode), expression.Pos()))
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()))

Callers 1

Calls 4

checkJSSyntaxMethod · 0.95
finishNodeMethod · 0.95
PosMethod · 0.65

Tested by

no test coverage detected