How to use nodePath method in stryker-parent

Best JavaScript code snippet using stryker-parent

index.d.ts

Source:index.d.ts Github

copy

Full Screen

1// Type definitions for @babel/traverse 7.02// Project: https://github.com/babel/babel/tree/master/packages/babel-traverse, https://babeljs.io3// Definitions by: Troy Gerwien <https://github.com/yortus>4// Marvin Hagemeister <https://github.com/marvinhagemeister>5// Ryan Petrich <https://github.com/rpetrich>6// Melvin Groenhoff <https://github.com/mgroenhoff>7// Dean L. <https://github.com/dlgrit>8// Ifiok Jr. <https://github.com/ifiokjr>9// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped10// Minimum TypeScript Version: 3.411import * as t from '@babel/types';12export type Node = t.Node;13declare const traverse: {14 <S>(15 parent: Node | Node[],16 opts: TraverseOptions<S>,17 scope: Scope | undefined,18 state: S,19 parentPath?: NodePath,20 ): void;21 (22 parent: Node | Node[],23 opts: TraverseOptions,24 scope?: Scope,25 state?: any,26 parentPath?: NodePath,27 ): void;28 visitors: {29 merge: (visitors: Visitor[]) => Visitor30 }31};32export default traverse;33export interface TraverseOptions<S = Node> extends Visitor<S> {34 scope?: Scope;35 noScope?: boolean;36}37export type ArrayKeys<T> = { [P in keyof T]: T[P] extends any[] ? P : never }[keyof T];38export class Scope {39 constructor(path: NodePath, parentScope?: Scope);40 path: NodePath;41 block: Node;42 parentBlock: Node;43 parent: Scope;44 hub: Hub;45 bindings: { [name: string]: Binding };46 /** Traverse node with current scope and path. */47 traverse<S>(node: Node | Node[], opts: TraverseOptions<S>, state: S): void;48 traverse(node: Node | Node[], opts?: TraverseOptions, state?: any): void;49 /** Generate a unique identifier and add it to the current scope. */50 generateDeclaredUidIdentifier(name?: string): t.Identifier;51 /** Generate a unique identifier. */52 generateUidIdentifier(name?: string): t.Identifier;53 /** Generate a unique `_id1` binding. */54 generateUid(name?: string): string;55 /** Generate a unique identifier based on a node. */56 generateUidIdentifierBasedOnNode(parent: Node, defaultName?: string): t.Identifier;57 /**58 * Determine whether evaluating the specific input `node` is a consequenceless reference. ie.59 * evaluating it wont result in potentially arbitrary code from being ran. The following are60 * whitelisted and determined not to cause side effects:61 *62 * - `this` expressions63 * - `super` expressions64 * - Bound identifiers65 */66 isStatic(node: Node): boolean;67 /** Possibly generate a memoised identifier if it is not static and has consequences. */68 maybeGenerateMemoised(node: Node, dontPush?: boolean): t.Identifier;69 checkBlockScopedCollisions(local: Node, kind: string, name: string, id: object): void;70 rename(oldName: string, newName?: string, block?: Node): void;71 dump(): void;72 toArray(node: Node, i?: number): Node;73 registerDeclaration(path: NodePath): void;74 buildUndefinedNode(): Node;75 registerConstantViolation(path: NodePath): void;76 registerBinding(kind: string, path: NodePath, bindingPath?: NodePath): void;77 addGlobal(node: Node): void;78 hasUid(name: string): boolean;79 hasGlobal(name: string): boolean;80 hasReference(name: string): boolean;81 isPure(node: Node, constantsOnly?: boolean): boolean;82 setData(key: string, val: any): any;83 getData(key: string): any;84 removeData(key: string): void;85 push(opts: { id: t.LVal; init?: t.Expression; unique?: boolean; kind?: 'var' | 'let' | 'const' }): void;86 getProgramParent(): Scope;87 getFunctionParent(): Scope | null;88 getBlockParent(): Scope;89 /** Walks the scope tree and gathers **all** bindings. */90 getAllBindings(...kinds: string[]): object;91 bindingIdentifierEquals(name: string, node: Node): boolean;92 getBinding(name: string): Binding | undefined;93 getOwnBinding(name: string): Binding | undefined;94 getBindingIdentifier(name: string): t.Identifier;95 getOwnBindingIdentifier(name: string): t.Identifier;96 hasOwnBinding(name: string): boolean;97 hasBinding(name: string, noGlobals?: boolean): boolean;98 parentHasBinding(name: string, noGlobals?: boolean): boolean;99 /** Move a binding of `name` to another `scope`. */100 moveBindingTo(name: string, scope: Scope): void;101 removeOwnBinding(name: string): void;102 removeBinding(name: string): void;103}104export class Binding {105 constructor(opts: {106 existing: Binding;107 identifier: t.Identifier;108 scope: Scope;109 path: NodePath;110 kind: 'var' | 'let' | 'const';111 });112 identifier: t.Identifier;113 scope: Scope;114 path: NodePath;115 kind: 'var' | 'let' | 'const' | 'module';116 referenced: boolean;117 references: number;118 referencePaths: NodePath[];119 constant: boolean;120 constantViolations: NodePath[];121}122export type Visitor<S = {}> = VisitNodeObject<S, Node> &123 {124 [Type in Node['type']]?: VisitNode<S, Extract<Node, { type: Type }>>;125 } &126 {127 [K in keyof t.Aliases]?: VisitNode<S, t.Aliases[K]>;128 };129export type VisitNode<S, P> = VisitNodeFunction<S, P> | VisitNodeObject<S, P>;130export type VisitNodeFunction<S, P> = (this: S, path: NodePath<P>, state: S) => void;131export interface VisitNodeObject<S, P> {132 enter?: VisitNodeFunction<S, P>;133 exit?: VisitNodeFunction<S, P>;134}135export type NodePaths<T extends Node | Node[]> = T extends Node[] ? { [K in keyof T]: NodePath<T[K]> } : [NodePath<T>];136export class NodePath<T = Node> {137 constructor(hub: Hub, parent: Node);138 parent: Node;139 hub: Hub;140 contexts: TraversalContext[];141 data: object;142 shouldSkip: boolean;143 shouldStop: boolean;144 removed: boolean;145 state: any;146 opts: object;147 skipKeys: object;148 parentPath: NodePath;149 context: TraversalContext;150 container: object | object[];151 listKey: string;152 inList: boolean;153 parentKey: string;154 key: string | number;155 node: T;156 scope: Scope;157 type: T extends undefined | null ? string | null : string;158 typeAnnotation: object;159 getScope(scope: Scope): Scope;160 setData(key: string, val: any): any;161 getData(key: string, def?: any): any;162 buildCodeFrameError<TError extends Error>(msg: string, Error?: new (msg: string) => TError): TError;163 traverse<T>(visitor: Visitor<T>, state: T): void;164 traverse(visitor: Visitor): void;165 set(key: string, node: Node): void;166 getPathLocation(): string;167 // Example: https://github.com/babel/babel/blob/63204ae51e020d84a5b246312f5eeb4d981ab952/packages/babel-traverse/src/path/modification.js#L83168 debug(buildMessage: () => string): void;169 // ------------------------- ancestry -------------------------170 /**171 * Call the provided `callback` with the `NodePath`s of all the parents.172 * When the `callback` returns a truthy value, we return that node path.173 */174 findParent(callback: (path: NodePath) => boolean): NodePath;175 find(callback: (path: NodePath) => boolean): NodePath;176 /** Get the parent function of the current path. */177 getFunctionParent(): NodePath<t.Function>;178 /** Walk up the tree until we hit a parent node path in a list. */179 getStatementParent(): NodePath<t.Statement>;180 /**181 * Get the deepest common ancestor and then from it, get the earliest relationship path182 * to that ancestor.183 *184 * Earliest is defined as being "before" all the other nodes in terms of list container185 * position and visiting key.186 */187 getEarliestCommonAncestorFrom(paths: NodePath[]): NodePath[];188 /** Get the earliest path in the tree where the provided `paths` intersect. */189 getDeepestCommonAncestorFrom(190 paths: NodePath[],191 filter?: (deepest: Node, i: number, ancestries: NodePath[]) => NodePath,192 ): NodePath;193 /**194 * Build an array of node paths containing the entire ancestry of the current node path.195 *196 * NOTE: The current node path is included in this.197 */198 getAncestry(): NodePath[];199 inType(...candidateTypes: string[]): boolean;200 // ------------------------- inference -------------------------201 /** Infer the type of the current `NodePath`. */202 getTypeAnnotation(): t.FlowType;203 isBaseType(baseName: string, soft?: boolean): boolean;204 couldBeBaseType(name: string): boolean;205 baseTypeStrictlyMatches(right: NodePath): boolean;206 isGenericType(genericName: string): boolean;207 // ------------------------- replacement -------------------------208 /**209 * Replace a node with an array of multiple. This method performs the following steps:210 *211 * - Inherit the comments of first provided node with that of the current node.212 * - Insert the provided nodes after the current node.213 * - Remove the current node.214 */215 replaceWithMultiple<Nodes extends Node[]>(nodes: Nodes): NodePaths<Nodes>;216 /**217 * Parse a string as an expression and replace the current node with the result.218 *219 * NOTE: This is typically not a good idea to use. Building source strings when220 * transforming ASTs is an antipattern and SHOULD NOT be encouraged. Even if it's221 * easier to use, your transforms will be extremely brittle.222 */223 replaceWithSourceString(replacement: any): [NodePath];224 /** Replace the current node with another. */225 replaceWith<T extends Node>(replacement: T | NodePath<T>): [NodePath<T>];226 /**227 * This method takes an array of statements nodes and then explodes it228 * into expressions. This method retains completion records which is229 * extremely important to retain original semantics.230 */231 replaceExpressionWithStatements<Nodes extends Node[]>(nodes: Nodes): NodePaths<Nodes>;232 replaceInline<Nodes extends Node | Node[]>(nodes: Nodes): NodePaths<Nodes>;233 // ------------------------- evaluation -------------------------234 /**235 * Walk the input `node` and statically evaluate if it's truthy.236 *237 * Returning `true` when we're sure that the expression will evaluate to a238 * truthy value, `false` if we're sure that it will evaluate to a falsy239 * value and `undefined` if we aren't sure. Because of this please do not240 * rely on coercion when using this method and check with === if it's false.241 */242 evaluateTruthy(): boolean;243 /**244 * Walk the input `node` and statically evaluate it.245 *246 * Returns an object in the form `{ confident, value }`. `confident` indicates247 * whether or not we had to drop out of evaluating the expression because of248 * hitting an unknown node that we couldn't confidently find the value of.249 *250 * Example:251 *252 * t.evaluate(parse("5 + 5")) // { confident: true, value: 10 }253 * t.evaluate(parse("!true")) // { confident: true, value: false }254 * t.evaluate(parse("foo + foo")) // { confident: false, value: undefined }255 */256 evaluate(): { confident: boolean; value: any };257 // ------------------------- introspection -------------------------258 /**259 * Match the current node if it matches the provided `pattern`.260 *261 * For example, given the match `React.createClass` it would match the262 * parsed nodes of `React.createClass` and `React["createClass"]`.263 */264 matchesPattern(pattern: string, allowPartial?: boolean): boolean;265 /**266 * Check whether we have the input `key`. If the `key` references an array then we check267 * if the array has any items, otherwise we just check if it's falsy.268 */269 has(key: string): boolean;270 isStatic(): boolean;271 /** Alias of `has`. */272 is(key: string): boolean;273 /** Opposite of `has`. */274 isnt(key: string): boolean;275 /** Check whether the path node `key` strict equals `value`. */276 equals(key: string, value: any): boolean;277 /**278 * Check the type against our stored internal type of the node. This is handy when a node has279 * been removed yet we still internally know the type and need it to calculate node replacement.280 */281 isNodeType(type: string): boolean;282 /**283 * This checks whether or not we're in one of the following positions:284 *285 * for (KEY in right);286 * for (KEY;;);287 *288 * This is because these spots allow VariableDeclarations AND normal expressions so we need289 * to tell the path replacement that it's ok to replace this with an expression.290 */291 canHaveVariableDeclarationOrExpression(): boolean;292 /**293 * This checks whether we are swapping an arrow function's body between an294 * expression and a block statement (or vice versa).295 *296 * This is because arrow functions may implicitly return an expression, which297 * is the same as containing a block statement.298 */299 canSwapBetweenExpressionAndStatement(replacement: Node): boolean;300 /** Check whether the current path references a completion record */301 isCompletionRecord(allowInsideFunction?: boolean): boolean;302 /**303 * Check whether or not the current `key` allows either a single statement or block statement304 * so we can explode it if necessary.305 */306 isStatementOrBlock(): boolean;307 /** Check if the currently assigned path references the `importName` of `moduleSource`. */308 referencesImport(moduleSource: string, importName: string): boolean;309 /** Get the source code associated with this node. */310 getSource(): string;311 /** Check if the current path will maybe execute before another path */312 willIMaybeExecuteBefore(path: NodePath): boolean;313 // ------------------------- context -------------------------314 call(key: string): boolean;315 isBlacklisted(): boolean;316 visit(): boolean;317 skip(): void;318 skipKey(key: string): void;319 stop(): void;320 setScope(): void;321 setContext(context: TraversalContext): NodePath<T>;322 popContext(): void;323 pushContext(context: TraversalContext): void;324 // ------------------------- removal -------------------------325 remove(): void;326 // ------------------------- modification -------------------------327 /** Insert the provided nodes before the current one. */328 insertBefore<Nodes extends Node | Node[]>(nodes: Nodes): NodePaths<Nodes>;329 /**330 * Insert the provided nodes after the current one. When inserting nodes after an331 * expression, ensure that the completion record is correct by pushing the current node.332 */333 insertAfter<Nodes extends Node | Node[]>(nodes: Nodes): NodePaths<Nodes>;334 /** Update all sibling node paths after `fromIndex` by `incrementBy`. */335 updateSiblingKeys(fromIndex: number, incrementBy: number): void;336 /**337 * Insert child nodes at the start of the current node.338 * @param listKey - The key at which the child nodes are stored (usually body).339 * @param nodes - the nodes to insert.340 */341 unshiftContainer<Nodes extends Node | Node[]>(listKey: ArrayKeys<T>, nodes: Nodes): NodePaths<Nodes>;342 /**343 * Insert child nodes at the end of the current node.344 * @param listKey - The key at which the child nodes are stored (usually body).345 * @param nodes - the nodes to insert.346 */347 pushContainer<Nodes extends Node | Node[]>(listKey: ArrayKeys<T>, nodes: Nodes): NodePaths<Nodes>;348 /** Hoist the current node to the highest scope possible and return a UID referencing it. */349 hoist(scope: Scope): void;350 // ------------------------- family -------------------------351 getOpposite(): NodePath;352 getCompletionRecords(): NodePath[];353 getSibling(key: string | number): NodePath;354 getAllPrevSiblings(): NodePath[];355 getAllNextSiblings(): NodePath[];356 get<K extends keyof T>(357 key: K,358 context?: boolean | TraversalContext,359 ): T[K] extends Array<Node | null | undefined>360 ? Array<NodePath<T[K][number]>>361 : T[K] extends Node | null | undefined362 ? NodePath<T[K]>363 : never;364 get(key: string, context?: boolean | TraversalContext): NodePath | NodePath[];365 getBindingIdentifiers(duplicates?: boolean): Node[];366 getOuterBindingIdentifiers(duplicates?: boolean): Node[];367 // ------------------------- comments -------------------------368 /** Share comments amongst siblings. */369 shareCommentsWithSiblings(): void;370 addComment(type: string, content: string, line?: boolean): void;371 /** Give node `comments` of the specified `type`. */372 addComments(type: string, comments: any[]): void;373 // ------------------------- isXXX -------------------------374 isArrayExpression(opts?: object): this is NodePath<t.ArrayExpression>;375 isAssignmentExpression(opts?: object): this is NodePath<t.AssignmentExpression>;376 isBinaryExpression(opts?: object): this is NodePath<t.BinaryExpression>;377 isDirective(opts?: object): this is NodePath<t.Directive>;378 isDirectiveLiteral(opts?: object): this is NodePath<t.DirectiveLiteral>;379 isBlockStatement(opts?: object): this is NodePath<t.BlockStatement>;380 isBreakStatement(opts?: object): this is NodePath<t.BreakStatement>;381 isCallExpression(opts?: object): this is NodePath<t.CallExpression>;382 isCatchClause(opts?: object): this is NodePath<t.CatchClause>;383 isConditionalExpression(opts?: object): this is NodePath<t.ConditionalExpression>;384 isContinueStatement(opts?: object): this is NodePath<t.ContinueStatement>;385 isDebuggerStatement(opts?: object): this is NodePath<t.DebuggerStatement>;386 isDoWhileStatement(opts?: object): this is NodePath<t.DoWhileStatement>;387 isEmptyStatement(opts?: object): this is NodePath<t.EmptyStatement>;388 isExpressionStatement(opts?: object): this is NodePath<t.ExpressionStatement>;389 isFile(opts?: object): this is NodePath<t.File>;390 isForInStatement(opts?: object): this is NodePath<t.ForInStatement>;391 isForStatement(opts?: object): this is NodePath<t.ForStatement>;392 isFunctionDeclaration(opts?: object): this is NodePath<t.FunctionDeclaration>;393 isFunctionExpression(opts?: object): this is NodePath<t.FunctionExpression>;394 isIdentifier(opts?: object): this is NodePath<t.Identifier>;395 isIfStatement(opts?: object): this is NodePath<t.IfStatement>;396 isLabeledStatement(opts?: object): this is NodePath<t.LabeledStatement>;397 isStringLiteral(opts?: object): this is NodePath<t.StringLiteral>;398 isNumericLiteral(opts?: object): this is NodePath<t.NumericLiteral>;399 isNullLiteral(opts?: object): this is NodePath<t.NullLiteral>;400 isBooleanLiteral(opts?: object): this is NodePath<t.BooleanLiteral>;401 isRegExpLiteral(opts?: object): this is NodePath<t.RegExpLiteral>;402 isLogicalExpression(opts?: object): this is NodePath<t.LogicalExpression>;403 isMemberExpression(opts?: object): this is NodePath<t.MemberExpression>;404 isNewExpression(opts?: object): this is NodePath<t.NewExpression>;405 isProgram(opts?: object): this is NodePath<t.Program>;406 isObjectExpression(opts?: object): this is NodePath<t.ObjectExpression>;407 isObjectMethod(opts?: object): this is NodePath<t.ObjectMethod>;408 isObjectProperty(opts?: object): this is NodePath<t.ObjectProperty>;409 isRestElement(opts?: object): this is NodePath<t.RestElement>;410 isReturnStatement(opts?: object): this is NodePath<t.ReturnStatement>;411 isSequenceExpression(opts?: object): this is NodePath<t.SequenceExpression>;412 isSwitchCase(opts?: object): this is NodePath<t.SwitchCase>;413 isSwitchStatement(opts?: object): this is NodePath<t.SwitchStatement>;414 isThisExpression(opts?: object): this is NodePath<t.ThisExpression>;415 isThrowStatement(opts?: object): this is NodePath<t.ThrowStatement>;416 isTryStatement(opts?: object): this is NodePath<t.TryStatement>;417 isUnaryExpression(opts?: object): this is NodePath<t.UnaryExpression>;418 isUpdateExpression(opts?: object): this is NodePath<t.UpdateExpression>;419 isVariableDeclaration(opts?: object): this is NodePath<t.VariableDeclaration>;420 isVariableDeclarator(opts?: object): this is NodePath<t.VariableDeclarator>;421 isWhileStatement(opts?: object): this is NodePath<t.WhileStatement>;422 isWithStatement(opts?: object): this is NodePath<t.WithStatement>;423 isAssignmentPattern(opts?: object): this is NodePath<t.AssignmentPattern>;424 isArrayPattern(opts?: object): this is NodePath<t.ArrayPattern>;425 isArrowFunctionExpression(opts?: object): this is NodePath<t.ArrowFunctionExpression>;426 isClassBody(opts?: object): this is NodePath<t.ClassBody>;427 isClassDeclaration(opts?: object): this is NodePath<t.ClassDeclaration>;428 isClassExpression(opts?: object): this is NodePath<t.ClassExpression>;429 isExportAllDeclaration(opts?: object): this is NodePath<t.ExportAllDeclaration>;430 isExportDefaultDeclaration(opts?: object): this is NodePath<t.ExportDefaultDeclaration>;431 isExportNamedDeclaration(opts?: object): this is NodePath<t.ExportNamedDeclaration>;432 isExportSpecifier(opts?: object): this is NodePath<t.ExportSpecifier>;433 isForOfStatement(opts?: object): this is NodePath<t.ForOfStatement>;434 isImportDeclaration(opts?: object): this is NodePath<t.ImportDeclaration>;435 isImportDefaultSpecifier(opts?: object): this is NodePath<t.ImportDefaultSpecifier>;436 isImportNamespaceSpecifier(opts?: object): this is NodePath<t.ImportNamespaceSpecifier>;437 isImportSpecifier(opts?: object): this is NodePath<t.ImportSpecifier>;438 isMetaProperty(opts?: object): this is NodePath<t.MetaProperty>;439 isClassMethod(opts?: object): this is NodePath<t.ClassMethod>;440 isObjectPattern(opts?: object): this is NodePath<t.ObjectPattern>;441 isSpreadElement(opts?: object): this is NodePath<t.SpreadElement>;442 isSuper(opts?: object): this is NodePath<t.Super>;443 isTaggedTemplateExpression(opts?: object): this is NodePath<t.TaggedTemplateExpression>;444 isTemplateElement(opts?: object): this is NodePath<t.TemplateElement>;445 isTemplateLiteral(opts?: object): this is NodePath<t.TemplateLiteral>;446 isYieldExpression(opts?: object): this is NodePath<t.YieldExpression>;447 isAnyTypeAnnotation(opts?: object): this is NodePath<t.AnyTypeAnnotation>;448 isArrayTypeAnnotation(opts?: object): this is NodePath<t.ArrayTypeAnnotation>;449 isBooleanTypeAnnotation(opts?: object): this is NodePath<t.BooleanTypeAnnotation>;450 isBooleanLiteralTypeAnnotation(opts?: object): this is NodePath<t.BooleanLiteralTypeAnnotation>;451 isNullLiteralTypeAnnotation(opts?: object): this is NodePath<t.NullLiteralTypeAnnotation>;452 isClassImplements(opts?: object): this is NodePath<t.ClassImplements>;453 isClassProperty(opts?: object): this is NodePath<t.ClassProperty>;454 isDeclareClass(opts?: object): this is NodePath<t.DeclareClass>;455 isDeclareFunction(opts?: object): this is NodePath<t.DeclareFunction>;456 isDeclareInterface(opts?: object): this is NodePath<t.DeclareInterface>;457 isDeclareModule(opts?: object): this is NodePath<t.DeclareModule>;458 isDeclareTypeAlias(opts?: object): this is NodePath<t.DeclareTypeAlias>;459 isDeclareVariable(opts?: object): this is NodePath<t.DeclareVariable>;460 isFunctionTypeAnnotation(opts?: object): this is NodePath<t.FunctionTypeAnnotation>;461 isFunctionTypeParam(opts?: object): this is NodePath<t.FunctionTypeParam>;462 isGenericTypeAnnotation(opts?: object): this is NodePath<t.GenericTypeAnnotation>;463 isInterfaceExtends(opts?: object): this is NodePath<t.InterfaceExtends>;464 isInterfaceDeclaration(opts?: object): this is NodePath<t.InterfaceDeclaration>;465 isIntersectionTypeAnnotation(opts?: object): this is NodePath<t.IntersectionTypeAnnotation>;466 isMixedTypeAnnotation(opts?: object): this is NodePath<t.MixedTypeAnnotation>;467 isNullableTypeAnnotation(opts?: object): this is NodePath<t.NullableTypeAnnotation>;468 isNumberTypeAnnotation(opts?: object): this is NodePath<t.NumberTypeAnnotation>;469 isStringLiteralTypeAnnotation(opts?: object): this is NodePath<t.StringLiteralTypeAnnotation>;470 isStringTypeAnnotation(opts?: object): this is NodePath<t.StringTypeAnnotation>;471 isThisTypeAnnotation(opts?: object): this is NodePath<t.ThisTypeAnnotation>;472 isTupleTypeAnnotation(opts?: object): this is NodePath<t.TupleTypeAnnotation>;473 isTypeofTypeAnnotation(opts?: object): this is NodePath<t.TypeofTypeAnnotation>;474 isTypeAlias(opts?: object): this is NodePath<t.TypeAlias>;475 isTypeAnnotation(opts?: object): this is NodePath<t.TypeAnnotation>;476 isTypeCastExpression(opts?: object): this is NodePath<t.TypeCastExpression>;477 isTypeParameterDeclaration(opts?: object): this is NodePath<t.TypeParameterDeclaration>;478 isTypeParameterInstantiation(opts?: object): this is NodePath<t.TypeParameterInstantiation>;479 isObjectTypeAnnotation(opts?: object): this is NodePath<t.ObjectTypeAnnotation>;480 isObjectTypeCallProperty(opts?: object): this is NodePath<t.ObjectTypeCallProperty>;481 isObjectTypeIndexer(opts?: object): this is NodePath<t.ObjectTypeIndexer>;482 isObjectTypeProperty(opts?: object): this is NodePath<t.ObjectTypeProperty>;483 isQualifiedTypeIdentifier(opts?: object): this is NodePath<t.QualifiedTypeIdentifier>;484 isUnionTypeAnnotation(opts?: object): this is NodePath<t.UnionTypeAnnotation>;485 isVoidTypeAnnotation(opts?: object): this is NodePath<t.VoidTypeAnnotation>;486 isJSXAttribute(opts?: object): this is NodePath<t.JSXAttribute>;487 isJSXClosingElement(opts?: object): this is NodePath<t.JSXClosingElement>;488 isJSXElement(opts?: object): this is NodePath<t.JSXElement>;489 isJSXEmptyExpression(opts?: object): this is NodePath<t.JSXEmptyExpression>;490 isJSXExpressionContainer(opts?: object): this is NodePath<t.JSXExpressionContainer>;491 isJSXIdentifier(opts?: object): this is NodePath<t.JSXIdentifier>;492 isJSXMemberExpression(opts?: object): this is NodePath<t.JSXMemberExpression>;493 isJSXNamespacedName(opts?: object): this is NodePath<t.JSXNamespacedName>;494 isJSXOpeningElement(opts?: object): this is NodePath<t.JSXOpeningElement>;495 isJSXSpreadAttribute(opts?: object): this is NodePath<t.JSXSpreadAttribute>;496 isJSXText(opts?: object): this is NodePath<t.JSXText>;497 isNoop(opts?: object): this is NodePath<t.Noop>;498 isParenthesizedExpression(opts?: object): this is NodePath<t.ParenthesizedExpression>;499 isAwaitExpression(opts?: object): this is NodePath<t.AwaitExpression>;500 isBindExpression(opts?: object): this is NodePath<t.BindExpression>;501 isDecorator(opts?: object): this is NodePath<t.Decorator>;502 isDoExpression(opts?: object): this is NodePath<t.DoExpression>;503 isExportDefaultSpecifier(opts?: object): this is NodePath<t.ExportDefaultSpecifier>;504 isExportNamespaceSpecifier(opts?: object): this is NodePath<t.ExportNamespaceSpecifier>;505 isRestProperty(opts?: object): this is NodePath<t.RestProperty>;506 isSpreadProperty(opts?: object): this is NodePath<t.SpreadProperty>;507 isExpression(opts?: object): this is NodePath<t.Expression>;508 isBinary(opts?: object): this is NodePath<t.Binary>;509 isScopable(opts?: object): this is NodePath<t.Scopable>;510 isBlockParent(opts?: object): this is NodePath<t.BlockParent>;511 isBlock(opts?: object): this is NodePath<t.Block>;512 isStatement(opts?: object): this is NodePath<t.Statement>;513 isTerminatorless(opts?: object): this is NodePath<t.Terminatorless>;514 isCompletionStatement(opts?: object): this is NodePath<t.CompletionStatement>;515 isConditional(opts?: object): this is NodePath<t.Conditional>;516 isLoop(opts?: object): this is NodePath<t.Loop>;517 isWhile(opts?: object): this is NodePath<t.While>;518 isExpressionWrapper(opts?: object): this is NodePath<t.ExpressionWrapper>;519 isFor(opts?: object): this is NodePath<t.For>;520 isForXStatement(opts?: object): this is NodePath<t.ForXStatement>;521 isFunction(opts?: object): this is NodePath<t.Function>;522 isFunctionParent(opts?: object): this is NodePath<t.FunctionParent>;523 isPureish(opts?: object): this is NodePath<t.Pureish>;524 isDeclaration(opts?: object): this is NodePath<t.Declaration>;525 isLVal(opts?: object): this is NodePath<t.LVal>;526 isLiteral(opts?: object): this is NodePath<t.Literal>;527 isImmutable(opts?: object): this is NodePath<t.Immutable>;528 isUserWhitespacable(opts?: object): this is NodePath<t.UserWhitespacable>;529 isMethod(opts?: object): this is NodePath<t.Method>;530 isObjectMember(opts?: object): this is NodePath<t.ObjectMember>;531 isProperty(opts?: object): this is NodePath<t.Property>;532 isUnaryLike(opts?: object): this is NodePath<t.UnaryLike>;533 isPattern(opts?: object): this is NodePath<t.Pattern>;534 isClass(opts?: object): this is NodePath<t.Class>;535 isModuleDeclaration(opts?: object): this is NodePath<t.ModuleDeclaration>;536 isExportDeclaration(opts?: object): this is NodePath<t.ExportDeclaration>;537 isModuleSpecifier(opts?: object): this is NodePath<t.ModuleSpecifier>;538 isFlow(opts?: object): this is NodePath<t.Flow>;539 isFlowBaseAnnotation(opts?: object): this is NodePath<t.FlowBaseAnnotation>;540 isFlowDeclaration(opts?: object): this is NodePath<t.FlowDeclaration>;541 isJSX(opts?: object): this is NodePath<t.JSX>;542 isNumberLiteral(opts?: object): this is NodePath<t.NumericLiteral>;543 isRegexLiteral(opts?: object): this is NodePath<t.RegExpLiteral>;544 isReferencedIdentifier(opts?: object): this is NodePath<t.Identifier | t.JSXIdentifier>;545 isReferencedMemberExpression(opts?: object): this is NodePath<t.MemberExpression>;546 isBindingIdentifier(opts?: object): this is NodePath<t.Identifier>;547 isScope(opts?: object): this is NodePath<t.Scopable>;548 isReferenced(opts?: object): boolean;549 isBlockScoped(opts?: object): this is NodePath<t.FunctionDeclaration | t.ClassDeclaration | t.VariableDeclaration>;550 isVar(opts?: object): this is NodePath<t.VariableDeclaration>;551 isUser(opts?: object): boolean;552 isGenerated(opts?: object): boolean;553 isPure(opts?: object): boolean;554 // ------------------------- assertXXX -------------------------555 assertArrayExpression(opts?: object): void;556 assertAssignmentExpression(opts?: object): void;557 assertBinaryExpression(opts?: object): void;558 assertDirective(opts?: object): void;559 assertDirectiveLiteral(opts?: object): void;560 assertBlockStatement(opts?: object): void;561 assertBreakStatement(opts?: object): void;562 assertCallExpression(opts?: object): void;563 assertCatchClause(opts?: object): void;564 assertConditionalExpression(opts?: object): void;565 assertContinueStatement(opts?: object): void;566 assertDebuggerStatement(opts?: object): void;567 assertDoWhileStatement(opts?: object): void;568 assertEmptyStatement(opts?: object): void;569 assertExpressionStatement(opts?: object): void;570 assertFile(opts?: object): void;571 assertForInStatement(opts?: object): void;572 assertForStatement(opts?: object): void;573 assertFunctionDeclaration(opts?: object): void;574 assertFunctionExpression(opts?: object): void;575 assertIdentifier(opts?: object): void;576 assertIfStatement(opts?: object): void;577 assertLabeledStatement(opts?: object): void;578 assertStringLiteral(opts?: object): void;579 assertNumericLiteral(opts?: object): void;580 assertNullLiteral(opts?: object): void;581 assertBooleanLiteral(opts?: object): void;582 assertRegExpLiteral(opts?: object): void;583 assertLogicalExpression(opts?: object): void;584 assertMemberExpression(opts?: object): void;585 assertNewExpression(opts?: object): void;586 assertProgram(opts?: object): void;587 assertObjectExpression(opts?: object): void;588 assertObjectMethod(opts?: object): void;589 assertObjectProperty(opts?: object): void;590 assertRestElement(opts?: object): void;591 assertReturnStatement(opts?: object): void;592 assertSequenceExpression(opts?: object): void;593 assertSwitchCase(opts?: object): void;594 assertSwitchStatement(opts?: object): void;595 assertThisExpression(opts?: object): void;596 assertThrowStatement(opts?: object): void;597 assertTryStatement(opts?: object): void;598 assertUnaryExpression(opts?: object): void;599 assertUpdateExpression(opts?: object): void;600 assertVariableDeclaration(opts?: object): void;601 assertVariableDeclarator(opts?: object): void;602 assertWhileStatement(opts?: object): void;603 assertWithStatement(opts?: object): void;604 assertAssignmentPattern(opts?: object): void;605 assertArrayPattern(opts?: object): void;606 assertArrowFunctionExpression(opts?: object): void;607 assertClassBody(opts?: object): void;608 assertClassDeclaration(opts?: object): void;609 assertClassExpression(opts?: object): void;610 assertExportAllDeclaration(opts?: object): void;611 assertExportDefaultDeclaration(opts?: object): void;612 assertExportNamedDeclaration(opts?: object): void;613 assertExportSpecifier(opts?: object): void;614 assertForOfStatement(opts?: object): void;615 assertImportDeclaration(opts?: object): void;616 assertImportDefaultSpecifier(opts?: object): void;617 assertImportNamespaceSpecifier(opts?: object): void;618 assertImportSpecifier(opts?: object): void;619 assertMetaProperty(opts?: object): void;620 assertClassMethod(opts?: object): void;621 assertObjectPattern(opts?: object): void;622 assertSpreadElement(opts?: object): void;623 assertSuper(opts?: object): void;624 assertTaggedTemplateExpression(opts?: object): void;625 assertTemplateElement(opts?: object): void;626 assertTemplateLiteral(opts?: object): void;627 assertYieldExpression(opts?: object): void;628 assertAnyTypeAnnotation(opts?: object): void;629 assertArrayTypeAnnotation(opts?: object): void;630 assertBooleanTypeAnnotation(opts?: object): void;631 assertBooleanLiteralTypeAnnotation(opts?: object): void;632 assertNullLiteralTypeAnnotation(opts?: object): void;633 assertClassImplements(opts?: object): void;634 assertClassProperty(opts?: object): void;635 assertDeclareClass(opts?: object): void;636 assertDeclareFunction(opts?: object): void;637 assertDeclareInterface(opts?: object): void;638 assertDeclareModule(opts?: object): void;639 assertDeclareTypeAlias(opts?: object): void;640 assertDeclareVariable(opts?: object): void;641 assertExistentialTypeParam(opts?: object): void;642 assertFunctionTypeAnnotation(opts?: object): void;643 assertFunctionTypeParam(opts?: object): void;644 assertGenericTypeAnnotation(opts?: object): void;645 assertInterfaceExtends(opts?: object): void;646 assertInterfaceDeclaration(opts?: object): void;647 assertIntersectionTypeAnnotation(opts?: object): void;648 assertMixedTypeAnnotation(opts?: object): void;649 assertNullableTypeAnnotation(opts?: object): void;650 assertNumericLiteralTypeAnnotation(opts?: object): void;651 assertNumberTypeAnnotation(opts?: object): void;652 assertStringLiteralTypeAnnotation(opts?: object): void;653 assertStringTypeAnnotation(opts?: object): void;654 assertThisTypeAnnotation(opts?: object): void;655 assertTupleTypeAnnotation(opts?: object): void;656 assertTypeofTypeAnnotation(opts?: object): void;657 assertTypeAlias(opts?: object): void;658 assertTypeAnnotation(opts?: object): void;659 assertTypeCastExpression(opts?: object): void;660 assertTypeParameterDeclaration(opts?: object): void;661 assertTypeParameterInstantiation(opts?: object): void;662 assertObjectTypeAnnotation(opts?: object): void;663 assertObjectTypeCallProperty(opts?: object): void;664 assertObjectTypeIndexer(opts?: object): void;665 assertObjectTypeProperty(opts?: object): void;666 assertQualifiedTypeIdentifier(opts?: object): void;667 assertUnionTypeAnnotation(opts?: object): void;668 assertVoidTypeAnnotation(opts?: object): void;669 assertJSXAttribute(opts?: object): void;670 assertJSXClosingElement(opts?: object): void;671 assertJSXElement(opts?: object): void;672 assertJSXEmptyExpression(opts?: object): void;673 assertJSXExpressionContainer(opts?: object): void;674 assertJSXIdentifier(opts?: object): void;675 assertJSXMemberExpression(opts?: object): void;676 assertJSXNamespacedName(opts?: object): void;677 assertJSXOpeningElement(opts?: object): void;678 assertJSXSpreadAttribute(opts?: object): void;679 assertJSXText(opts?: object): void;680 assertNoop(opts?: object): void;681 assertParenthesizedExpression(opts?: object): void;682 assertAwaitExpression(opts?: object): void;683 assertBindExpression(opts?: object): void;684 assertDecorator(opts?: object): void;685 assertDoExpression(opts?: object): void;686 assertExportDefaultSpecifier(opts?: object): void;687 assertExportNamespaceSpecifier(opts?: object): void;688 assertRestProperty(opts?: object): void;689 assertSpreadProperty(opts?: object): void;690 assertExpression(opts?: object): void;691 assertBinary(opts?: object): void;692 assertScopable(opts?: object): void;693 assertBlockParent(opts?: object): void;694 assertBlock(opts?: object): void;695 assertStatement(opts?: object): void;696 assertTerminatorless(opts?: object): void;697 assertCompletionStatement(opts?: object): void;698 assertConditional(opts?: object): void;699 assertLoop(opts?: object): void;700 assertWhile(opts?: object): void;701 assertExpressionWrapper(opts?: object): void;702 assertFor(opts?: object): void;703 assertForXStatement(opts?: object): void;704 assertFunction(opts?: object): void;705 assertFunctionParent(opts?: object): void;706 assertPureish(opts?: object): void;707 assertDeclaration(opts?: object): void;708 assertLVal(opts?: object): void;709 assertLiteral(opts?: object): void;710 assertImmutable(opts?: object): void;711 assertUserWhitespacable(opts?: object): void;712 assertMethod(opts?: object): void;713 assertObjectMember(opts?: object): void;714 assertProperty(opts?: object): void;715 assertUnaryLike(opts?: object): void;716 assertPattern(opts?: object): void;717 assertClass(opts?: object): void;718 assertModuleDeclaration(opts?: object): void;719 assertExportDeclaration(opts?: object): void;720 assertModuleSpecifier(opts?: object): void;721 assertFlow(opts?: object): void;722 assertFlowBaseAnnotation(opts?: object): void;723 assertFlowDeclaration(opts?: object): void;724 assertJSX(opts?: object): void;725 assertNumberLiteral(opts?: object): void;726 assertRegexLiteral(opts?: object): void;727}728export interface HubInterface {729 getCode(): string | undefined;730 getScope(): Scope | undefined;731 addHelper(name: string): any;732 buildError(node: any, msg: string, Error: ErrorConstructor): Error;733}734export class Hub implements HubInterface {735 constructor(file: any, options: any);736 file: any;737 options: any;738 getCode(): string | undefined;739 getScope(): Scope | undefined;740 addHelper(name: string): any;741 buildError(node: any, msg: string, Constructor: typeof Error): Error;742}743export interface TraversalContext {744 parentPath: NodePath;745 scope: Scope;746 state: any;747 opts: any;...

