Change PropertyMetadata in Library.jet

This commit is contained in:
Natalia.Ukhorskaya
2013-05-13 17:58:21 +04:00
parent 32c5f5f59d
commit 308b1a3f29
2 changed files with 5 additions and 12 deletions
+2 -8
View File
@@ -65,18 +65,12 @@ public open class Throwable(message : String? = null, cause: Throwable? = null)
public fun printStackTrace() : Unit public fun printStackTrace() : Unit
} }
/*
* Should have an abstract property 'name', overridden in PropertyMetadataImpl
*/
public trait PropertyMetadata { public trait PropertyMetadata {
public fun getName(): String public val name: String
} }
/* /*
* In front-end we need to resolve call PropertyMetadataImpl() in getter of delegated property * In front-end we need to resolve call PropertyMetadataImpl() in getter of delegated property
* to be able generate it in back-end using ExpressionCodegen.invokeFunction * to be able generate it in back-end using ExpressionCodegen.invokeFunction
*/ */
public class PropertyMetadataImpl(private val innerName: String): PropertyMetadata { public class PropertyMetadataImpl(public override val name: String): PropertyMetadata
public override fun getName(): String = innerName
}
+3 -4
View File
@@ -1357,13 +1357,12 @@ public trait Progression</*0*/ N : jet.Any> : jet.Iterable<N> {
} }
public trait PropertyMetadata { public trait PropertyMetadata {
public abstract fun getName(): jet.String public abstract val name: jet.String
} }
public final class PropertyMetadataImpl : jet.PropertyMetadata { public final class PropertyMetadataImpl : jet.PropertyMetadata {
public constructor PropertyMetadataImpl(/*0*/ innerName: jet.String) public constructor PropertyMetadataImpl(/*0*/ name: jet.String)
private final val innerName: jet.String public open override /*1*/ val name: jet.String
public open override /*1*/ fun getName(): jet.String
} }
public trait Range</*0*/ in T : jet.Comparable<T>> { public trait Range</*0*/ in T : jet.Comparable<T>> {