Skip to content

Commit

Permalink
removed custom Extractor, will just deal with warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoverson committed Jul 21, 2020
1 parent e979053 commit 6bac756
Show file tree
Hide file tree
Showing 9 changed files with 2,516 additions and 7,321 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
package-lock.json
dist
.tmp
4 changes: 2 additions & 2 deletions generated/shift-refactor.api.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"metadata": {
"toolPackage": "shift-refactor",
"toolVersion": "0.3.1",
"toolPackage": "@microsoft/api-extractor",
"toolVersion": "7.9.2",
"schemaVersion": 1003,
"oldestForwardsCompatibleVersion": 1001
},
Expand Down
45 changes: 9 additions & 36 deletions generated/shift-refactor.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import { Statement } from 'shift-ast';
import { Variable } from 'shift-scope';
import { VariableDeclarator } from 'shift-ast';

// @public (undocumented)
// @public
export type AsyncReplacer = Replacer | ((node: Node) => Promise<Node | string>);

// @public (undocumented)
// @public
export class GlobalState {
// Warning: (ae-forgotten-export) The symbol "GlobalStateOptions" needs to be exported by the entry point index.d.ts
constructor(sourceOrNode: string | Node, config?: GlobalStateOptions);
Expand Down Expand Up @@ -111,16 +111,16 @@ export enum PureFunctionVerdict {

// Warning: (ae-forgotten-export) The symbol "RefactorQueryAPI" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
// @public
export function refactor(input: string | Node, options?: GlobalStateOptions): RefactorQueryAPI;

// @public (undocumented)
// @public
export class RefactorError extends Error {
}

// Warning: (ae-internal-missing-underscore) The name "RefactorSession" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal @deprecated (undocumented)
// @internal @deprecated
export class RefactorSession {
// (undocumented)
$(querySessionOrNodes: SelectorOrNode | RefactorSession): RefactorSession;
Expand Down Expand Up @@ -183,94 +183,67 @@ export class RefactorSession {

// Warning: (ae-forgotten-export) The symbol "Pluggable" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
// @public
export interface RefactorSessionChainable extends Pluggable {
}

// @public (undocumented)
// @public
export class RefactorSessionChainable {
// (undocumented)
$(queryOrNodes: SelectorOrNode): RefactorQueryAPI;
// Warning: (ae-incompatible-release-tags) The symbol "__constructor" is marked as @public, but its signature references "RefactorSession" which is marked as @internal
constructor(session: RefactorSession);
// (undocumented)
append(replacer: Replacer): RefactorSessionChainable;
// (undocumented)
closest(closestSelector: string): RefactorQueryAPI;
// (undocumented)
codegen(): any[];
// @internal (undocumented)
static create(session: RefactorSession): RefactorQueryAPI;
// (undocumented)
declarations(): Declaration[][];
// (undocumented)
delete(): this;
// (undocumented)
find(iterator: (node: any, i?: number) => any): RefactorQueryAPI;
// (undocumented)
findMatchingExpression(sampleSrc: string): RefactorQueryAPI;
// (undocumented)
findMatchingStatement(sampleSrc: string): RefactorQueryAPI;
// (undocumented)
findOne(selectorOrNode: string): RefactorQueryAPI;
// (undocumented)
first(): Node;
// (undocumented)
forEach(iterator: (node: any, i?: number) => any): RefactorSessionChainable;
// (undocumented)
get(index: number): Node;
// (undocumented)
get length(): number;
// (undocumented)
logOut(): this;
// (undocumented)
lookupVariable(): Variable[];
// (undocumented)
lookupVariableByName(name: string): Variable[];
// (undocumented)
map(iterator: (node: any, i?: number) => any): any[];
// (undocumented)
get nodes(): Node[];
// (undocumented)
parents(): RefactorQueryAPI;
// Warning: (ae-forgotten-export) The symbol "Plugin" needs to be exported by the entry point index.d.ts
//
// (undocumented)
static plugins: Plugin[];
// (undocumented)
prepend(replacer: Replacer): RefactorSessionChainable;
// (undocumented)
print(): any;
// (undocumented)
query(selector: string | string[]): RefactorQueryAPI;
// (undocumented)
references(): Reference[][];
// (undocumented)
rename(newName: string): this;
// (undocumented)
replace(replacer: Replacer): RefactorSessionChainable;
// (undocumented)
replaceAsync(replacer: AsyncReplacer): Promise<number>;
// (undocumented)
replaceChildren(query: SelectorOrNode, replacer: Replacer): RefactorSessionChainable;
// (undocumented)
get root(): Node;
// Warning: (ae-incompatible-release-tags) The symbol "session" is marked as @public, but its signature references "RefactorSession" which is marked as @internal
//
// (undocumented)
session: RefactorSession;
// (undocumented)
toJSON(): string;
// Warning: (ae-forgotten-export) The symbol "Constructor" needs to be exported by the entry point index.d.ts
//
// @internal (undocumented)
static with<S extends Constructor<any> & Pluggable, T extends Plugin>(this: S, plugin: T): S & Pluggable & Constructor<ReturnType<T>>;
}

// @public (undocumented)
// @public
export type Replacer = Node | string | ((node: Node) => string | Node);

// @public (undocumented)
// @public
export type SelectorOrNode = string | string[] | Node | Node[];


Expand Down
Loading

0 comments on commit 6bac756

Please sign in to comment.