Full Screen

Full Screen

visitor.d.ts

Source:visitor.d.ts Github

copy

Full Screen

1import { NodePath } from "../lib/node-path";2import { Context } from "../lib/path-visitor";3import { namedTypes } from "./namedTypes";4export interface Visitor<M = {}> {5 visitPrintable?(this: Context & M, path: NodePath<namedTypes.Printable>): any;6 visitSourceLocation?(this: Context & M, path: NodePath<namedTypes.SourceLocation>): any;7 visitNode?(this: Context & M, path: NodePath<namedTypes.Node>): any;8 visitComment?(this: Context & M, path: NodePath<namedTypes.Comment>): any;9 visitPosition?(this: Context & M, path: NodePath<namedTypes.Position>): any;10 visitFile?(this: Context & M, path: NodePath<namedTypes.File>): any;11 visitProgram?(this: Context & M, path: NodePath<namedTypes.Program>): any;12 visitStatement?(this: Context & M, path: NodePath<namedTypes.Statement>): any;13 visitFunction?(this: Context & M, path: NodePath<namedTypes.Function>): any;14 visitExpression?(this: Context & M, path: NodePath<namedTypes.Expression>): any;15 visitPattern?(this: Context & M, path: NodePath<namedTypes.Pattern>): any;16 visitIdentifier?(this: Context & M, path: NodePath<namedTypes.Identifier>): any;17 visitBlockStatement?(this: Context & M, path: NodePath<namedTypes.BlockStatement>): any;18 visitEmptyStatement?(this: Context & M, path: NodePath<namedTypes.EmptyStatement>): any;19 visitExpressionStatement?(this: Context & M, path: NodePath<namedTypes.ExpressionStatement>): any;20 visitIfStatement?(this: Context & M, path: NodePath<namedTypes.IfStatement>): any;21 visitLabeledStatement?(this: Context & M, path: NodePath<namedTypes.LabeledStatement>): any;22 visitBreakStatement?(this: Context & M, path: NodePath<namedTypes.BreakStatement>): any;23 visitContinueStatement?(this: Context & M, path: NodePath<namedTypes.ContinueStatement>): any;24 visitWithStatement?(this: Context & M, path: NodePath<namedTypes.WithStatement>): any;25 visitSwitchStatement?(this: Context & M, path: NodePath<namedTypes.SwitchStatement>): any;26 visitSwitchCase?(this: Context & M, path: NodePath<namedTypes.SwitchCase>): any;27 visitReturnStatement?(this: Context & M, path: NodePath<namedTypes.ReturnStatement>): any;28 visitThrowStatement?(this: Context & M, path: NodePath<namedTypes.ThrowStatement>): any;29 visitTryStatement?(this: Context & M, path: NodePath<namedTypes.TryStatement>): any;30 visitCatchClause?(this: Context & M, path: NodePath<namedTypes.CatchClause>): any;31 visitWhileStatement?(this: Context & M, path: NodePath<namedTypes.WhileStatement>): any;32 visitDoWhileStatement?(this: Context & M, path: NodePath<namedTypes.DoWhileStatement>): any;33 visitForStatement?(this: Context & M, path: NodePath<namedTypes.ForStatement>): any;34 visitDeclaration?(this: Context & M, path: NodePath<namedTypes.Declaration>): any;35 visitVariableDeclaration?(this: Context & M, path: NodePath<namedTypes.VariableDeclaration>): any;36 visitForInStatement?(this: Context & M, path: NodePath<namedTypes.ForInStatement>): any;37 visitDebuggerStatement?(this: Context & M, path: NodePath<namedTypes.DebuggerStatement>): any;38 visitFunctionDeclaration?(this: Context & M, path: NodePath<namedTypes.FunctionDeclaration>): any;39 visitFunctionExpression?(this: Context & M, path: NodePath<namedTypes.FunctionExpression>): any;40 visitVariableDeclarator?(this: Context & M, path: NodePath<namedTypes.VariableDeclarator>): any;41 visitThisExpression?(this: Context & M, path: NodePath<namedTypes.ThisExpression>): any;42 visitArrayExpression?(this: Context & M, path: NodePath<namedTypes.ArrayExpression>): any;43 visitObjectExpression?(this: Context & M, path: NodePath<namedTypes.ObjectExpression>): any;44 visitProperty?(this: Context & M, path: NodePath<namedTypes.Property>): any;45 visitLiteral?(this: Context & M, path: NodePath<namedTypes.Literal>): any;46 visitSequenceExpression?(this: Context & M, path: NodePath<namedTypes.SequenceExpression>): any;47 visitUnaryExpression?(this: Context & M, path: NodePath<namedTypes.UnaryExpression>): any;48 visitBinaryExpression?(this: Context & M, path: NodePath<namedTypes.BinaryExpression>): any;49 visitAssignmentExpression?(this: Context & M, path: NodePath<namedTypes.AssignmentExpression>): any;50 visitMemberExpression?(this: Context & M, path: NodePath<namedTypes.MemberExpression>): any;51 visitUpdateExpression?(this: Context & M, path: NodePath<namedTypes.UpdateExpression>): any;52 visitLogicalExpression?(this: Context & M, path: NodePath<namedTypes.LogicalExpression>): any;53 visitConditionalExpression?(this: Context & M, path: NodePath<namedTypes.ConditionalExpression>): any;54 visitNewExpression?(this: Context & M, path: NodePath<namedTypes.NewExpression>): any;55 visitCallExpression?(this: Context & M, path: NodePath<namedTypes.CallExpression>): any;56 visitRestElement?(this: Context & M, path: NodePath<namedTypes.RestElement>): any;57 visitTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TypeAnnotation>): any;58 visitTSTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TSTypeAnnotation>): any;59 visitSpreadElementPattern?(this: Context & M, path: NodePath<namedTypes.SpreadElementPattern>): any;60 visitArrowFunctionExpression?(this: Context & M, path: NodePath<namedTypes.ArrowFunctionExpression>): any;61 visitForOfStatement?(this: Context & M, path: NodePath<namedTypes.ForOfStatement>): any;62 visitYieldExpression?(this: Context & M, path: NodePath<namedTypes.YieldExpression>): any;63 visitGeneratorExpression?(this: Context & M, path: NodePath<namedTypes.GeneratorExpression>): any;64 visitComprehensionBlock?(this: Context & M, path: NodePath<namedTypes.ComprehensionBlock>): any;65 visitComprehensionExpression?(this: Context & M, path: NodePath<namedTypes.ComprehensionExpression>): any;66 visitObjectProperty?(this: Context & M, path: NodePath<namedTypes.ObjectProperty>): any;67 visitPropertyPattern?(this: Context & M, path: NodePath<namedTypes.PropertyPattern>): any;68 visitObjectPattern?(this: Context & M, path: NodePath<namedTypes.ObjectPattern>): any;69 visitArrayPattern?(this: Context & M, path: NodePath<namedTypes.ArrayPattern>): any;70 visitMethodDefinition?(this: Context & M, path: NodePath<namedTypes.MethodDefinition>): any;71 visitSpreadElement?(this: Context & M, path: NodePath<namedTypes.SpreadElement>): any;72 visitAssignmentPattern?(this: Context & M, path: NodePath<namedTypes.AssignmentPattern>): any;73 visitClassPropertyDefinition?(this: Context & M, path: NodePath<namedTypes.ClassPropertyDefinition>): any;74 visitClassProperty?(this: Context & M, path: NodePath<namedTypes.ClassProperty>): any;75 visitClassBody?(this: Context & M, path: NodePath<namedTypes.ClassBody>): any;76 visitClassDeclaration?(this: Context & M, path: NodePath<namedTypes.ClassDeclaration>): any;77 visitClassExpression?(this: Context & M, path: NodePath<namedTypes.ClassExpression>): any;78 visitSpecifier?(this: Context & M, path: NodePath<namedTypes.Specifier>): any;79 visitModuleSpecifier?(this: Context & M, path: NodePath<namedTypes.ModuleSpecifier>): any;80 visitImportSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportSpecifier>): any;81 visitImportNamespaceSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportNamespaceSpecifier>): any;82 visitImportDefaultSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportDefaultSpecifier>): any;83 visitImportDeclaration?(this: Context & M, path: NodePath<namedTypes.ImportDeclaration>): any;84 visitTaggedTemplateExpression?(this: Context & M, path: NodePath<namedTypes.TaggedTemplateExpression>): any;85 visitTemplateLiteral?(this: Context & M, path: NodePath<namedTypes.TemplateLiteral>): any;86 visitTemplateElement?(this: Context & M, path: NodePath<namedTypes.TemplateElement>): any;87 visitSpreadProperty?(this: Context & M, path: NodePath<namedTypes.SpreadProperty>): any;88 visitSpreadPropertyPattern?(this: Context & M, path: NodePath<namedTypes.SpreadPropertyPattern>): any;89 visitAwaitExpression?(this: Context & M, path: NodePath<namedTypes.AwaitExpression>): any;90 visitJSXAttribute?(this: Context & M, path: NodePath<namedTypes.JSXAttribute>): any;91 visitJSXIdentifier?(this: Context & M, path: NodePath<namedTypes.JSXIdentifier>): any;92 visitJSXNamespacedName?(this: Context & M, path: NodePath<namedTypes.JSXNamespacedName>): any;93 visitJSXExpressionContainer?(this: Context & M, path: NodePath<namedTypes.JSXExpressionContainer>): any;94 visitJSXMemberExpression?(this: Context & M, path: NodePath<namedTypes.JSXMemberExpression>): any;95 visitJSXSpreadAttribute?(this: Context & M, path: NodePath<namedTypes.JSXSpreadAttribute>): any;96 visitJSXElement?(this: Context & M, path: NodePath<namedTypes.JSXElement>): any;97 visitJSXOpeningElement?(this: Context & M, path: NodePath<namedTypes.JSXOpeningElement>): any;98 visitJSXClosingElement?(this: Context & M, path: NodePath<namedTypes.JSXClosingElement>): any;99 visitJSXFragment?(this: Context & M, path: NodePath<namedTypes.JSXFragment>): any;100 visitJSXText?(this: Context & M, path: NodePath<namedTypes.JSXText>): any;101 visitJSXOpeningFragment?(this: Context & M, path: NodePath<namedTypes.JSXOpeningFragment>): any;102 visitJSXClosingFragment?(this: Context & M, path: NodePath<namedTypes.JSXClosingFragment>): any;103 visitJSXEmptyExpression?(this: Context & M, path: NodePath<namedTypes.JSXEmptyExpression>): any;104 visitJSXSpreadChild?(this: Context & M, path: NodePath<namedTypes.JSXSpreadChild>): any;105 visitTypeParameterDeclaration?(this: Context & M, path: NodePath<namedTypes.TypeParameterDeclaration>): any;106 visitTSTypeParameterDeclaration?(this: Context & M, path: NodePath<namedTypes.TSTypeParameterDeclaration>): any;107 visitTypeParameterInstantiation?(this: Context & M, path: NodePath<namedTypes.TypeParameterInstantiation>): any;108 visitTSTypeParameterInstantiation?(this: Context & M, path: NodePath<namedTypes.TSTypeParameterInstantiation>): any;109 visitClassImplements?(this: Context & M, path: NodePath<namedTypes.ClassImplements>): any;110 visitTSType?(this: Context & M, path: NodePath<namedTypes.TSType>): any;111 visitTSHasOptionalTypeParameterInstantiation?(this: Context & M, path: NodePath<namedTypes.TSHasOptionalTypeParameterInstantiation>): any;112 visitTSExpressionWithTypeArguments?(this: Context & M, path: NodePath<namedTypes.TSExpressionWithTypeArguments>): any;113 visitFlow?(this: Context & M, path: NodePath<namedTypes.Flow>): any;114 visitFlowType?(this: Context & M, path: NodePath<namedTypes.FlowType>): any;115 visitAnyTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.AnyTypeAnnotation>): any;116 visitEmptyTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.EmptyTypeAnnotation>): any;117 visitMixedTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.MixedTypeAnnotation>): any;118 visitVoidTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.VoidTypeAnnotation>): any;119 visitNumberTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumberTypeAnnotation>): any;120 visitNumberLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumberLiteralTypeAnnotation>): any;121 visitNumericLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumericLiteralTypeAnnotation>): any;122 visitStringTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.StringTypeAnnotation>): any;123 visitStringLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.StringLiteralTypeAnnotation>): any;124 visitBooleanTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.BooleanTypeAnnotation>): any;125 visitBooleanLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.BooleanLiteralTypeAnnotation>): any;126 visitNullableTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NullableTypeAnnotation>): any;127 visitNullLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NullLiteralTypeAnnotation>): any;128 visitNullTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NullTypeAnnotation>): any;129 visitThisTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.ThisTypeAnnotation>): any;130 visitExistsTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.ExistsTypeAnnotation>): any;131 visitExistentialTypeParam?(this: Context & M, path: NodePath<namedTypes.ExistentialTypeParam>): any;132 visitFunctionTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.FunctionTypeAnnotation>): any;133 visitFunctionTypeParam?(this: Context & M, path: NodePath<namedTypes.FunctionTypeParam>): any;134 visitArrayTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.ArrayTypeAnnotation>): any;135 visitObjectTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.ObjectTypeAnnotation>): any;136 visitObjectTypeProperty?(this: Context & M, path: NodePath<namedTypes.ObjectTypeProperty>): any;137 visitObjectTypeSpreadProperty?(this: Context & M, path: NodePath<namedTypes.ObjectTypeSpreadProperty>): any;138 visitObjectTypeIndexer?(this: Context & M, path: NodePath<namedTypes.ObjectTypeIndexer>): any;139 visitObjectTypeCallProperty?(this: Context & M, path: NodePath<namedTypes.ObjectTypeCallProperty>): any;140 visitObjectTypeInternalSlot?(this: Context & M, path: NodePath<namedTypes.ObjectTypeInternalSlot>): any;141 visitVariance?(this: Context & M, path: NodePath<namedTypes.Variance>): any;142 visitQualifiedTypeIdentifier?(this: Context & M, path: NodePath<namedTypes.QualifiedTypeIdentifier>): any;143 visitGenericTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.GenericTypeAnnotation>): any;144 visitMemberTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.MemberTypeAnnotation>): any;145 visitUnionTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.UnionTypeAnnotation>): any;146 visitIntersectionTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.IntersectionTypeAnnotation>): any;147 visitTypeofTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TypeofTypeAnnotation>): any;148 visitTypeParameter?(this: Context & M, path: NodePath<namedTypes.TypeParameter>): any;149 visitInterfaceTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.InterfaceTypeAnnotation>): any;150 visitInterfaceExtends?(this: Context & M, path: NodePath<namedTypes.InterfaceExtends>): any;151 visitInterfaceDeclaration?(this: Context & M, path: NodePath<namedTypes.InterfaceDeclaration>): any;152 visitDeclareInterface?(this: Context & M, path: NodePath<namedTypes.DeclareInterface>): any;153 visitTypeAlias?(this: Context & M, path: NodePath<namedTypes.TypeAlias>): any;154 visitOpaqueType?(this: Context & M, path: NodePath<namedTypes.OpaqueType>): any;155 visitDeclareTypeAlias?(this: Context & M, path: NodePath<namedTypes.DeclareTypeAlias>): any;156 visitDeclareOpaqueType?(this: Context & M, path: NodePath<namedTypes.DeclareOpaqueType>): any;157 visitTypeCastExpression?(this: Context & M, path: NodePath<namedTypes.TypeCastExpression>): any;158 visitTupleTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TupleTypeAnnotation>): any;159 visitDeclareVariable?(this: Context & M, path: NodePath<namedTypes.DeclareVariable>): any;160 visitDeclareFunction?(this: Context & M, path: NodePath<namedTypes.DeclareFunction>): any;161 visitDeclareClass?(this: Context & M, path: NodePath<namedTypes.DeclareClass>): any;162 visitDeclareModule?(this: Context & M, path: NodePath<namedTypes.DeclareModule>): any;163 visitDeclareModuleExports?(this: Context & M, path: NodePath<namedTypes.DeclareModuleExports>): any;164 visitDeclareExportDeclaration?(this: Context & M, path: NodePath<namedTypes.DeclareExportDeclaration>): any;165 visitExportSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportSpecifier>): any;166 visitExportBatchSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportBatchSpecifier>): any;167 visitDeclareExportAllDeclaration?(this: Context & M, path: NodePath<namedTypes.DeclareExportAllDeclaration>): any;168 visitFlowPredicate?(this: Context & M, path: NodePath<namedTypes.FlowPredicate>): any;169 visitInferredPredicate?(this: Context & M, path: NodePath<namedTypes.InferredPredicate>): any;170 visitDeclaredPredicate?(this: Context & M, path: NodePath<namedTypes.DeclaredPredicate>): any;171 visitExportDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportDeclaration>): any;172 visitBlock?(this: Context & M, path: NodePath<namedTypes.Block>): any;173 visitLine?(this: Context & M, path: NodePath<namedTypes.Line>): any;174 visitNoop?(this: Context & M, path: NodePath<namedTypes.Noop>): any;175 visitDoExpression?(this: Context & M, path: NodePath<namedTypes.DoExpression>): any;176 visitSuper?(this: Context & M, path: NodePath<namedTypes.Super>): any;177 visitBindExpression?(this: Context & M, path: NodePath<namedTypes.BindExpression>): any;178 visitDecorator?(this: Context & M, path: NodePath<namedTypes.Decorator>): any;179 visitMetaProperty?(this: Context & M, path: NodePath<namedTypes.MetaProperty>): any;180 visitParenthesizedExpression?(this: Context & M, path: NodePath<namedTypes.ParenthesizedExpression>): any;181 visitExportDefaultDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportDefaultDeclaration>): any;182 visitExportNamedDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportNamedDeclaration>): any;183 visitExportNamespaceSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportNamespaceSpecifier>): any;184 visitExportDefaultSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportDefaultSpecifier>): any;185 visitExportAllDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportAllDeclaration>): any;186 visitCommentBlock?(this: Context & M, path: NodePath<namedTypes.CommentBlock>): any;187 visitCommentLine?(this: Context & M, path: NodePath<namedTypes.CommentLine>): any;188 visitDirective?(this: Context & M, path: NodePath<namedTypes.Directive>): any;189 visitDirectiveLiteral?(this: Context & M, path: NodePath<namedTypes.DirectiveLiteral>): any;190 visitInterpreterDirective?(this: Context & M, path: NodePath<namedTypes.InterpreterDirective>): any;191 visitStringLiteral?(this: Context & M, path: NodePath<namedTypes.StringLiteral>): any;192 visitNumericLiteral?(this: Context & M, path: NodePath<namedTypes.NumericLiteral>): any;193 visitBigIntLiteral?(this: Context & M, path: NodePath<namedTypes.BigIntLiteral>): any;194 visitNullLiteral?(this: Context & M, path: NodePath<namedTypes.NullLiteral>): any;195 visitBooleanLiteral?(this: Context & M, path: NodePath<namedTypes.BooleanLiteral>): any;196 visitRegExpLiteral?(this: Context & M, path: NodePath<namedTypes.RegExpLiteral>): any;197 visitObjectMethod?(this: Context & M, path: NodePath<namedTypes.ObjectMethod>): any;198 visitClassPrivateProperty?(this: Context & M, path: NodePath<namedTypes.ClassPrivateProperty>): any;199 visitClassMethod?(this: Context & M, path: NodePath<namedTypes.ClassMethod>): any;200 visitClassPrivateMethod?(this: Context & M, path: NodePath<namedTypes.ClassPrivateMethod>): any;201 visitPrivateName?(this: Context & M, path: NodePath<namedTypes.PrivateName>): any;202 visitRestProperty?(this: Context & M, path: NodePath<namedTypes.RestProperty>): any;203 visitForAwaitStatement?(this: Context & M, path: NodePath<namedTypes.ForAwaitStatement>): any;204 visitImport?(this: Context & M, path: NodePath<namedTypes.Import>): any;205 visitTSQualifiedName?(this: Context & M, path: NodePath<namedTypes.TSQualifiedName>): any;206 visitTSTypeReference?(this: Context & M, path: NodePath<namedTypes.TSTypeReference>): any;207 visitTSHasOptionalTypeParameters?(this: Context & M, path: NodePath<namedTypes.TSHasOptionalTypeParameters>): any;208 visitTSHasOptionalTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TSHasOptionalTypeAnnotation>): any;209 visitTSAsExpression?(this: Context & M, path: NodePath<namedTypes.TSAsExpression>): any;210 visitTSNonNullExpression?(this: Context & M, path: NodePath<namedTypes.TSNonNullExpression>): any;211 visitTSAnyKeyword?(this: Context & M, path: NodePath<namedTypes.TSAnyKeyword>): any;212 visitTSBigIntKeyword?(this: Context & M, path: NodePath<namedTypes.TSBigIntKeyword>): any;213 visitTSBooleanKeyword?(this: Context & M, path: NodePath<namedTypes.TSBooleanKeyword>): any;214 visitTSNeverKeyword?(this: Context & M, path: NodePath<namedTypes.TSNeverKeyword>): any;215 visitTSNullKeyword?(this: Context & M, path: NodePath<namedTypes.TSNullKeyword>): any;216 visitTSNumberKeyword?(this: Context & M, path: NodePath<namedTypes.TSNumberKeyword>): any;217 visitTSObjectKeyword?(this: Context & M, path: NodePath<namedTypes.TSObjectKeyword>): any;218 visitTSStringKeyword?(this: Context & M, path: NodePath<namedTypes.TSStringKeyword>): any;219 visitTSSymbolKeyword?(this: Context & M, path: NodePath<namedTypes.TSSymbolKeyword>): any;220 visitTSUndefinedKeyword?(this: Context & M, path: NodePath<namedTypes.TSUndefinedKeyword>): any;221 visitTSUnknownKeyword?(this: Context & M, path: NodePath<namedTypes.TSUnknownKeyword>): any;222 visitTSVoidKeyword?(this: Context & M, path: NodePath<namedTypes.TSVoidKeyword>): any;223 visitTSThisType?(this: Context & M, path: NodePath<namedTypes.TSThisType>): any;224 visitTSArrayType?(this: Context & M, path: NodePath<namedTypes.TSArrayType>): any;225 visitTSLiteralType?(this: Context & M, path: NodePath<namedTypes.TSLiteralType>): any;226 visitTSUnionType?(this: Context & M, path: NodePath<namedTypes.TSUnionType>): any;227 visitTSIntersectionType?(this: Context & M, path: NodePath<namedTypes.TSIntersectionType>): any;228 visitTSConditionalType?(this: Context & M, path: NodePath<namedTypes.TSConditionalType>): any;229 visitTSInferType?(this: Context & M, path: NodePath<namedTypes.TSInferType>): any;230 visitTSTypeParameter?(this: Context & M, path: NodePath<namedTypes.TSTypeParameter>): any;231 visitTSParenthesizedType?(this: Context & M, path: NodePath<namedTypes.TSParenthesizedType>): any;232 visitTSFunctionType?(this: Context & M, path: NodePath<namedTypes.TSFunctionType>): any;233 visitTSConstructorType?(this: Context & M, path: NodePath<namedTypes.TSConstructorType>): any;234 visitTSDeclareFunction?(this: Context & M, path: NodePath<namedTypes.TSDeclareFunction>): any;235 visitTSDeclareMethod?(this: Context & M, path: NodePath<namedTypes.TSDeclareMethod>): any;236 visitTSMappedType?(this: Context & M, path: NodePath<namedTypes.TSMappedType>): any;237 visitTSTupleType?(this: Context & M, path: NodePath<namedTypes.TSTupleType>): any;238 visitTSRestType?(this: Context & M, path: NodePath<namedTypes.TSRestType>): any;239 visitTSOptionalType?(this: Context & M, path: NodePath<namedTypes.TSOptionalType>): any;240 visitTSIndexedAccessType?(this: Context & M, path: NodePath<namedTypes.TSIndexedAccessType>): any;241 visitTSTypeOperator?(this: Context & M, path: NodePath<namedTypes.TSTypeOperator>): any;242 visitTSIndexSignature?(this: Context & M, path: NodePath<namedTypes.TSIndexSignature>): any;243 visitTSPropertySignature?(this: Context & M, path: NodePath<namedTypes.TSPropertySignature>): any;244 visitTSMethodSignature?(this: Context & M, path: NodePath<namedTypes.TSMethodSignature>): any;245 visitTSTypePredicate?(this: Context & M, path: NodePath<namedTypes.TSTypePredicate>): any;246 visitTSCallSignatureDeclaration?(this: Context & M, path: NodePath<namedTypes.TSCallSignatureDeclaration>): any;247 visitTSConstructSignatureDeclaration?(this: Context & M, path: NodePath<namedTypes.TSConstructSignatureDeclaration>): any;248 visitTSEnumMember?(this: Context & M, path: NodePath<namedTypes.TSEnumMember>): any;249 visitTSTypeQuery?(this: Context & M, path: NodePath<namedTypes.TSTypeQuery>): any;250 visitTSImportType?(this: Context & M, path: NodePath<namedTypes.TSImportType>): any;251 visitTSTypeLiteral?(this: Context & M, path: NodePath<namedTypes.TSTypeLiteral>): any;252 visitTSTypeAssertion?(this: Context & M, path: NodePath<namedTypes.TSTypeAssertion>): any;253 visitTSEnumDeclaration?(this: Context & M, path: NodePath<namedTypes.TSEnumDeclaration>): any;254 visitTSTypeAliasDeclaration?(this: Context & M, path: NodePath<namedTypes.TSTypeAliasDeclaration>): any;255 visitTSModuleBlock?(this: Context & M, path: NodePath<namedTypes.TSModuleBlock>): any;256 visitTSModuleDeclaration?(this: Context & M, path: NodePath<namedTypes.TSModuleDeclaration>): any;257 visitTSImportEqualsDeclaration?(this: Context & M, path: NodePath<namedTypes.TSImportEqualsDeclaration>): any;258 visitTSExternalModuleReference?(this: Context & M, path: NodePath<namedTypes.TSExternalModuleReference>): any;259 visitTSExportAssignment?(this: Context & M, path: NodePath<namedTypes.TSExportAssignment>): any;260 visitTSNamespaceExportDeclaration?(this: Context & M, path: NodePath<namedTypes.TSNamespaceExportDeclaration>): any;261 visitTSInterfaceBody?(this: Context & M, path: NodePath<namedTypes.TSInterfaceBody>): any;262 visitTSInterfaceDeclaration?(this: Context & M, path: NodePath<namedTypes.TSInterfaceDeclaration>): any;263 visitTSParameterProperty?(this: Context & M, path: NodePath<namedTypes.TSParameterProperty>): any;264 visitOptionalMemberExpression?(this: Context & M, path: NodePath<namedTypes.OptionalMemberExpression>): any;265 visitOptionalCallExpression?(this: Context & M, path: NodePath<namedTypes.OptionalCallExpression>): any;...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var nodePath = require('stryker-parent').nodePath;2console.log(nodePath);3var nodePath = require('stryker-parent').nodePath;4console.log(nodePath);5var nodePath = require('stryker-parent').nodePath;6console.log(nodePath);7var nodePath = require('stryker-parent').nodePath;8console.log(nodePath);9var nodePath = require('stryker-parent').nodePath;10console.log(nodePath);11var nodePath = require('stryker-parent').nodePath;12console.log(nodePath);13var nodePath = require('stryker-parent').nodePath;14console.log(nodePath);15var nodePath = require('stryker-parent').nodePath;16console.log(nodePath);17var nodePath = require('stryker-parent').nodePath;18console.log(nodePath);19var nodePath = require('stryker-parent').nodePath;20console.log(nodePath);21var nodePath = require('stryker-parent').nodePath;22console.log(nodePath);23var nodePath = require('stryker-parent').nodePath;24console.log(nodePath);25var nodePath = require('stryker-parent').nodePath;26console.log(nodePath);

