mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Merge pull request #21680 from cameron-martin/babel-traverse-type-guards
[babel-traverse] [babel-types] Made most isXXX methods in babel-traverse be type guards.
This commit is contained in:
Vendored
+178
-178
@@ -600,185 +600,185 @@ export class NodePath<T = Node> {
|
||||
addComments(type: string, comments: any[]): void;
|
||||
|
||||
// ------------------------- isXXX -------------------------
|
||||
isArrayExpression(opts?: object): boolean;
|
||||
isAssignmentExpression(opts?: object): boolean;
|
||||
isBinaryExpression(opts?: object): boolean;
|
||||
isDirective(opts?: object): boolean;
|
||||
isDirectiveLiteral(opts?: object): boolean;
|
||||
isBlockStatement(opts?: object): boolean;
|
||||
isBreakStatement(opts?: object): boolean;
|
||||
isCallExpression(opts?: object): boolean;
|
||||
isCatchClause(opts?: object): boolean;
|
||||
isConditionalExpression(opts?: object): boolean;
|
||||
isContinueStatement(opts?: object): boolean;
|
||||
isDebuggerStatement(opts?: object): boolean;
|
||||
isDoWhileStatement(opts?: object): boolean;
|
||||
isEmptyStatement(opts?: object): boolean;
|
||||
isExpressionStatement(opts?: object): boolean;
|
||||
isFile(opts?: object): boolean;
|
||||
isForInStatement(opts?: object): boolean;
|
||||
isForStatement(opts?: object): boolean;
|
||||
isFunctionDeclaration(opts?: object): boolean;
|
||||
isFunctionExpression(opts?: object): boolean;
|
||||
isIdentifier(opts?: object): boolean;
|
||||
isIfStatement(opts?: object): boolean;
|
||||
isLabeledStatement(opts?: object): boolean;
|
||||
isStringLiteral(opts?: object): boolean;
|
||||
isNumericLiteral(opts?: object): boolean;
|
||||
isNullLiteral(opts?: object): boolean;
|
||||
isBooleanLiteral(opts?: object): boolean;
|
||||
isRegExpLiteral(opts?: object): boolean;
|
||||
isLogicalExpression(opts?: object): boolean;
|
||||
isMemberExpression(opts?: object): boolean;
|
||||
isNewExpression(opts?: object): boolean;
|
||||
isProgram(opts?: object): boolean;
|
||||
isObjectExpression(opts?: object): boolean;
|
||||
isObjectMethod(opts?: object): boolean;
|
||||
isObjectProperty(opts?: object): boolean;
|
||||
isRestElement(opts?: object): boolean;
|
||||
isReturnStatement(opts?: object): boolean;
|
||||
isSequenceExpression(opts?: object): boolean;
|
||||
isSwitchCase(opts?: object): boolean;
|
||||
isSwitchStatement(opts?: object): boolean;
|
||||
isThisExpression(opts?: object): boolean;
|
||||
isThrowStatement(opts?: object): boolean;
|
||||
isTryStatement(opts?: object): boolean;
|
||||
isUnaryExpression(opts?: object): boolean;
|
||||
isUpdateExpression(opts?: object): boolean;
|
||||
isVariableDeclaration(opts?: object): boolean;
|
||||
isVariableDeclarator(opts?: object): boolean;
|
||||
isWhileStatement(opts?: object): boolean;
|
||||
isWithStatement(opts?: object): boolean;
|
||||
isAssignmentPattern(opts?: object): boolean;
|
||||
isArrayPattern(opts?: object): boolean;
|
||||
isArrowFunctionExpression(opts?: object): boolean;
|
||||
isClassBody(opts?: object): boolean;
|
||||
isClassDeclaration(opts?: object): boolean;
|
||||
isClassExpression(opts?: object): boolean;
|
||||
isExportAllDeclaration(opts?: object): boolean;
|
||||
isExportDefaultDeclaration(opts?: object): boolean;
|
||||
isExportNamedDeclaration(opts?: object): boolean;
|
||||
isExportSpecifier(opts?: object): boolean;
|
||||
isForOfStatement(opts?: object): boolean;
|
||||
isImportDeclaration(opts?: object): boolean;
|
||||
isImportDefaultSpecifier(opts?: object): boolean;
|
||||
isImportNamespaceSpecifier(opts?: object): boolean;
|
||||
isImportSpecifier(opts?: object): boolean;
|
||||
isMetaProperty(opts?: object): boolean;
|
||||
isClassMethod(opts?: object): boolean;
|
||||
isObjectPattern(opts?: object): boolean;
|
||||
isSpreadElement(opts?: object): boolean;
|
||||
isSuper(opts?: object): boolean;
|
||||
isTaggedTemplateExpression(opts?: object): boolean;
|
||||
isTemplateElement(opts?: object): boolean;
|
||||
isTemplateLiteral(opts?: object): boolean;
|
||||
isYieldExpression(opts?: object): boolean;
|
||||
isAnyTypeAnnotation(opts?: object): boolean;
|
||||
isArrayTypeAnnotation(opts?: object): boolean;
|
||||
isBooleanTypeAnnotation(opts?: object): boolean;
|
||||
isBooleanLiteralTypeAnnotation(opts?: object): boolean;
|
||||
isNullLiteralTypeAnnotation(opts?: object): boolean;
|
||||
isClassImplements(opts?: object): boolean;
|
||||
isClassProperty(opts?: object): boolean;
|
||||
isDeclareClass(opts?: object): boolean;
|
||||
isDeclareFunction(opts?: object): boolean;
|
||||
isDeclareInterface(opts?: object): boolean;
|
||||
isDeclareModule(opts?: object): boolean;
|
||||
isDeclareTypeAlias(opts?: object): boolean;
|
||||
isDeclareVariable(opts?: object): boolean;
|
||||
isExistentialTypeParam(opts?: object): boolean;
|
||||
isFunctionTypeAnnotation(opts?: object): boolean;
|
||||
isFunctionTypeParam(opts?: object): boolean;
|
||||
isGenericTypeAnnotation(opts?: object): boolean;
|
||||
isInterfaceExtends(opts?: object): boolean;
|
||||
isInterfaceDeclaration(opts?: object): boolean;
|
||||
isIntersectionTypeAnnotation(opts?: object): boolean;
|
||||
isMixedTypeAnnotation(opts?: object): boolean;
|
||||
isNullableTypeAnnotation(opts?: object): boolean;
|
||||
isNumericLiteralTypeAnnotation(opts?: object): boolean;
|
||||
isNumberTypeAnnotation(opts?: object): boolean;
|
||||
isStringLiteralTypeAnnotation(opts?: object): boolean;
|
||||
isStringTypeAnnotation(opts?: object): boolean;
|
||||
isThisTypeAnnotation(opts?: object): boolean;
|
||||
isTupleTypeAnnotation(opts?: object): boolean;
|
||||
isTypeofTypeAnnotation(opts?: object): boolean;
|
||||
isTypeAlias(opts?: object): boolean;
|
||||
isTypeAnnotation(opts?: object): boolean;
|
||||
isTypeCastExpression(opts?: object): boolean;
|
||||
isTypeParameterDeclaration(opts?: object): boolean;
|
||||
isTypeParameterInstantiation(opts?: object): boolean;
|
||||
isObjectTypeAnnotation(opts?: object): boolean;
|
||||
isObjectTypeCallProperty(opts?: object): boolean;
|
||||
isObjectTypeIndexer(opts?: object): boolean;
|
||||
isObjectTypeProperty(opts?: object): boolean;
|
||||
isQualifiedTypeIdentifier(opts?: object): boolean;
|
||||
isUnionTypeAnnotation(opts?: object): boolean;
|
||||
isVoidTypeAnnotation(opts?: object): boolean;
|
||||
isJSXAttribute(opts?: object): boolean;
|
||||
isJSXClosingElement(opts?: object): boolean;
|
||||
isJSXElement(opts?: object): boolean;
|
||||
isJSXEmptyExpression(opts?: object): boolean;
|
||||
isJSXExpressionContainer(opts?: object): boolean;
|
||||
isJSXIdentifier(opts?: object): boolean;
|
||||
isJSXMemberExpression(opts?: object): boolean;
|
||||
isJSXNamespacedName(opts?: object): boolean;
|
||||
isJSXOpeningElement(opts?: object): boolean;
|
||||
isJSXSpreadAttribute(opts?: object): boolean;
|
||||
isJSXText(opts?: object): boolean;
|
||||
isNoop(opts?: object): boolean;
|
||||
isParenthesizedExpression(opts?: object): boolean;
|
||||
isAwaitExpression(opts?: object): boolean;
|
||||
isBindExpression(opts?: object): boolean;
|
||||
isDecorator(opts?: object): boolean;
|
||||
isDoExpression(opts?: object): boolean;
|
||||
isExportDefaultSpecifier(opts?: object): boolean;
|
||||
isExportNamespaceSpecifier(opts?: object): boolean;
|
||||
isRestProperty(opts?: object): boolean;
|
||||
isSpreadProperty(opts?: object): boolean;
|
||||
isExpression(opts?: object): boolean;
|
||||
isBinary(opts?: object): boolean;
|
||||
isScopable(opts?: object): boolean;
|
||||
isBlockParent(opts?: object): boolean;
|
||||
isBlock(opts?: object): boolean;
|
||||
isStatement(opts?: object): boolean;
|
||||
isTerminatorless(opts?: object): boolean;
|
||||
isCompletionStatement(opts?: object): boolean;
|
||||
isConditional(opts?: object): boolean;
|
||||
isLoop(opts?: object): boolean;
|
||||
isWhile(opts?: object): boolean;
|
||||
isExpressionWrapper(opts?: object): boolean;
|
||||
isFor(opts?: object): boolean;
|
||||
isForXStatement(opts?: object): boolean;
|
||||
isFunction(opts?: object): boolean;
|
||||
isFunctionParent(opts?: object): boolean;
|
||||
isPureish(opts?: object): boolean;
|
||||
isDeclaration(opts?: object): boolean;
|
||||
isLVal(opts?: object): boolean;
|
||||
isLiteral(opts?: object): boolean;
|
||||
isImmutable(opts?: object): boolean;
|
||||
isUserWhitespacable(opts?: object): boolean;
|
||||
isMethod(opts?: object): boolean;
|
||||
isObjectMember(opts?: object): boolean;
|
||||
isProperty(opts?: object): boolean;
|
||||
isUnaryLike(opts?: object): boolean;
|
||||
isPattern(opts?: object): boolean;
|
||||
isClass(opts?: object): boolean;
|
||||
isModuleDeclaration(opts?: object): boolean;
|
||||
isExportDeclaration(opts?: object): boolean;
|
||||
isModuleSpecifier(opts?: object): boolean;
|
||||
isFlow(opts?: object): boolean;
|
||||
isFlowBaseAnnotation(opts?: object): boolean;
|
||||
isFlowDeclaration(opts?: object): boolean;
|
||||
isJSX(opts?: object): boolean;
|
||||
isNumberLiteral(opts?: object): boolean;
|
||||
isRegexLiteral(opts?: object): boolean;
|
||||
isReferencedIdentifier(opts?: object): boolean;
|
||||
isReferencedMemberExpression(opts?: object): boolean;
|
||||
isBindingIdentifier(opts?: object): boolean;
|
||||
isScope(opts?: object): boolean;
|
||||
isArrayExpression(opts?: object): this is NodePath<t.ArrayExpression> ;
|
||||
isAssignmentExpression(opts?: object): this is NodePath<t.AssignmentExpression>;
|
||||
isBinaryExpression(opts?: object): this is NodePath<t.BinaryExpression>;
|
||||
isDirective(opts?: object): this is NodePath<t.Directive>;
|
||||
isDirectiveLiteral(opts?: object): this is NodePath<t.DirectiveLiteral>;
|
||||
isBlockStatement(opts?: object): this is NodePath<t.BlockStatement>;
|
||||
isBreakStatement(opts?: object): this is NodePath<t.BreakStatement>;
|
||||
isCallExpression(opts?: object): this is NodePath<t.CallExpression>;
|
||||
isCatchClause(opts?: object): this is NodePath<t.CatchClause>;
|
||||
isConditionalExpression(opts?: object): this is NodePath<t.ConditionalExpression>;
|
||||
isContinueStatement(opts?: object): this is NodePath<t.ContinueStatement>;
|
||||
isDebuggerStatement(opts?: object): this is NodePath<t.DebuggerStatement>;
|
||||
isDoWhileStatement(opts?: object): this is NodePath<t.DoWhileStatement>;
|
||||
isEmptyStatement(opts?: object): this is NodePath<t.EmptyStatement>;
|
||||
isExpressionStatement(opts?: object): this is NodePath<t.ExpressionStatement>;
|
||||
isFile(opts?: object): this is NodePath<t.File>;
|
||||
isForInStatement(opts?: object): this is NodePath<t.ForInStatement>;
|
||||
isForStatement(opts?: object): this is NodePath<t.ForStatement>;
|
||||
isFunctionDeclaration(opts?: object): this is NodePath<t.FunctionDeclaration>;
|
||||
isFunctionExpression(opts?: object): this is NodePath<t.FunctionExpression>;
|
||||
isIdentifier(opts?: object): this is NodePath<t.Identifier>;
|
||||
isIfStatement(opts?: object): this is NodePath<t.IfStatement>;
|
||||
isLabeledStatement(opts?: object): this is NodePath<t.LabeledStatement>;
|
||||
isStringLiteral(opts?: object): this is NodePath<t.StringLiteral>;
|
||||
isNumericLiteral(opts?: object): this is NodePath<t.NumericLiteral>;
|
||||
isNullLiteral(opts?: object): this is NodePath<t.NullLiteral>;
|
||||
isBooleanLiteral(opts?: object): this is NodePath<t.BooleanLiteral>;
|
||||
isRegExpLiteral(opts?: object): this is NodePath<t.RegExpLiteral>;
|
||||
isLogicalExpression(opts?: object): this is NodePath<t.LogicalExpression>;
|
||||
isMemberExpression(opts?: object): this is NodePath<t.MemberExpression>;
|
||||
isNewExpression(opts?: object): this is NodePath<t.NewExpression>;
|
||||
isProgram(opts?: object): this is NodePath<t.Program>;
|
||||
isObjectExpression(opts?: object): this is NodePath<t.ObjectExpression>;
|
||||
isObjectMethod(opts?: object): this is NodePath<t.ObjectMethod>;
|
||||
isObjectProperty(opts?: object): this is NodePath<t.ObjectProperty>;
|
||||
isRestElement(opts?: object): this is NodePath<t.RestElement>;
|
||||
isReturnStatement(opts?: object): this is NodePath<t.ReturnStatement>;
|
||||
isSequenceExpression(opts?: object): this is NodePath<t.SequenceExpression>;
|
||||
isSwitchCase(opts?: object): this is NodePath<t.SwitchCase>;
|
||||
isSwitchStatement(opts?: object): this is NodePath<t.SwitchStatement>;
|
||||
isThisExpression(opts?: object): this is NodePath<t.ThisExpression>;
|
||||
isThrowStatement(opts?: object): this is NodePath<t.ThrowStatement>;
|
||||
isTryStatement(opts?: object): this is NodePath<t.TryStatement>;
|
||||
isUnaryExpression(opts?: object): this is NodePath<t.UnaryExpression>;
|
||||
isUpdateExpression(opts?: object): this is NodePath<t.UpdateExpression>;
|
||||
isVariableDeclaration(opts?: object): this is NodePath<t.VariableDeclaration>;
|
||||
isVariableDeclarator(opts?: object): this is NodePath<t.VariableDeclarator>;
|
||||
isWhileStatement(opts?: object): this is NodePath<t.WhileStatement>;
|
||||
isWithStatement(opts?: object): this is NodePath<t.WithStatement>;
|
||||
isAssignmentPattern(opts?: object): this is NodePath<t.AssignmentPattern>;
|
||||
isArrayPattern(opts?: object): this is NodePath<t.ArrayPattern>;
|
||||
isArrowFunctionExpression(opts?: object): this is NodePath<t.ArrowFunctionExpression>;
|
||||
isClassBody(opts?: object): this is NodePath<t.ClassBody>;
|
||||
isClassDeclaration(opts?: object): this is NodePath<t.ClassDeclaration>;
|
||||
isClassExpression(opts?: object): this is NodePath<t.ClassExpression>;
|
||||
isExportAllDeclaration(opts?: object): this is NodePath<t.ExportAllDeclaration>;
|
||||
isExportDefaultDeclaration(opts?: object): this is NodePath<t.ExportDefaultDeclaration>;
|
||||
isExportNamedDeclaration(opts?: object): this is NodePath<t.ExportNamedDeclaration>;
|
||||
isExportSpecifier(opts?: object): this is NodePath<t.ExportSpecifier>;
|
||||
isForOfStatement(opts?: object): this is NodePath<t.ForOfStatement>;
|
||||
isImportDeclaration(opts?: object): this is NodePath<t.ImportDeclaration>;
|
||||
isImportDefaultSpecifier(opts?: object): this is NodePath<t.ImportDefaultSpecifier>;
|
||||
isImportNamespaceSpecifier(opts?: object): this is NodePath<t.ImportNamespaceSpecifier>;
|
||||
isImportSpecifier(opts?: object): this is NodePath<t.ImportSpecifier>;
|
||||
isMetaProperty(opts?: object): this is NodePath<t.MetaProperty>;
|
||||
isClassMethod(opts?: object): this is NodePath<t.ClassMethod>;
|
||||
isObjectPattern(opts?: object): this is NodePath<t.ObjectPattern>;
|
||||
isSpreadElement(opts?: object): this is NodePath<t.SpreadElement>;
|
||||
isSuper(opts?: object): this is NodePath<t.Super>;
|
||||
isTaggedTemplateExpression(opts?: object): this is NodePath<t.TaggedTemplateExpression>;
|
||||
isTemplateElement(opts?: object): this is NodePath<t.TemplateElement>;
|
||||
isTemplateLiteral(opts?: object): this is NodePath<t.TemplateLiteral>;
|
||||
isYieldExpression(opts?: object): this is NodePath<t.YieldExpression>;
|
||||
isAnyTypeAnnotation(opts?: object): this is NodePath<t.AnyTypeAnnotation>;
|
||||
isArrayTypeAnnotation(opts?: object): this is NodePath<t.ArrayTypeAnnotation>;
|
||||
isBooleanTypeAnnotation(opts?: object): this is NodePath<t.BooleanTypeAnnotation>;
|
||||
isBooleanLiteralTypeAnnotation(opts?: object): this is NodePath<t.BooleanLiteralTypeAnnotation>;
|
||||
isNullLiteralTypeAnnotation(opts?: object): this is NodePath<t.NullLiteralTypeAnnotation>;
|
||||
isClassImplements(opts?: object): this is NodePath<t.ClassImplements>;
|
||||
isClassProperty(opts?: object): this is NodePath<t.ClassProperty>;
|
||||
isDeclareClass(opts?: object): this is NodePath<t.DeclareClass>;
|
||||
isDeclareFunction(opts?: object): this is NodePath<t.DeclareFunction>;
|
||||
isDeclareInterface(opts?: object): this is NodePath<t.DeclareInterface>;
|
||||
isDeclareModule(opts?: object): this is NodePath<t.DeclareModule>;
|
||||
isDeclareTypeAlias(opts?: object): this is NodePath<t.DeclareTypeAlias>;
|
||||
isDeclareVariable(opts?: object): this is NodePath<t.DeclareVariable>;
|
||||
isExistentialTypeParam(opts?: object): this is NodePath<t.ExistentialTypeParam>;
|
||||
isFunctionTypeAnnotation(opts?: object): this is NodePath<t.FunctionTypeAnnotation>;
|
||||
isFunctionTypeParam(opts?: object): this is NodePath<t.FunctionTypeParam>;
|
||||
isGenericTypeAnnotation(opts?: object): this is NodePath<t.GenericTypeAnnotation>;
|
||||
isInterfaceExtends(opts?: object): this is NodePath<t.InterfaceExtends>;
|
||||
isInterfaceDeclaration(opts?: object): this is NodePath<t.InterfaceDeclaration>;
|
||||
isIntersectionTypeAnnotation(opts?: object): this is NodePath<t.IntersectionTypeAnnotation>;
|
||||
isMixedTypeAnnotation(opts?: object): this is NodePath<t.MixedTypeAnnotation>;
|
||||
isNullableTypeAnnotation(opts?: object): this is NodePath<t.NullableTypeAnnotation>;
|
||||
isNumericLiteralTypeAnnotation(opts?: object): this is NodePath<t.NumericLiteralTypeAnnotation>;
|
||||
isNumberTypeAnnotation(opts?: object): this is NodePath<t.NumberTypeAnnotation>;
|
||||
isStringLiteralTypeAnnotation(opts?: object): this is NodePath<t.StringLiteralTypeAnnotation>;
|
||||
isStringTypeAnnotation(opts?: object): this is NodePath<t.StringTypeAnnotation>;
|
||||
isThisTypeAnnotation(opts?: object): this is NodePath<t.ThisTypeAnnotation>;
|
||||
isTupleTypeAnnotation(opts?: object): this is NodePath<t.TupleTypeAnnotation>;
|
||||
isTypeofTypeAnnotation(opts?: object): this is NodePath<t.TypeofTypeAnnotation>;
|
||||
isTypeAlias(opts?: object): this is NodePath<t.TypeAlias>;
|
||||
isTypeAnnotation(opts?: object): this is NodePath<t.TypeAnnotation>;
|
||||
isTypeCastExpression(opts?: object): this is NodePath<t.TypeCastExpression>;
|
||||
isTypeParameterDeclaration(opts?: object): this is NodePath<t.TypeParameterDeclaration>;
|
||||
isTypeParameterInstantiation(opts?: object): this is NodePath<t.TypeParameterInstantiation>;
|
||||
isObjectTypeAnnotation(opts?: object): this is NodePath<t.ObjectTypeAnnotation>;
|
||||
isObjectTypeCallProperty(opts?: object): this is NodePath<t.ObjectTypeCallProperty>;
|
||||
isObjectTypeIndexer(opts?: object): this is NodePath<t.ObjectTypeIndexer>;
|
||||
isObjectTypeProperty(opts?: object): this is NodePath<t.ObjectTypeProperty>;
|
||||
isQualifiedTypeIdentifier(opts?: object): this is NodePath<t.QualifiedTypeIdentifier>;
|
||||
isUnionTypeAnnotation(opts?: object): this is NodePath<t.UnionTypeAnnotation>;
|
||||
isVoidTypeAnnotation(opts?: object): this is NodePath<t.VoidTypeAnnotation>;
|
||||
isJSXAttribute(opts?: object): this is NodePath<t.JSXAttribute>;
|
||||
isJSXClosingElement(opts?: object): this is NodePath<t.JSXClosingElement>;
|
||||
isJSXElement(opts?: object): this is NodePath<t.JSXElement>;
|
||||
isJSXEmptyExpression(opts?: object): this is NodePath<t.JSXEmptyExpression>;
|
||||
isJSXExpressionContainer(opts?: object): this is NodePath<t.JSXExpressionContainer>;
|
||||
isJSXIdentifier(opts?: object): this is NodePath<t.JSXIdentifier>;
|
||||
isJSXMemberExpression(opts?: object): this is NodePath<t.JSXMemberExpression>;
|
||||
isJSXNamespacedName(opts?: object): this is NodePath<t.JSXNamespacedName>;
|
||||
isJSXOpeningElement(opts?: object): this is NodePath<t.JSXOpeningElement>;
|
||||
isJSXSpreadAttribute(opts?: object): this is NodePath<t.JSXSpreadAttribute>;
|
||||
isJSXText(opts?: object): this is NodePath<t.JSXText>;
|
||||
isNoop(opts?: object): this is NodePath<t.Noop>;
|
||||
isParenthesizedExpression(opts?: object): this is NodePath<t.ParenthesizedExpression>;
|
||||
isAwaitExpression(opts?: object): this is NodePath<t.AwaitExpression>;
|
||||
isBindExpression(opts?: object): this is NodePath<t.BindExpression>;
|
||||
isDecorator(opts?: object): this is NodePath<t.Decorator>;
|
||||
isDoExpression(opts?: object): this is NodePath<t.DoExpression>;
|
||||
isExportDefaultSpecifier(opts?: object): this is NodePath<t.ExportDefaultSpecifier>;
|
||||
isExportNamespaceSpecifier(opts?: object): this is NodePath<t.ExportNamespaceSpecifier>;
|
||||
isRestProperty(opts?: object): this is NodePath<t.RestProperty>;
|
||||
isSpreadProperty(opts?: object): this is NodePath<t.SpreadProperty>;
|
||||
isExpression(opts?: object): this is NodePath<t.Expression>;
|
||||
isBinary(opts?: object): this is NodePath<t.Binary>;
|
||||
isScopable(opts?: object): this is NodePath<t.Scopable>;
|
||||
isBlockParent(opts?: object): this is NodePath<t.BlockParent>;
|
||||
isBlock(opts?: object): this is NodePath<t.Block>;
|
||||
isStatement(opts?: object): this is NodePath<t.Statement>;
|
||||
isTerminatorless(opts?: object): this is NodePath<t.Terminatorless>;
|
||||
isCompletionStatement(opts?: object): this is NodePath<t.CompletionStatement>;
|
||||
isConditional(opts?: object): this is NodePath<t.Conditional>;
|
||||
isLoop(opts?: object): this is NodePath<t.Loop>;
|
||||
isWhile(opts?: object): this is NodePath<t.While>;
|
||||
isExpressionWrapper(opts?: object): this is NodePath<t.ExpressionWrapper>;
|
||||
isFor(opts?: object): this is NodePath<t.For>;
|
||||
isForXStatement(opts?: object): this is NodePath<t.ForXStatement>;
|
||||
isFunction(opts?: object): this is NodePath<t.Function>;
|
||||
isFunctionParent(opts?: object): this is NodePath<t.FunctionParent>;
|
||||
isPureish(opts?: object): this is NodePath<t.Pureish>;
|
||||
isDeclaration(opts?: object): this is NodePath<t.Declaration>;
|
||||
isLVal(opts?: object): this is NodePath<t.LVal>;
|
||||
isLiteral(opts?: object): this is NodePath<t.Literal>;
|
||||
isImmutable(opts?: object): this is NodePath<t.Immutable>;
|
||||
isUserWhitespacable(opts?: object): this is NodePath<t.UserWhitespacable>;
|
||||
isMethod(opts?: object): this is NodePath<t.Method>;
|
||||
isObjectMember(opts?: object): this is NodePath<t.ObjectMember>;
|
||||
isProperty(opts?: object): this is NodePath<t.Property>;
|
||||
isUnaryLike(opts?: object): this is NodePath<t.UnaryLike>;
|
||||
isPattern(opts?: object): this is NodePath<t.Pattern>;
|
||||
isClass(opts?: object): this is NodePath<t.Class>;
|
||||
isModuleDeclaration(opts?: object): this is NodePath<t.ModuleDeclaration>;
|
||||
isExportDeclaration(opts?: object): this is NodePath<t.ExportDeclaration>;
|
||||
isModuleSpecifier(opts?: object): this is NodePath<t.ModuleSpecifier>;
|
||||
isFlow(opts?: object): this is NodePath<t.Flow>;
|
||||
isFlowBaseAnnotation(opts?: object): this is NodePath<t.FlowBaseAnnotation>;
|
||||
isFlowDeclaration(opts?: object): this is NodePath<t.FlowDeclaration>;
|
||||
isJSX(opts?: object): this is NodePath<t.JSX>;
|
||||
isNumberLiteral(opts?: object): this is NodePath<t.NumericLiteral>;
|
||||
isRegexLiteral(opts?: object): this is NodePath<t.RegExpLiteral>;
|
||||
isReferencedIdentifier(opts?: object): this is NodePath<t.Identifier | t.JSXIdentifier>;
|
||||
isReferencedMemberExpression(opts?: object): this is NodePath<t.MemberExpression>;
|
||||
isBindingIdentifier(opts?: object): this is NodePath<t.Identifier>;
|
||||
isScope(opts?: object): this is NodePath<t.Scopable>;
|
||||
isReferenced(opts?: object): boolean;
|
||||
isBlockScoped(opts?: object): boolean;
|
||||
isVar(opts?: object): boolean;
|
||||
isBlockScoped(opts?: object): this is NodePath<t.FunctionDeclaration | t.ClassDeclaration | t.VariableDeclaration>;
|
||||
isVar(opts?: object): this is NodePath<t.VariableDeclaration>;
|
||||
isUser(opts?: object): boolean;
|
||||
isGenerated(opts?: object): boolean;
|
||||
isPure(opts?: object): boolean;
|
||||
|
||||
Vendored
+6
-6
@@ -1265,13 +1265,13 @@ export function isJSX(node: object, opts?: object): node is JSX;
|
||||
export function isNumberLiteral(node: object, opts?: object): node is NumericLiteral;
|
||||
export function isRegexLiteral(node: object, opts?: object): node is RegExpLiteral;
|
||||
|
||||
export function isReferencedIdentifier(node: object, opts?: object): boolean;
|
||||
export function isReferencedMemberExpression(node: object, opts?: object): boolean;
|
||||
export function isBindingIdentifier(node: object, opts?: object): boolean;
|
||||
export function isScope(node: object, opts?: object): boolean;
|
||||
export function isReferencedIdentifier(node: object, opts?: object): node is Identifier | JSXIdentifier;
|
||||
export function isReferencedMemberExpression(node: object, opts?: object): node is MemberExpression;
|
||||
export function isBindingIdentifier(node: object, opts?: object): node is Identifier;
|
||||
export function isScope(node: object, opts?: object): node is Scopable;
|
||||
export function isReferenced(node: object, opts?: object): boolean;
|
||||
export function isBlockScoped(node: object, opts?: object): boolean;
|
||||
export function isVar(node: object, opts?: object): boolean;
|
||||
export function isBlockScoped(node: object, opts?: object): node is FunctionDeclaration | ClassDeclaration | VariableDeclaration;
|
||||
export function isVar(node: object, opts?: object): node is VariableDeclaration;
|
||||
export function isUser(node: object, opts?: object): boolean;
|
||||
export function isGenerated(node: object, opts?: object): boolean;
|
||||
export function isPure(node: object, opts?: object): boolean;
|
||||
|
||||
Reference in New Issue
Block a user