Record Class SynthesisScope
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.synthesis.support.SynthesisScope
- Record Components:
debugInfo- Source location and debug information (may be null for synthetic operators)scopeId- Current scope identifier for ARC memory management
Bundles the scope parameters that flow through synthetic operator generation methods.
These two parameters appear together in virtually every synthesis method:
- debugInfo - Source location information for the generated instructions (may be null for synthetic code)
- scopeId - Current scope ID for memory management (SCOPE_REGISTER)
Using this record reduces parameter count and makes method signatures cleaner.
-
Constructor Summary
ConstructorsConstructorDescriptionSynthesisScope(DebugInfo debugInfo, String scopeId) Validate that scopeId is not null. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedebugInforecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.scopeId()Returns the value of thescopeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SynthesisScope
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
debugInfo
-
scopeId
-