Full Screen

Using AI Code Generation

copy

Full Screen

1const nodePath = require('stryker-parent').nodePath;2const resolve = require('stryker-parent').resolve;3const resolveFrom = require('stryker-parent').resolveFrom;4const resolveFromParent = require('stryker-parent').resolveFromParent;5const resolveFromChild = require('stryker-parent').resolveFromChild;6const resolveFromSibling = require('stryker-parent').resolveFromSibling;7const resolveFromSiblingParent = require('stryker-parent').resolveFromSiblingParent;8const resolveFromSiblingChild = require('stryker-parent').resolveFromSiblingChild;9const resolveFromChildParent = require('stryker-parent').resolveFromChildParent;10const resolveFromChildChild = require('stryker-parent').resolveFromChildChild;11const resolveFromGrandChild = require('stryker-parent').resolveFromGrandChild;12const resolveFromGrandChildParent = require('stryker-parent').resolveFromGrandChildParent;13const resolveFromGrandChildChild = require('stryker-parent').resolveFromGrandChildChild;14const resolveFromGrandChildSibling = require('stryker-parent').resolveFromGrandChildSibling;15const resolveFromGrandChildSiblingParent = require('stryker-parent').resolveFromGrandChildSiblingParent;16const resolveFromGrandChildSiblingChild = require('stryker-parent').resolveFromGrandChildSiblingChild;17const resolveFromGrandChildSiblingSibling = require('stryker-parent').resolveFromGrandChildSiblingSibling;

Full Screen

Using AI Code Generation

copy

Full Screen

1const nodePath = require('stryker-parent').nodePath;2const path = require('path');3const myPath = nodePath('myPath');4const myPath2 = nodePath('myPath2');5const myPath3 = nodePath('myPath3');6const myPath4 = nodePath('myPath4');7console.log(path.resolve(myPath));8console.log(path.resolve(myPath2));9console.log(path.resolve(myPath3));10console.log(path.resolve(myPath4));11const nodePath = require('stryker-parent').nodePath;12const path = require('path');13const myPath = nodePath('myPath');14const myPath2 = nodePath('myPath2');15const myPath3 = nodePath('myPath3');16const myPath4 = nodePath('myPath4');17console.log(path.resolve(myPath));18console.log(path.resolve(myPath2));19console.log(path.resolve(myPath3));20console.log(path.resolve(myPath4));21const nodePath = require('stryker-parent').nodePath;22const path = require('path');23const myPath = nodePath('myPath');24const myPath2 = nodePath('myPath2');25const myPath3 = nodePath('myPath3');26const myPath4 = nodePath('myPath4');27console.log(path.resolve(myPath));28console.log(path.resolve(myPath2));29console.log(path.resolve(myPath3));30console.log(path.resolve(myPath4));31const nodePath = require('stryker-parent').nodePath;32const path = require('path');33const myPath = nodePath('myPath');34const myPath2 = nodePath('myPath2');35const myPath3 = nodePath('myPath3');36const myPath4 = nodePath('myPath4');37console.log(path.resolve(myPath));38console.log(path.resolve(myPath2));39console.log(path.resolve(myPath3));40console.log(path.resolve(myPath4));41const nodePath = require('stryker-parent').nodePath;42const path = require('path');43const myPath = nodePath('myPath');

Full Screen

Using AI Code Generation

copy

Full Screen

1var nodePath = require('stryker-parent').nodePath;2var path = require('path');3var myPath = path.join(nodePath, 'node_modules', 'myModule');4var nodePath = require('stryker-parent').nodePath;5var path = require('path');6var myPath = path.join(nodePath, 'node_modules', 'myModule');7var path = require('path');8var myPath = path.join(__dirname, 'node_modules', 'myModule');9var path = require('path');10var myPath = path.join(__dirname, 'node_modules', 'myModule');11var path = require('path');12var myPath = path.join(__dirname, 'node_modules', 'myModule');13var path = require('path');14var myPath = path.join(__dirname, 'node_modules', 'myModule');15var path = require('path');16var myPath = path.join(__dirname, 'node_modules', 'myModule');17var path = require('path');18var myPath = path.join(__dirname, 'node_modules', 'myModule');19var path = require('path');20var myPath = path.join(__dirname, 'node_modules', 'myModule');21var path = require('path');22var myPath = path.join(__dirname, 'node_modules', 'myModule');

Full Screen

Using AI Code Generation

copy

Full Screen

1var nodePath = require('stryker-parent').nodePath;2var path = require('path');3console.log(path.relative(nodePath(), __dirname));4var nodePath = require('stryker-parent').nodePath;5var path = require('path');6console.log(path.relative(nodePath(), __dirname));7var nodePath = require('stryker-parent').nodePath;8var path = require('path');9console.log(path.relative(nodePath(), __dirname));10var nodePath = require('stryker-parent').nodePath;11var path = require('path');12console.log(path.relative(nodePath(), __dirname));13var nodePath = require('stryker-parent').nodePath;14var path = require('path');15console.log(path.relative(nodePath(), __dirname));16var nodePath = require('stryker-parent').nodePath;17var path = require('path');18console.log(path.relative(nodePath(), __dirname));19var nodePath = require('stryker-parent').nodePath;20var path = require('path');21console.log(path.relative(nodePath(), __dirname));22var nodePath = require('stryker-parent').nodePath;23var path = require('path');24console.log(path.relative(nodePath(), __dirname));25var nodePath = require('stryker-parent').nodePath;26var path = require('path');27console.log(path.relative(nodePath(), __dirname));28var nodePath = require('stryker-parent').nodePath;29var path = require('path');30console.log(path.relative(nodePath(), __dirname));

