MCPcopy Create free account
hub / github.com/breck7/scroll / isValid

Method isValid

external/.scrollLibs.js:19126–19129  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

19124}
19125class ParsersReservedAtomsTestParser extends AbstractParsersAtomTestParser {
19126 isValid(str) {
19127 if (!this._set) this._set = new Set(this.content.split(" "))
19128 return !this._set.has(str)
19129 }
19130}
19131// todo: remove in favor of custom atom type constructors
19132class EnumFromAtomTypesTestParser extends AbstractParsersAtomTestParser {

Callers

nothing calls this directly

Calls 2

splitMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected