Global

Type Definitions

Action

Action
Properties:
Name Type Attributes Description
start number start position of the action
end number end position of the action
newCode string <optional>
the new generated source code
Source:
Type:
  • Object

InsertOptions

Insert options
Properties:
Name Type Attributes Default Description
at string <optional>
"end" position to insert, "beginning" or "end"
to string <optional>
selector to find the child ast node
Source:
Type:
  • Object

ProcessResult

Process Result
Properties:
Name Type Attributes Description
affected boolean if the source code is affected
conflicted boolean if the actions are conflicted
newSource string <optional>
the new generated source code
Source:
Type:
  • Object

ReplaceOptions

Replace options
Properties:
Name Type Description
with string new code to replace with
Source:
Type:
  • Object

TestResult

Test Result
Properties:
Name Type Description
affected boolean if the source code is affected
conflicted boolean if the actions are conflicted
actions Array.<Action> actions to be processed
Source:
Type:
  • Object