Skip to content

Commit 6fb58be

Browse files
committed
Add ApplyContextTree from generated code
From branch https://github.com/natsukagami/semanticdb-for-scala3/tree/apply-context-tree
1 parent ca400bd commit 6fb58be

File tree

1 file changed

+31
-5
lines changed
  • compiler/src/dotty/tools/dotc/semanticdb/generated

1 file changed

+31
-5
lines changed

compiler/src/dotty/tools/dotc/semanticdb/generated/Tree.scala

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,14 @@ object TreeMessage extends SemanticdbGeneratedMessageCompanion[dotty.tools.dotc
318318
// @@protoc_insertion_point(GeneratedMessageCompanion[dotty.tools.dotc.semanticdb.Tree])
319319
}
320320

321+
/** @param properties
322+
* bitmask of SymbolInformation.Property
323+
*/
321324
@SerialVersionUID(0L)
322325
final case class ApplyTree(
323326
function: dotty.tools.dotc.semanticdb.Tree = dotty.tools.dotc.semanticdb.ApplyTree._typemapper_function.toCustom(dotty.tools.dotc.semanticdb.TreeMessage.defaultInstance),
324-
arguments: _root_.scala.Seq[dotty.tools.dotc.semanticdb.Tree] = _root_.scala.Seq.empty
327+
arguments: _root_.scala.Seq[dotty.tools.dotc.semanticdb.Tree] = _root_.scala.Seq.empty,
328+
properties: _root_.scala.Int = 0
325329
) extends dotty.tools.dotc.semanticdb.Tree.NonEmpty with SemanticdbGeneratedMessage derives CanEqual {
326330
@transient @sharable
327331
private var __serializedSizeMemoized: _root_.scala.Int = 0
@@ -338,6 +342,13 @@ final case class ApplyTree(
338342
val __value = dotty.tools.dotc.semanticdb.ApplyTree._typemapper_arguments.toBase(__item)
339343
__size += 1 + SemanticdbOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
340344
}
345+
346+
{
347+
val __value = properties
348+
if (__value != 0) {
349+
__size += SemanticdbOutputStream.computeInt32Size(3, __value)
350+
}
351+
};
341352
__size
342353
}
343354
override def serializedSize: _root_.scala.Int = {
@@ -364,12 +375,19 @@ final case class ApplyTree(
364375
_output__.writeUInt32NoTag(__m.serializedSize)
365376
__m.writeTo(_output__)
366377
};
378+
{
379+
val __v = properties
380+
if (__v != 0) {
381+
_output__.writeInt32(3, __v)
382+
}
383+
};
367384
}
368385
def withFunction(__v: dotty.tools.dotc.semanticdb.Tree): ApplyTree = copy(function = __v)
369386
def clearArguments = copy(arguments = _root_.scala.Seq.empty)
370387
def addArguments(__vs: dotty.tools.dotc.semanticdb.Tree *): ApplyTree = addAllArguments(__vs)
371388
def addAllArguments(__vs: Iterable[dotty.tools.dotc.semanticdb.Tree]): ApplyTree = copy(arguments = arguments ++ __vs)
372389
def withArguments(__v: _root_.scala.Seq[dotty.tools.dotc.semanticdb.Tree]): ApplyTree = copy(arguments = __v)
390+
def withProperties(__v: _root_.scala.Int): ApplyTree = copy(properties = __v)
373391

374392

375393

@@ -382,6 +400,7 @@ object ApplyTree extends SemanticdbGeneratedMessageCompanion[dotty.tools.dotc.s
382400
def parseFrom(`_input__`: SemanticdbInputStream): dotty.tools.dotc.semanticdb.ApplyTree = {
383401
var __function: _root_.scala.Option[dotty.tools.dotc.semanticdb.TreeMessage] = _root_.scala.None
384402
val __arguments: _root_.scala.collection.immutable.VectorBuilder[dotty.tools.dotc.semanticdb.Tree] = new _root_.scala.collection.immutable.VectorBuilder[dotty.tools.dotc.semanticdb.Tree]
403+
var __properties: _root_.scala.Int = 0
385404
var _done__ = false
386405
while (!_done__) {
387406
val _tag__ = _input__.readTag()
@@ -391,12 +410,15 @@ object ApplyTree extends SemanticdbGeneratedMessageCompanion[dotty.tools.dotc.s
391410
__function = _root_.scala.Some(__function.fold(LiteParser.readMessage[dotty.tools.dotc.semanticdb.TreeMessage](_input__))(LiteParser.readMessage(_input__, _)))
392411
case 18 =>
393412
__arguments += dotty.tools.dotc.semanticdb.ApplyTree._typemapper_arguments.toCustom(LiteParser.readMessage[dotty.tools.dotc.semanticdb.TreeMessage](_input__))
413+
case 24 =>
414+
__properties = _input__.readInt32()
394415
case tag => _input__.skipField(tag)
395416
}
396417
}
397418
dotty.tools.dotc.semanticdb.ApplyTree(
398419
function = dotty.tools.dotc.semanticdb.ApplyTree._typemapper_function.toCustom(__function.getOrElse(dotty.tools.dotc.semanticdb.TreeMessage.defaultInstance)),
399-
arguments = __arguments.result()
420+
arguments = __arguments.result(),
421+
properties = __properties
400422
)
401423
}
402424

@@ -407,20 +429,24 @@ object ApplyTree extends SemanticdbGeneratedMessageCompanion[dotty.tools.dotc.s
407429

408430
lazy val defaultInstance = dotty.tools.dotc.semanticdb.ApplyTree(
409431
function = dotty.tools.dotc.semanticdb.ApplyTree._typemapper_function.toCustom(dotty.tools.dotc.semanticdb.TreeMessage.defaultInstance),
410-
arguments = _root_.scala.Seq.empty
432+
arguments = _root_.scala.Seq.empty,
433+
properties = 0
411434
)
412435
final val FUNCTION_FIELD_NUMBER = 1
413436
final val ARGUMENTS_FIELD_NUMBER = 2
437+
final val PROPERTIES_FIELD_NUMBER = 3
414438
@transient @sharable
415439
private[semanticdb] val _typemapper_function: SemanticdbTypeMapper[dotty.tools.dotc.semanticdb.TreeMessage, dotty.tools.dotc.semanticdb.Tree] = implicitly[SemanticdbTypeMapper[dotty.tools.dotc.semanticdb.TreeMessage, dotty.tools.dotc.semanticdb.Tree]]
416440
@transient @sharable
417441
private[semanticdb] val _typemapper_arguments: SemanticdbTypeMapper[dotty.tools.dotc.semanticdb.TreeMessage, dotty.tools.dotc.semanticdb.Tree] = implicitly[SemanticdbTypeMapper[dotty.tools.dotc.semanticdb.TreeMessage, dotty.tools.dotc.semanticdb.Tree]]
418442
def of(
419443
function: dotty.tools.dotc.semanticdb.Tree,
420-
arguments: _root_.scala.Seq[dotty.tools.dotc.semanticdb.Tree]
444+
arguments: _root_.scala.Seq[dotty.tools.dotc.semanticdb.Tree],
445+
properties: _root_.scala.Int
421446
): _root_.dotty.tools.dotc.semanticdb.ApplyTree = _root_.dotty.tools.dotc.semanticdb.ApplyTree(
422447
function,
423-
arguments
448+
arguments,
449+
properties
424450
)
425451
// @@protoc_insertion_point(GeneratedMessageCompanion[dotty.tools.dotc.semanticdb.ApplyTree])
426452
}

0 commit comments

Comments
 (0)