()
| 19221 | if (preludeKind) return preludeKind.defaultPaint |
| 19222 | } |
| 19223 | _getEnumOptions() { |
| 19224 | const enumParticle = this._getParticleFromExtended(ParsersConstants.enum) |
| 19225 | if (!enumParticle) return undefined |
| 19226 | // we sort by longest first to capture longest match first. todo: add test |
| 19227 | const options = Object.keys(enumParticle.getParticle(ParsersConstants.enum).getOptions()) |
| 19228 | options.sort((a, b) => b.length - a.length) |
| 19229 | return options |
| 19230 | } |
| 19231 | get optionCount() { |
| 19232 | const enumOptions = this._getEnumOptions() |
| 19233 | if (enumOptions) return enumOptions.length |
no test coverage detected