Lines Matching refs:node
33 export function isNewOrCallExpression(node: ts.Node): boolean {
34 return node.kind === ts.SyntaxKind.NewExpression || node.kind === ts.SyntaxKind.CallExpression;
37 export function stringLiteralIsInRegExp(node: ts.Node): boolean {
38 let parent = node.parent;
73 export function isEvalOrArgumentsIdentifier(node: ts.Node): boolean {
74 …return ts.isIdentifier(node) && (node.escapedText === "eval" || node.escapedText === MandatoryArgu…
113 export function isLeftHandSideExpression(node: ts.Node): boolean {
114 return isLeftHandSideExpressionKind(ts.skipPartiallyEmittedExpressions(node).kind);
121 export function isOriginalKeyword(node: ts.Identifier): boolean {
122 if (node.originalKeywordKind! >= ts.SyntaxKind.FirstFutureReservedWord &&
123 node.originalKeywordKind! <= ts.SyntaxKind.LastFutureReservedWord) {
130 export function isFunctionLikeDeclaration(node: ts.Node): node is ts.FunctionLikeDeclaration {
131 if (!node) {
135 switch (node.kind) {
149 export function allowLetAndConstDeclarations(node: ts.Node): boolean {
150 if (!node) {
154 switch (node.kind) {
164 return allowLetAndConstDeclarations(node.parent);
182 export function isBindingPattern(node: ts.Node | undefined): boolean {
183 if (!node) {
187 switch (node.kind) {
220 export function isInBlockScope(node: ts.Node): boolean {
221 switch (node.kind) {
255 export function isOptionalParameter(node: ts.ParameterDeclaration): boolean {
256 if (jshelpers.hasQuestionToken(node)) {
260 if (!node.parent || !node.parent.parent) {
264 let iife = jshelpers.getImmediatelyInvokedFunctionExpression(node.parent);
266 …return !node.type && !node.dotDotDotToken && node.parent.parameters.indexOf(node) >= iife.argument…