Full Screen

Using AI Code Generation

copy

Full Screen

1var nodePath = require('stryker-parent').nodePath;2console.log(nodePath);3var nodePath = require('stryker-parent').nodePath;4console.log(nodePath);5var nodePath = require('stryker-parent').nodePath;6console.log(nodePath);7var nodePath = require('stryker-parent').nodePath;8console.log(nodePath);9var nodePath = require('stryker-parent').nodePath;10console.log(nodePath);11var nodePath = require('stryker-parent').nodePath;12console.log(nodePath);13var nodePath = require('stryker-parent').nodePath;14console.log(nodePath);15var nodePath = require('stryker-parent').nodePath;16console.log(nodePath);17var nodePath = require('stryker-parent').nodePath;18console.log(nodePath);19var nodePath = require('stryker-parent').nodePath;20console.log(nodePath);21var nodePath = require('stryker-parent').nodePath;22console.log(nodePath);

Full Screen

Using AI Code Generation

copy

Full Screen

1const nodePath = require('stryker-parent').nodePath;2const path = require('path');3const myPath = nodePath('myPath');4const myPath2 = nodePath('myPath2');5const nodePath = require('stryker-parent').nodePath;6const path = require('path');7const myPath = nodePath('myPath');8const myPath2 = nodePath('myPath2');9const nodePath = require('stryker-parent').nodePath;10const path = require('path');11const myPath = nodePath('myPath');12const myPath2 = nodePath('myPath2');13const nodePath = require('stryker-parent').nodePath;14const path = require('path');15const myPath = nodePath('myPath');16const myPath2 = nodePath('myPath2');17const nodePath = require('stryker-parent').nodePath;18const path = require('path');19const myPath = nodePath('myPath');20const myPath2 = nodePath('myPath2');21const nodePath = require('stryker-parent').nodePath;

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run stryker-parent automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful