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

Method QuestionDotToken

internal/ast/ast.go:1109–1121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1107}
1108
1109func (n *Node) QuestionDotToken() *Node {
1110 switch n.Kind {
1111 case KindElementAccessExpression:
1112 return n.AsElementAccessExpression().QuestionDotToken
1113 case KindPropertyAccessExpression:
1114 return n.AsPropertyAccessExpression().QuestionDotToken
1115 case KindCallExpression:
1116 return n.AsCallExpression().QuestionDotToken
1117 case KindTaggedTemplateExpression:
1118 return n.AsTaggedTemplateExpression().QuestionDotToken
1119 }
1120 panic("Unhandled case in Node.QuestionDotToken: " + n.Kind.String())
1121}
1122
1123func (n *Node) TypeExpression() *Node {
1124 switch n.Kind {

Callers 5

createCompletionItemMethod · 0.80
checkCallExpressionMethod · 0.80
flattenChainFunction · 0.80
getQuestionDotTokenFunction · 0.80
bindOptionalChainRestMethod · 0.80

Calls 6

AsCallExpressionMethod · 0.95
panicFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected