Skip to content

Commit

Permalink
removed non-methods from doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoverson committed Jul 9, 2020
1 parent b549b18 commit e979053
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
25 changes: 0 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,11 @@ const names = $bindingIdentifiers.map(node => node.name);
- [`.first()`](#first)
- [`.forEach(iterator)`](#foreachiterator)
- [`.get(index)`](#getindex)
- [`.length()`](#length)
- [`.logOut()`](#logout)
- [`.lookupVariable()`](#lookupvariable)
- [`.lookupVariableByName(name)`](#lookupvariablebynamename)
- [`.map(iterator)`](#mapiterator)
- [`.nodes()`](#nodes)
- [`.parents()`](#parents)
- [`.plugins()`](#plugins)
- [`.prepend(replacer)`](#prependreplacer)
- [`.print()`](#print)
- [`.query(selector)`](#queryselector)
Expand All @@ -187,8 +184,6 @@ const names = $bindingIdentifiers.map(node => node.name);
- [`.replace(replacer)`](#replacereplacer)
- [`.replaceAsync(replacer)`](#replaceasyncreplacer)
- [`.replaceChildren(query, replacer)`](#replacechildrenquery-replacer)
- [`.root()`](#root)
- [`.session()`](#session)
- [`.toJSON()`](#tojson)

#### `.$(queryOrNodes)`
Expand Down Expand Up @@ -478,10 +473,6 @@ $script = refactor(src);
const thirdString = $script('LiteralStringExpression').get(2);
```

#### `.length()`



#### `.logOut()`

`console.log()`s the selected nodes. Useful for inserting into a chain to see what nodes you are working with.
Expand Down Expand Up @@ -568,10 +559,6 @@ $script = refactor(src);
const values = $script('BindingIdentifier').map(node => node.name);
```

#### `.nodes()`



#### `.parents()`

Retrieve parent node(s)
Expand All @@ -590,10 +577,6 @@ const declarators = $script('VariableDeclarator');
const declaration = declarators.parents();
```

#### `.plugins()`



#### `.prepend(replacer)`

Inserts the result of`replacer`before the selected statement.
Expand Down Expand Up @@ -774,14 +757,6 @@ $script.replaceChildren(
);
```

#### `.root()`



#### `.session()`



#### `.toJSON()`

JSON-ifies the current selected nodes.
Expand Down
2 changes: 1 addition & 1 deletion etc/README.template
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const names = $bindingIdentifiers.map(node => node.name);
```

### Methods
<% const members = exports['shift-refactor!RefactorSessionChainable:class'].members.filter(m => m.kind !== 'Constructor').sort((a,b) => a.name.localeCompare(b.name));%><% members.forEach((member) => {%>
<% const members = exports['shift-refactor!RefactorSessionChainable:class'].members.filter(m => m.kind === 'Method').sort((a,b) => a.name.localeCompare(b.name));%><% members.forEach((member) => {%>
- [`<%= callSignature(member)%>`](#<%= linkify(callSignature(member)) %>)<%});%>
<% members.forEach((member) => {%>
#### `<%= callSignature(member) %>`
Expand Down

0 comments on commit e979053

Please sign in to comment.