-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
record end markers in trees and semanticdb
- Loading branch information
1 parent
d2dd083
commit ce30677
Showing
6 changed files
with
239 additions
and
6 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
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,53 @@ | ||
package endmarkers: | ||
|
||
class MultiCtor/*<-endmarkers::MultiCtor#*/(val i/*<-endmarkers::MultiCtor#i.*/: Int/*->scala::Int#*/): | ||
def this()/*<-endmarkers::MultiCtor#`<init>`(+1).*/ = | ||
this(23) | ||
end this/*->endmarkers::MultiCtor#`<init>`(+1).*/ | ||
end MultiCtor/*->endmarkers::MultiCtor#*/ | ||
|
||
/*<-endmarkers::EndMarkers$package.*/def topLevelMethod/*<-endmarkers::EndMarkers$package.topLevelMethod().*/: String/*->scala::Predef.String#*/ = | ||
"hello" | ||
end topLevelMethod/*->endmarkers::EndMarkers$package.topLevelMethod().*/ | ||
|
||
val topLevelVal/*<-endmarkers::EndMarkers$package.topLevelVal.*/: Int/*->scala::Int#*/ = | ||
23 | ||
end topLevelVal/*->endmarkers::EndMarkers$package.topLevelVal.*/ | ||
|
||
var topLevelVar/*<-endmarkers::EndMarkers$package.topLevelVar().*/: String/*->scala::Predef.String#*/ = | ||
"" | ||
end topLevelVar/*->endmarkers::EndMarkers$package.topLevelVar().*/ | ||
|
||
class Container/*<-endmarkers::Container#*/: | ||
|
||
def foo/*<-endmarkers::Container#foo().*/ = | ||
(/*->scala::Tuple3.apply().*/1,2,3) | ||
end foo/*->endmarkers::Container#foo().*/ | ||
|
||
val bar/*<-endmarkers::Container#bar.*/ = | ||
(/*->scala::Tuple3.apply().*/4,5,6) | ||
end bar/*->endmarkers::Container#bar.*/ | ||
|
||
var baz/*<-endmarkers::Container#baz().*/ = | ||
15 | ||
end baz/*->endmarkers::Container#baz().*/ | ||
|
||
end Container/*->endmarkers::Container#*/ | ||
|
||
def topLevelWithLocals/*<-endmarkers::EndMarkers$package.topLevelWithLocals().*/: Unit/*->scala::Unit#*/ = | ||
|
||
val localVal/*<-local0*/ = | ||
37 | ||
end localVal/*->local0*/ | ||
|
||
var localVar/*<-local1*/ = | ||
43 | ||
end localVar/*->local1*/ | ||
|
||
def localDef/*<-local2*/ = | ||
97 | ||
end localDef/*->local2*/ | ||
|
||
end topLevelWithLocals/*->endmarkers::EndMarkers$package.topLevelWithLocals().*/ | ||
|
||
end endmarkers |
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,53 @@ | ||
package endmarkers: | ||
|
||
class MultiCtor(val i: Int): | ||
def this() = | ||
this(23) | ||
end this | ||
end MultiCtor | ||
|
||
def topLevelMethod: String = | ||
"hello" | ||
end topLevelMethod | ||
|
||
val topLevelVal: Int = | ||
23 | ||
end topLevelVal | ||
|
||
var topLevelVar: String = | ||
"" | ||
end topLevelVar | ||
|
||
class Container: | ||
|
||
def foo = | ||
(1,2,3) | ||
end foo | ||
|
||
val bar = | ||
(4,5,6) | ||
end bar | ||
|
||
var baz = | ||
15 | ||
end baz | ||
|
||
end Container | ||
|
||
def topLevelWithLocals: Unit = | ||
|
||
val localVal = | ||
37 | ||
end localVal | ||
|
||
var localVar = | ||
43 | ||
end localVar | ||
|
||
def localDef = | ||
97 | ||
end localDef | ||
|
||
end topLevelWithLocals | ||
|
||
end endmarkers |
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