1
0
mirror of https://github.com/salexdv/bsl_console.git synced 2024-11-28 08:48:48 +02:00

Подсказка по типам в конструкторе описания типов

This commit is contained in:
salexdv 2022-03-23 11:47:02 +03:00
parent 6446a2c110
commit 0b958a3b04

View File

@ -717,7 +717,13 @@ class bslHelper {
requireType() {
let exp = this.getFuncName();
return (exp == 'type' || exp == 'тип');
if (exp == 'typedescription' || exp == 'описаниетипов') {
let array = this.getExpressioArray();
return (array.length && array[array.length - 1].indexOf(',') == -1)
}
else
return (exp == 'type' || exp == 'тип');
}