-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Simplify Source Positions #5713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
102 commits
Select commit
Hold shift + click to select a range
f21bd00
Rename nextId -> nextSymId in Context
odersky 4e25176
Make nextTreeId counter a context field
odersky db6b9df
Adapt refelect.TreeOps to new scheme
odersky b2e17fd
@transientParam annotation
odersky 75d338d
Apply @transientParam to compiler
odersky 1a634c7
Produce tree ids in chunks
odersky c4ec3f6
Set source field of context directly
odersky e86057d
Make TreeCopiers preserve source
odersky 6c13e88
Refactor getSource and withSource
odersky fc6daf0
Serialize source file changes
odersky 3f938fb
Better caching of sources
odersky 9e705e9
Allocate tree ids globally
odersky 9abee3d
Follow source changes when unpickling
odersky 945c296
Remove unpickleTypeTree
odersky c8454e5
Keep sourcefile info when pickling
odersky 67786d0
Eliminate Decorators.sourcePos
odersky c85d707
Fix position of inline bodies in unpickler.
odersky eceeb1b
Lazy load contents of source position
odersky b62a156
Print full source positions in trees
odersky a68e776
Fix dropInlined
odersky 36e0212
Check sources correspond under -Ytest-pickler
odersky b3ebfb2
Fix PositionPickler
odersky f0d1dfb
Make Inliner source-position aware
odersky 3a23f4b
Fix Symbol#sourceFile
odersky 6198884
Make PositionPickler work for shared trees
odersky 7bb25bd
Make Modifiers not extend from Positioned
odersky 4d3fa4a
Temporary hack to circumvent missing sourcefile info
odersky bae1f6b
Add source component to Positioned
odersky 48f3367
Inliner tweaks
odersky 7199965
withPos(Positioned) -> withPosOf
odersky cde9d60
Unpickler always takes source from context
odersky 1b39bd0
withPos -> withSpan
odersky 79eee51
Fix position pickler
odersky 10a6db5
Harden IDE: Survive duplicate package and object
odersky 8699aa7
Position -> Span
odersky 2d7e819
Add missing check files
odersky 50c3eef
Fix rebase breakage
odersky b136568
atPos -> atSpan
odersky a1a87d9
Rename SourcePos#pos -> SourcePos#span
odersky 616bc85
Rename Span#pos -> Span#span
odersky f7c76c2
Rename Symbol#pos -> span, Comment#pos -> span
odersky 7c99d35
Apply renamings to language server
odersky cc5e90c
Rename other uses of `pos` to `span`
odersky 1404a4d
Polishings
odersky 58d8fbc
Convert some checking methods to take Positioned arguments
odersky baf7dc1
Simplify Parser
odersky 18eaae0
Fix rebase breakage
odersky b1462cc
Add missing source to context
nicolasstucki 7d87656
Add missing contents to vitual files
nicolasstucki 3de898e
Avoid memoization of virtual source files with same path
nicolasstucki bf6af32
Use non-virtual files in dottydoc tests
nicolasstucki e160073
Update test to use Spans
nicolasstucki 57954c4
Update missing `pos` to `span`
nicolasstucki a8adf1b
Update implicit modifier test
nicolasstucki 220a5fd
Add missing spans in closures
nicolasstucki ec322f6
Comment debug assertion
nicolasstucki f8be33f
Remove unnecessary workaround for repl
nicolasstucki 14911e1
Fix rebase breakage
odersky 70b5819
Avoid creating source positions in backend interface
odersky 72a8765
Optimize computation of Sourcefile#content
odersky a22c366
Make SourceFile equals depend on file
odersky 4cf02c5
Optimize equals + hashCode on PlainFile
odersky 77b4b4c
Reduce concurrent hashmap lookups
odersky b915632
Refactor SourceFile operations
odersky e7c1d20
Optimize PlainFile.equals
odersky 94b4b01
Implement -Ydebug-pos
odersky e021019
Revise PositionPickler
odersky 570e95c
Fix rebase breakage
odersky a44d43f
Optimize initialPos in Positioned
odersky 819f20f
Optimize SourceFile.fromId
odersky aabdc75
Optimize Symbol#source
odersky f740996
Use SourceFile implicits instead of SourceInfo
odersky a448629
Make virtual source files explicit
nicolasstucki fa3b4b9
Sourcefile refactoring
odersky 729a3d1
Don't read contents when creating a source file
odersky ed45da0
Drop withPosOf and withSourcePos
odersky decc730
Don't ask defTree for Symbol's source after erasure
odersky 1771a16
Fix diagnostics breakage
odersky 17a901a
Simplify source positions
odersky fe2d3ae
Improve pickling of holes
odersky 953a6b1
Avoid special cases in Positioned#envelope
odersky 7100da8
Compare sourcefiles structurally
odersky 7fa7a06
Add missing spans in Desugar
nicolasstucki e110858
Fixes after rebase
nicolasstucki c2acbf0
Add missing span for tab complete
nicolasstucki e2966a9
Add another missing span
nicolasstucki 3558cb8
Inferred TypedSplice spans
nicolasstucki dec6b95
Use the same virtual file for parsing and compiling in REPL
nicolasstucki 8e12771
Use the index in the repl state for the line module
nicolasstucki 607ac1b
Revert "Add missing spans in Desugar"
nicolasstucki 791eb2b
Add missing span when expanding FunctionAppliedTo
nicolasstucki cac4e18
Update to compile with latest master
odersky 2244eb1
Add missing span when expanding FunctionAppliedTo
nicolasstucki 4ef3cea
Optimization: change Array.copy to System.arrayCopy
odersky 21b3904
Rename Parser.atPos -> atSpan
odersky 360510c
Track source changes in TreeMap and TreeAccumulator
odersky 829acf0
Address other review comments
odersky 9fa170c
Rename transientParam -> constructorOnly
odersky 8d3b7ef
Address overlooked comment
odersky 652b570
Drop unnecessary compatibility hack
odersky 570b26f
Talk consistently about spans in Parser
odersky fc2e654
Address more review comments
odersky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Relieved that we could remove this!