-
Notifications
You must be signed in to change notification settings - Fork 106
Simplify, rename, refactor Ident parsing #266
Conversation
Just noticed that |
If that is where the possible completions are found, then it is at On Fri, Dec 20, 2013 at 12:45 PM, Dave Thomas [email protected]:
|
|
||
let loc, line, col, currentLine, lineStr = preCrack (offset, doc) | ||
|
||
let FindLongIdents (col, lineStr) = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
be consistent with the local style and use camelCase here
looks ok to merge |
master is currently broken, completion lists broken #267, I was hoping to get it fixed while doing this. Ive run out of time for now though. Ive switched back for 3.2.21 for now. |
Just pushed a fix for #267 On Fri, Dec 20, 2013 at 6:48 PM, Dave Thomas [email protected]:
|
… refactorIdentParsing Conflicts: monodevelop/MonoDevelop.FSharpBinding/Services/LanguageService.fs
think the fix is merged in, as is the correct camel case. Im not sure where we want to move this to for reuse? new file with a module in, or add to the parser one? |
@rneatherway I think a made GetDeclarations work the same as you do in AutoComplete, I think you may do some filtering latter on though. You might want to merge that bit in, I don't know exactly if thats a special case for you though...? |
Thanks dave, I'll take a look tomorrow morning. Just doing some family tech
|
Also remove redundant 'currentIdent' which was returned separately. We don't need this anymore and it is included in the identIsland anyway.
Also change fsautocomplete to use the merged parsing code
Sorry I meant to push to my own repo and then submit a PR to this branch. In any case, what I did here was to separate out the parsing code from the completions function into another I'm not wedded to these functions being in Parsing, now that they are being used successfully by both projects we can move them around easily. I'm really pleased we've managed to get this done, that duplication was very unsatisfactory. Hopefully we can factor out more as time goes on. |
As I understand it this is ready to merge? |
Yes as far as I'm concerned. It passes the emacs/fsautocomplete tests and On Sat, Dec 21, 2013 at 4:13 PM, Don Syme [email protected] wrote:
|
Simplify, rename, refactor Ident parsing
Cool! I find it easier when we have a fork in the main repo rather than in a clone, it saves mucking about with multiple remotes. |
Ive opened this pull request so we can track the refactoring left to do on the Ident parsing.
It also means that anyone can work on this by submitting a PR to this branch.
Next step is to review this code to see if there are any other simplifications we can do before moving it to the FSharp.CompilerBinding project.