@@ -76,10 +76,8 @@ class SemanticdbConsumer(sourceFile: java.nio.file.Path) extends TastyConsumer {
76
76
val children : List [Position ] =
77
77
ChildTraverser .getChildrenType(tree)(reflect.rootContext).collect(_ match {
78
78
case IsTypeTree (tt) => tt.pos})
79
- println(children)
80
79
return ! ((tree.pos.exists && tree.pos.start == tree.pos.end && children == Nil ) || children
81
80
.exists(_ == tree.pos))
82
- return ! (tree.pos.exists && tree.pos.start == tree.pos.end)
83
81
}
84
82
}
85
83
@@ -160,7 +158,6 @@ class SemanticdbConsumer(sourceFile: java.nio.file.Path) extends TastyConsumer {
160
158
161
159
def isSyntheticConstructor (implicit ctx : Context ): Boolean = {
162
160
val isObjectConstructor = symbol.isConstructor && symbol.owner != NoSymbol && symbol.owner.flags.is(Flags .Object )
163
- // println("====>", symbol, symbol.owner, symbol.owner.flags, symbol.owner.flags.isObject, isObjectConstructor)
164
161
val isModuleConstructor = symbol.isConstructor && symbol.owner.isClass
165
162
val isTraitConstructor = symbol.isConstructor && symbol.owner.isTrait
166
163
val isInterfaceConstructor = symbol.isConstructor && symbol.owner.flags.is(Flags .JavaDefined ) && symbol.owner.isTrait
@@ -431,16 +428,6 @@ class SemanticdbConsumer(sourceFile: java.nio.file.Path) extends TastyConsumer {
431
428
if (type_symbol != s.SymbolOccurrence .Role .DEFINITION && reservedFunctions
432
429
.contains(tree.symbol.trueName))
433
430
return
434
- /* println(tree.isUserCreated, iterateParent(tree.symbol), force_add)
435
-
436
- val children: List[Position] =
437
- ChildTraverser.getChildren(tree)(reflect.rootContext).map(_.pos)
438
- println("#####", tree.pos.start, tree.pos.end)
439
- if (tree.symbol.pos.exists) {
440
- println("#####", tree.symbol.pos.start, tree.symbol.pos.end, tree, tree.symbol.name)
441
-
442
- }
443
- children.foreach(p => println(p.start, p.end))*/
444
431
if (tree.isUserCreated || (force_add && ! (! tree.isUserCreated && iterateParent(
445
432
tree.symbol) == " java/lang/Object#`<init>`()." ))) {
446
433
addOccurence(tree.symbol, type_symbol, range)
@@ -449,7 +436,6 @@ class SemanticdbConsumer(sourceFile: java.nio.file.Path) extends TastyConsumer {
449
436
def addOccurenceTypeTree (typetree : TypeTree ,
450
437
type_symbol : s.SymbolOccurrence .Role ,
451
438
range : s.Range ): Unit = {
452
- println(typetree.symbol, typetree.isUserCreated)
453
439
if (typetree.isUserCreated) {
454
440
addOccurence(typetree.symbol, type_symbol, range)
455
441
}
@@ -631,8 +617,6 @@ class SemanticdbConsumer(sourceFile: java.nio.file.Path) extends TastyConsumer {
631
617
addOccurenceTree(tree,
632
618
s.SymbolOccurrence .Role .DEFINITION ,
633
619
range(tree, tree.symbol.pos, tree.symbol.trueName))
634
- // println("constr symbol pos: ", constr.symbol.pos.startColumn, constr.symbol.pos.endColumn)
635
- // println("constr pos: ", constr.pos.startColumn, constr.pos.endColumn)
636
620
// then the constructor
637
621
if (! constr.isUserCreated) {
638
622
fittedInitClassRange = Some (
@@ -726,9 +710,7 @@ class SemanticdbConsumer(sourceFile: java.nio.file.Path) extends TastyConsumer {
726
710
}
727
711
if (tree.symbol.trueName != " <none>" ) {
728
712
val range_symbol = range(tree, tree.symbol.pos, tree.symbol.trueName)
729
- // println(tree, tree.symbol.trueName, tree.symbol.owner, tree.symbol.owner.flags)
730
713
if (tree.symbol.trueName == " <init>" && tree.symbol.owner != NoSymbol && tree.symbol.owner.flags.is(Flags .Object )) {
731
- // println("omitting", tree.symbol.trueName)
732
714
} else if (tree.symbol.trueName == " <init>" && fittedInitClassRange != None ) {
733
715
addOccurenceTree(tree,
734
716
s.SymbolOccurrence .Role .DEFINITION ,
@@ -750,11 +732,6 @@ class SemanticdbConsumer(sourceFile: java.nio.file.Path) extends TastyConsumer {
750
732
751
733
case Term .Select (qualifier, _) => {
752
734
val range = {
753
- println(" " )
754
-
755
-
756
- println(tree.symbol.trueName)
757
- println(" " )
758
735
val r = rangeSelect(tree.symbol.trueName, tree.pos)
759
736
if (tree.symbol.trueName == " <init>" )
760
737
s.Range (r.startLine,
0 commit comments