IDL2K: consider attribute ignores (from config.kt) before merge

This commit is contained in:
Sergey Mashkov
2016-11-11 16:42:32 +03:00
parent ae69233d9c
commit 379afa187b
@@ -174,6 +174,8 @@ fun Appendable.render(allTypes: Map<String, GenerateTraitOrClass>, typeNamesToUn
.filter { it !in superAttributes && !it.static && (it.isVar || (it.isVal && superAttributesByName[it.name]?.hasNoVars() ?: true)) }
.map { it.dynamicIfUnknownType(allTypes.keys) }
.groupBy { it.name }
.mapValues { it.value.filter { "${iface.name}.${it.name}" !in commentOutDeclarations && "${iface.name}.${it.name}: ${it.type.render()}" !in commentOutDeclarations } }
.filterValues { it.isNotEmpty() }
.reduceValues(::merge).values.forEach { attribute ->
val modality = when {
attribute.signature in superSignatures -> MemberModality.OVERRIDE