Class OwnedDeclaration

java.lang.Object
org.ek9lang.compiler.phase7.generator.OwnedDeclaration

public final class OwnedDeclaration extends Object
THE declaration of a variable that owns the temporaries its initialiser makes (OPS-6): a returning variable (<- rtn as String: String()) and a property (name as String: String()) are declared by no block statement, so the declaration itself closes the closeable temporaries its initialiser creates (StatementOwnedCloseables). A declaration with no initialiser makes none, so it is declared plainly. Returning-variable processing, operation bodies and property initialisers all declare through here - never re-spell the variableDeclaration / variableOnlyDeclaration choice.