Skip to content

Conversation

@vasily-kirichenko
Copy link
Contributor

@vasily-kirichenko vasily-kirichenko commented Dec 25, 2016

image

  • use the cached lexer result to find last ; token
  • keep own cache of <line number -> FSharpTokenizerLexState * Location>, if a FSharpTokenizerLexState has changed since last time, ask the lexer cache for all tokens * FSharpTokenizerLexState and update our cache

@forki
Copy link
Contributor

forki commented Dec 25, 2016

This one should be run against the compiler itself ;-)

Copy link
Contributor

@KevinRansom KevinRansom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

@cartermp cartermp changed the title Remove trailing semicolon analyzer & code fix Remove trailing semicolon analyzer & code fix and Refactor lexer logic in helpers into a MEF class Dec 26, 2016
@cartermp
Copy link
Contributor

Renamed the PR to reflect that this PR is two things:

  • Semicolon analyzer and code fix
  • Refactoring of lexer logic into a MEF class to be used in other IDE services

@vasily-kirichenko
Copy link
Contributor Author

@dotnet-bot test this please

…tead of ToString + GetHashCode for text line unique key

eliminate a seq and an array allocation in ColorizationService
# Conflicts:
#	vsintegration/src/FSharp.Editor/Classification/ColorizationService.fs
#	vsintegration/src/FSharp.Editor/InlineRename/InlineRenameService.fs
#	vsintegration/src/FSharp.Editor/QuickInfo/QuickInfoProvider.fs
@KevinRansom
Copy link
Contributor

@vasily-kirichenko conflicts + ton of errors

Kevin

…icolon

# Conflicts:
#	vsintegration/src/FSharp.Editor/Common/CommonHelpers.fs
#	vsintegration/src/FSharp.Editor/srFSharp.Editor.fs
@vasily-kirichenko
Copy link
Contributor Author

@KevinRansom done

@vasily-kirichenko
Copy link
Contributor Author

It's ready.

Copy link
Contributor

@KevinRansom KevinRansom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

@KevinRansom
Copy link
Contributor

@vasily-kirichenko
Sorry mate , more conflicts.

…icolon

# Conflicts:
#	vsintegration/src/FSharp.Editor/CodeFixes/ImplementInterfaceCodeFixProvider.fs
#	vsintegration/src/FSharp.Editor/Common/CommonHelpers.fs
@vasily-kirichenko
Copy link
Contributor Author

Fixed.

@KevinRansom
Copy link
Contributor

@vasily-kirichenko
sorry conflicts :-(

…icolon

# Conflicts:
#	vsintegration/src/FSharp.Editor/CodeFixes/AddOpen.fs
#	vsintegration/src/FSharp.Editor/Completion/CompletionProvider.fs
@vasily-kirichenko
Copy link
Contributor Author

Fixed.

I experience this behavior on this PR:

1

I'm not sure if it's the same on master, will check.

@vasily-kirichenko
Copy link
Contributor Author

Everything is ok in master. I'll remove the code fix, it seems it makes more harm than usefulness.

@vasily-kirichenko
Copy link
Contributor Author

Oookey, Lexer is broken in some subtle way, I'm closing this PR. Sorry that wasted your time, guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants