Latest
class Visitor
import { Visitor } from "https://deno.land/x/lean@0.0.6/mod.ts";

Methods

visitAccessibility(n: Accessibility | undefined): Accessibility | undefined
visitArgument(n: Argument): Argument
visitArguments(nodes: Argument[]): Argument[]
visitArrayElement(e: ExprOrSpread | undefined): ExprOrSpread | undefined
visitArrayExpression(e: ArrayExpression): Expression
visitArrayPattern(n: ArrayPattern): Pattern
visitArrayPatternElement(n: Pattern | undefined): Pattern | undefined
visitArrayPatternElements(nodes: (Pattern | undefined)[]): (Pattern | undefined)[]
visitArrowBody(body: BlockStatement | Expression): BlockStatement | Expression
visitArrowFunctionExpression(e: ArrowFunctionExpression): Expression
visitAssignmentExpression(n: AssignmentExpression): Expression
visitAssignmentPattern(n: AssignmentPattern): Pattern
visitAssignmentPatternProperty(n: AssignmentPatternProperty): ObjectPatternProperty
visitAssignmentProperty(n: AssignmentProperty): Property | SpreadElement
visitAwaitExpression(n: AwaitExpression): Expression
visitBigIntLiteral(n: BigIntLiteral): BigIntLiteral
visitBinaryExpression(n: BinaryExpression): Expression
visitBindingIdentifier(i: Identifier): Identifier
visitBlockStatement(block: BlockStatement): BlockStatement
visitBooleanLiteral(n: BooleanLiteral): BooleanLiteral
visitBreakStatement(stmt: BreakStatement): Statement
visitCallee(n: Expression | Super | Import): Expression | Super | Import
visitCallExpression(n: CallExpression): Expression
visitCatchClause(handler: CatchClause | undefined): CatchClause | undefined
visitClass<T extends Class>(n: T): T
visitClassBody(members: ClassMember[]): ClassMember[]
visitClassDeclaration(decl: ClassDeclaration): Declaration
visitClassExpression(n: ClassExpression): ClassExpression
visitClassMember(member: ClassMember): ClassMember
visitClassMethod(n: ClassMethod): ClassMember
visitClassProperty(n: ClassProperty): ClassMember
visitComputedPropertyKey(n: ComputedPropName): ComputedPropName
visitConditionalExpression(n: ConditionalExpression): Expression
visitConstructor(n: Constructor): ClassMember
visitConstructorParameter(n: Param | TsParameterProperty): Param | TsParameterProperty
visitConstructorParameters(nodes: (Param | TsParameterProperty)[]): (Param | TsParameterProperty)[]
visitContinueStatement(stmt: ContinueStatement): Statement
visitDebuggerStatement(stmt: DebuggerStatement): Statement
visitDeclaration(decl: Declaration): Declaration
visitDecorator(n: Decorator): Decorator
visitDecorators(nodes: Decorator[] | undefined): Decorator[] | undefined
visitDefaultDeclaration(n: DefaultDecl): DefaultDecl
visitDoWhileStatement(stmt: DoWhileStatement): Statement
visitEmptyStatement(stmt: EmptyStatement): Statement
visitExportAllDeclaration(n: ExportAllDeclaration): ModuleDeclaration
visitExportDeclaration(n: ExportDeclaration): ModuleDeclaration
visitExportDefaultDeclaration(n: ExportDefaultDeclaration): ModuleDeclaration
visitExportDefaultExpression(n: ExportDefaultExpression): ModuleDeclaration
visitExportDefaultSpecifier(n: ExportDefaultSpecifier): ExportSpecifier
visitExportNamedDeclaration(n: ExportNamedDeclaration): ModuleDeclaration
visitExportNamespaceSpecifier(n: ExportNamespaceSpecifier): ExportSpecifier
visitExportSpecifier(n: ExportSpecifier): ExportSpecifier
visitExportSpecifiers(nodes: ExportSpecifier[]): ExportSpecifier[]
visitExpression(n: Expression): Expression
visitExpressionStatement(stmt: ExpressionStatement): Statement
visitExprOrSpread(e: ExprOrSpread): ExprOrSpread
visitForInStatement(stmt: ForInStatement): Statement
visitForOfStatement(stmt: ForOfStatement): Statement
visitForStatement(stmt: ForStatement): Statement
visitFunction<T extends Fn>(n: T): T
visitFunctionDeclaration(decl: FunctionDeclaration): Declaration
visitFunctionExpression(n: FunctionExpression): FunctionExpression
visitGetterProperty(n: GetterProperty): Property | SpreadElement
visitIdentifier(n: Identifier): Identifier
visitIdentifierReference(i: Identifier): Identifier
visitIfStatement(stmt: IfStatement): Statement
visitImportDeclaration(n: ImportDeclaration): ImportDeclaration
visitImportDefaultSpecifier(node: ImportDefaultSpecifier): ImportSpecifier
visitImportNamespaceSpecifier(node: ImportNamespaceSpecifier): ImportNamespaceSpecifier
visitImportSpecifier(node: ImportSpecifier): ImportSpecifier
visitImportSpecifiers(nodes: ImportSpecifier[]): ImportSpecifier[]
visitJSXAttribute(n: JSXAttribute): JSXAttributeOrSpread
visitJSXAttributeName(n: JSXAttributeName): JSXAttributeName
visitJSXAttributeOrSpread(n: JSXAttributeOrSpread): JSXAttributeOrSpread
visitJSXAttributes(attrs: JSXAttributeOrSpread[] | undefined): JSXAttributeOrSpread[] | undefined
visitJSXAttributeValue(n: JSXAttrValue | undefined): JSXAttrValue | undefined
visitJSXClosingElement(n: JSXClosingElement | undefined): JSXClosingElement | undefined
visitJSXClosingFragment(n: JSXClosingFragment): JSXClosingFragment
visitJSXElement(n: JSXElement): JSXElement
visitJSXElementChild(n: JSXElementChild): JSXElementChild
visitJSXElementChildren(nodes: JSXElementChild[]): JSXElementChild[]
visitJSXElementName(n: JSXElementName): JSXElementName
visitJSXEmptyExpression(n: JSXEmptyExpression): Expression
visitJSXExpressionContainer(n: JSXExpressionContainer): JSXExpressionContainer
visitJSXFragment(n: JSXFragment): JSXFragment
visitJSXMemberExpression(n: JSXMemberExpression): JSXMemberExpression
visitJSXNamespacedName(n: JSXNamespacedName): JSXNamespacedName
visitJSXObject(n: JSXObject): JSXObject
visitJSXOpeningElement(n: JSXOpeningElement): JSXOpeningElement
visitJSXOpeningFragment(n: JSXOpeningFragment): JSXOpeningFragment
visitJSXSpreadChild(n: JSXSpreadChild): JSXElementChild
visitJSXText(n: JSXText): JSXText
visitKeyValuePatternProperty(n: KeyValuePatternProperty): ObjectPatternProperty
visitKeyValueProperty(n: KeyValueProperty): Property | SpreadElement
visitLabeledStatement(stmt: LabeledStatement): Statement
visitLabelIdentifier(label: Identifier): Identifier
visitMemberExpression(n: MemberExpression): Expression
visitMetaProperty(n: MetaProperty): Expression
visitMethodProperty(n: MethodProperty): Property | SpreadElement
visitModule(m: Module): Module
visitModuleDeclaration(n: ModuleDeclaration): ModuleDeclaration
visitModuleItem(n: ModuleItem): ModuleItem
visitModuleItems(items: ModuleItem[]): ModuleItem[]
visitNamedExportSpecifier(n: NamedExportSpecifier): ExportSpecifier
visitNamedImportSpecifier(node: NamedImportSpecifier): NamedImportSpecifier
visitNewExpression(n: NewExpression): Expression
visitNullLiteral(n: NullLiteral): NullLiteral
visitNumericLiteral(n: NumericLiteral): NumericLiteral
visitObjectExpression(n: ObjectExpression): Expression
visitObjectPattern(n: ObjectPattern): Pattern
visitObjectPatternProperties(nodes: ObjectPatternProperty[]): ObjectPatternProperty[]
visitObjectPatternProperty(n: ObjectPatternProperty): ObjectPatternProperty
visitObjectProperties(nodes: (Property | SpreadElement)[]): (Property | SpreadElement)[]
visitObjectProperty(n: Property | SpreadElement): Property | SpreadElement
visitOptionalChainingExpression(n: OptionalChainingExpression): Expression
visitOptionalExpression(e: Expression | undefined): Expression | undefined
visitOptionalStatement(stmt: Statement | undefined): Statement | undefined
visitOptionalStringLiteral(n: StringLiteral | undefined): StringLiteral | undefined
visitParameter(n: Param): Param
visitParameters(n: Param[]): Param[]
visitParenthesisExpression(n: ParenthesisExpression): Expression
visitPattern(n: Pattern): Pattern
visitPatternOrExpression(n: Pattern | Expression): Pattern | Expression
visitPatterns(nodes: Pattern[]): Pattern[]
visitPrivateMethod(n: PrivateMethod): ClassMember
visitPrivateName(n: PrivateName): PrivateName
visitPrivateProperty(n: PrivateProperty): ClassMember
visitProgram(n: Program): Program
visitProperty(n: Property): Property | SpreadElement
visitPropertyName(key: PropertyName): PropertyName
visitRegExpLiteral(n: RegExpLiteral): Expression
visitRestElement(n: RestElement): RestElement
visitReturnStatement(stmt: ReturnStatement): Statement
visitScript(m: Script): Script
visitSequenceExpression(n: SequenceExpression): Expression
visitSetterProperty(n: SetterProperty): Property | SpreadElement
visitSpreadElement(e: SpreadElement): SpreadElement
visitStatement(stmt: Statement): Statement
visitStatements(stmts: Statement[]): Statement[]
visitStringLiteral(n: StringLiteral): StringLiteral
visitSuperPropExpression(n: SuperPropExpression): Expression
visitSwitchCase(c: SwitchCase): SwitchCase
visitSwitchCases(cases: SwitchCase[]): SwitchCase[]
visitSwitchStatement(stmt: SwitchStatement): Statement
visitTaggedTemplateExpression(n: TaggedTemplateExpression): Expression
visitTemplateLiteral(n: TemplateLiteral): Expression
visitThisExpression(n: ThisExpression): Expression
visitThrowStatement(stmt: ThrowStatement): Statement
visitTryStatement(stmt: TryStatement): Statement
visitTsAsExpression(n: TsAsExpression): Expression
visitTsConstAssertion(n: TsConstAssertion): Expression
visitTsEntityName(n: TsEntityName): TsEntityName
visitTsEnumDeclaration(n: TsEnumDeclaration): Declaration
visitTsEnumMember(n: TsEnumMember): TsEnumMember
visitTsEnumMemberId(n: TsEnumMemberId): TsEnumMemberId
visitTsEnumMembers(nodes: TsEnumMember[]): TsEnumMember[]
visitTsExportAssignment(n: TsExportAssignment): TsExportAssignment
visitTsExpressionsWithTypeArguments(nodes: TsExpressionWithTypeArguments[]): TsExpressionWithTypeArguments[]
visitTsExpressionWithTypeArguments(n: TsExpressionWithTypeArguments): TsExpressionWithTypeArguments
visitTsExternalModuleReference(n: TsExternalModuleReference): TsExternalModuleReference
visitTsFnParameter(n: TsFnParameter): TsFnParameter
visitTsFnParameters(params: TsFnParameter[]): TsFnParameter[]
visitTsImportEqualsDeclaration(n: TsImportEqualsDeclaration): ModuleDeclaration
visitTsIndexSignature(n: TsIndexSignature): ClassMember
visitTsInterfaceBody(n: TsInterfaceBody): TsInterfaceBody
visitTsInterfaceDeclaration(n: TsInterfaceDeclaration): TsInterfaceDeclaration
visitTsModuleBlock(n: TsModuleBlock): TsModuleBlock | TsNamespaceDeclaration
visitTsModuleDeclaration(n: TsModuleDeclaration): Declaration
visitTsModuleName(n: TsModuleName): TsModuleName
visitTsModuleReference(n: TsModuleReference): TsModuleReference
visitTsNamespaceBody(n: TsNamespaceBody): TsNamespaceBody | undefined
visitTsNamespaceDeclaration(n: TsNamespaceDeclaration): TsModuleBlock | TsNamespaceDeclaration
visitTsNamespaceExportDeclaration(n: TsNamespaceExportDeclaration): ModuleDeclaration
visitTsNonNullExpression(n: TsNonNullExpression): Expression
visitTsParameterProperty(n: TsParameterProperty): TsParameterProperty | Param
visitTsParameterPropertyParameter(n: TsParameterPropertyParameter): TsParameterPropertyParameter
visitTsQualifiedName(n: TsQualifiedName): TsQualifiedName
visitTsType(n: TsType): TsType
visitTsTypeAliasDeclaration(n: TsTypeAliasDeclaration): Declaration
visitTsTypeAnnotation(a: TsTypeAnnotation | undefined): TsTypeAnnotation | undefined
visitTsTypeArguments(n: TsTypeParameterInstantiation | undefined): TsTypeParameterInstantiation | undefined
visitTsTypeAssertion(n: TsTypeAssertion): Expression
visitTsTypeElement(n: TsTypeElement): TsTypeElement
visitTsTypeElements(nodes: TsTypeElement[]): TsTypeElement[]
visitTsTypeParameter(n: TsTypeParameter): TsTypeParameter
visitTsTypeParameterDeclaration(n: TsTypeParameterDeclaration | undefined): TsTypeParameterDeclaration | undefined
visitTsTypeParameterInstantiation(n: TsTypeParameterInstantiation | undefined): TsTypeParameterInstantiation | undefined
visitTsTypeParameters(nodes: TsTypeParameter[]): TsTypeParameter[]
visitTsTypes(nodes: TsType[]): TsType[]
visitUnaryExpression(n: UnaryExpression): Expression
visitUpdateExpression(n: UpdateExpression): Expression
visitVariableDeclaration(n: VariableDeclaration): VariableDeclaration
visitVariableDeclarator(n: VariableDeclarator): VariableDeclarator
visitVariableDeclarators(nodes: VariableDeclarator[]): VariableDeclarator[]
visitWhileStatement(stmt: WhileStatement): Statement
visitWithStatement(stmt: WithStatement): Statement
visitYieldExpression(n: YieldExpression): Expression