(...featureClasses)
| 282 | } |
| 283 | |
| 284 | addFeatures(...featureClasses) { |
| 285 | for (const FeatureClass of featureClasses) { |
| 286 | if (!FeatureClass.keyword) { |
| 287 | throw new Error(`Feature class ${FeatureClass.name} must have a static 'keyword' property`); |
| 288 | } |
| 289 | if (!FeatureClass.parse) { |
| 290 | throw new Error(`Feature class ${FeatureClass.name} must have a static 'parse' method`); |
| 291 | } |
| 292 | this.addFeature(FeatureClass.keyword, FeatureClass.parse); |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | addFeature(keyword, definition) { |
| 297 | var featureGrammarType = keyword + "Feature"; |
nothing calls this directly
no test coverage detected