-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
151 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package refactor; | ||
|
||
import refactor.ITyper; | ||
import refactor.RefactorContext; | ||
import refactor.discover.FileList; | ||
import refactor.discover.NameMap; | ||
import refactor.discover.TypeList; | ||
|
||
typedef CanRefactorContext = { | ||
var nameMap:NameMap; | ||
var fileList:FileList; | ||
var typeList:TypeList; | ||
var what:RefactorWhat; | ||
var verboseLog:VerboseLogger; | ||
var typer:Null<ITyper>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package refactor; | ||
|
||
import refactor.discover.IdentifierPos; | ||
|
||
typedef CanRefactorResult = { | ||
var name:String; | ||
var pos:IdentifierPos; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
package refactor; | ||
|
||
import haxe.PosInfos; | ||
import refactor.ITyper; | ||
import refactor.discover.FileList; | ||
import refactor.discover.NameMap; | ||
import refactor.discover.TypeList; | ||
import refactor.edits.IEditableDocument; | ||
|
||
typedef RefactorContext = { | ||
var nameMap:NameMap; | ||
var fileList:FileList; | ||
var typeList:TypeList; | ||
typedef RefactorContext = CanRefactorContext & { | ||
var what:RefactorWhat; | ||
var forRealExecute:Bool; | ||
var docFactory:(fileName:String) -> IEditableDocument; | ||
var verboseLog:VerboseLogger; | ||
var typer:Null<ITyper>; | ||
} | ||
|
||
typedef VerboseLogger = (text:String, ?pos:PosInfos) -> Void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters