break out when we already know the property is visible.
This commit is contained in:
Родитель
3a2c2fa643
Коммит
60524f0dbb
|
@ -56,8 +56,10 @@ class VisibilityCleaner {
|
||||||
if (visible === CliCommonSchema.CodeModel.Visibility.false) {
|
if (visible === CliCommonSchema.CodeModel.Visibility.false) {
|
||||||
if (NodeHelper.HasSubClass(schema)) {
|
if (NodeHelper.HasSubClass(schema)) {
|
||||||
for (let subClass of NodeHelper.getSubClasses(schema, true)) {
|
for (let subClass of NodeHelper.getSubClasses(schema, true)) {
|
||||||
if (this.calcObject(subClass) === CliCommonSchema.CodeModel.Visibility.true)
|
if (this.calcObject(subClass) === CliCommonSchema.CodeModel.Visibility.true) {
|
||||||
visible = CliCommonSchema.CodeModel.Visibility.true;
|
visible = CliCommonSchema.CodeModel.Visibility.true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче