@@ -380,7 +380,7 @@ object Objects:
380
380
case Some (theValue) =>
381
381
theValue
382
382
case _ =>
383
- report.warning(" [Internal error] Value not found " + x.show + " \n env = " + data.show + " . Calling trace: \n " + Trace .show, Trace .position)
383
+ report.warning(" [Internal error] Value not found " + x.show + " \n env = " + data.show + " . " + Trace .show, Trace .position)
384
384
Bottom
385
385
386
386
def getVal (x : Symbol )(using data : Data , ctx : Context ): Option [Value ] = data.getVal(x)
@@ -619,7 +619,7 @@ object Objects:
619
619
def call (value : Value , meth : Symbol , args : List [ArgInfo ], receiver : Type , superType : Type , needResolve : Boolean = true ): Contextual [Value ] = log(" call " + meth.show + " , this = " + value.show + " , args = " + args.map(_.value.show), printer, (_ : Value ).show) {
620
620
value match
621
621
case Cold =>
622
- report.warning(" Using cold alias. Calling trace: \n " + Trace .show, Trace .position)
622
+ report.warning(" Using cold alias. " + Trace .show, Trace .position)
623
623
Bottom
624
624
625
625
case Bottom =>
@@ -781,15 +781,15 @@ object Objects:
781
781
errorReadOtherStaticObject(State .currentObject, addr.owner)
782
782
Bottom
783
783
else if ref.isObjectRef && ref.klass.hasSource then
784
- report.warning(" Access uninitialized field " + field.show + " . Call trace: " + Trace .show, Trace .position)
784
+ report.warning(" Access uninitialized field " + field.show + " . " + Trace .show, Trace .position)
785
785
Bottom
786
786
else
787
787
// initialization error, reported by the initialization checker
788
788
Bottom
789
789
else if ref.hasVal(target) then
790
790
ref.valValue(target)
791
791
else if ref.isObjectRef && ref.klass.hasSource then
792
- report.warning(" Access uninitialized field " + field.show + " . Call trace: " + Trace .show, Trace .position)
792
+ report.warning(" Access uninitialized field " + field.show + " . " + Trace .show, Trace .position)
793
793
Bottom
794
794
else
795
795
// initialization error, reported by the initialization checker
@@ -836,7 +836,7 @@ object Objects:
836
836
report.warning(" [Internal error] unexpected tree in assignment, array = " + arr.show + Trace .show, Trace .position)
837
837
838
838
case Cold =>
839
- report.warning(" Assigning to cold aliases is forbidden. Calling trace: \n " + Trace .show, Trace .position)
839
+ report.warning(" Assigning to cold aliases is forbidden. " + Trace .show, Trace .position)
840
840
841
841
case Bottom =>
842
842
@@ -851,7 +851,7 @@ object Objects:
851
851
else
852
852
Heap .writeJoin(addr, rhs)
853
853
else
854
- report.warning(" Mutating a field before its initialization: " + field.show + " . Calling trace: \n " + Trace .show, Trace .position)
854
+ report.warning(" Mutating a field before its initialization: " + field.show + " . " + Trace .show, Trace .position)
855
855
end match
856
856
857
857
Bottom
@@ -936,7 +936,7 @@ object Objects:
936
936
Bottom
937
937
end if
938
938
case _ =>
939
- report.warning(" [Internal error] Variable not found " + sym.show + " \n env = " + env.show + " . Calling trace: \n " + Trace .show, Trace .position)
939
+ report.warning(" [Internal error] Variable not found " + sym.show + " \n env = " + env.show + " . " + Trace .show, Trace .position)
940
940
Bottom
941
941
else
942
942
given Env .Data = env
@@ -948,17 +948,17 @@ object Objects:
948
948
given Env .Data = fun.env
949
949
eval(fun.code, fun.thisV, fun.klass)
950
950
case Cold =>
951
- report.warning(" Calling cold by-name alias. Call trace: \n " + Trace .show, Trace .position)
951
+ report.warning(" Calling cold by-name alias. " + Trace .show, Trace .position)
952
952
Bottom
953
953
case _ : ValueSet | _ : Ref | _ : OfArray =>
954
- report.warning(" [Internal error] Unexpected by-name value " + value.show + " . Calling trace: \n " + Trace .show, Trace .position)
954
+ report.warning(" [Internal error] Unexpected by-name value " + value.show + " . " + Trace .show, Trace .position)
955
955
Bottom
956
956
else
957
957
value
958
958
959
959
case _ =>
960
960
if isByNameParam(sym) then
961
- report.warning(" Calling cold by-name alias. Call trace: \n " + Trace .show, Trace .position)
961
+ report.warning(" Calling cold by-name alias. " + Trace .show, Trace .position)
962
962
Bottom
963
963
else
964
964
Cold
@@ -983,10 +983,10 @@ object Objects:
983
983
else
984
984
Heap .writeJoin(addr, value)
985
985
case _ =>
986
- report.warning(" [Internal error] Variable not found " + sym.show + " \n env = " + env.show + " . Calling trace: \n " + Trace .show, Trace .position)
986
+ report.warning(" [Internal error] Variable not found " + sym.show + " \n env = " + env.show + " . " + Trace .show, Trace .position)
987
987
988
988
case _ =>
989
- report.warning(" Assigning to variables in outer scope. Calling trace: \n " + Trace .show, Trace .position)
989
+ report.warning(" Assigning to variables in outer scope. " + Trace .show, Trace .position)
990
990
991
991
Bottom
992
992
}
@@ -1715,15 +1715,13 @@ object Objects:
1715
1715
def errorMutateOtherStaticObject (currentObj : ClassSymbol , otherObj : ClassSymbol )(using Trace , Context ) =
1716
1716
val msg =
1717
1717
s " Mutating ${otherObj.show} during initialization of ${currentObj.show}. \n " +
1718
- " Mutating other static objects during the initialization of one static object is forbidden. " +
1719
- " Calling trace:\n " + Trace .show
1718
+ " Mutating other static objects during the initialization of one static object is forbidden. " + Trace .show
1720
1719
1721
1720
report.warning(msg, Trace .position)
1722
1721
1723
1722
def errorReadOtherStaticObject (currentObj : ClassSymbol , otherObj : ClassSymbol )(using Trace , Context ) =
1724
1723
val msg =
1725
1724
" Reading mutable state of " + otherObj.show + " during initialization of " + currentObj.show + " .\n " +
1726
- " Reading mutable state of other static objects is forbidden as it breaks initialization-time irrelevance. " +
1727
- " Calling trace: " + Trace .show
1725
+ " Reading mutable state of other static objects is forbidden as it breaks initialization-time irrelevance. " + Trace .show
1728
1726
1729
1727
report.warning(msg, Trace .position)
0 commit comments