You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/src/dotty/tools/dotc/transform/init/Objects.scala
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -71,14 +71,14 @@ object Objects:
71
71
72
72
/** Syntax for the data structure abstraction used in abstract domain:
73
73
*
74
-
* ve ::= ObjectRef(class)
75
-
* | OfClass(class, vs[outer], ctor, args, env)
74
+
* ve ::= ObjectRef(class) // global object
75
+
* | OfClass(class, vs[outer], ctor, args, env) // instance of a class
76
76
* | OfArray(object[owner], regions)
77
77
* | Fun(..., env) // value elements that can be contained in ValueSet
78
78
* vs ::= ValueSet(ve) // set of abstract values
79
79
* Bottom ::= ValueSet(Empty)
80
80
* val ::= ve | Cold | vs // all possible abstract values in domain
81
-
* Ref ::= ObjectRef | OfClass // values that represents a reference
81
+
* Ref ::= ObjectRef | OfClass // values that represent a reference to some (global or instance) object
82
82
* ThisValue ::= Ref | Cold // possible values for 'this'
83
83
*
84
84
* refMap = Ref -> ( valsMap, varsMap, outersMap ) // refMap stores field informations of an object or instance
@@ -877,7 +877,7 @@ object Objects:
877
877
casethisV : (Ref|Cold.type) =>
878
878
if klass.owner.isClass then
879
879
if klass.owner.is(Flags.Package) then
880
-
report.warning("top-level class should have `Bottom` as outer, class = "+ klass.show +", outer = "+ outer.show +", "+Trace.show, Trace.position)
880
+
report.warning("[Internal error] top-level class should have `Bottom` as outer, class = "+ klass.show +", outer = "+ outer.show +", "+Trace.show, Trace.position)
0 commit comments