MCPcopy
hub / github.com/digitalbazaar/jsonld.js / float_type

Function float_type

tests/webidl/WebIDLParser.js:135–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 };
134
135 var float_type = function() {
136 var ret = "";
137 all_ws();
138 if (consume(ID, "unrestricted")) ret = "unrestricted ";
139 all_ws();
140 if (consume(ID, "float")) return ret + "float";
141 if (consume(ID, "double")) return ret + "double";
142 if (ret) error("Failed to parse float type");
143 };
144
145 var primitive_type = function() {
146 var num_type = integer_type() || float_type();

Callers 1

primitive_typeFunction · 0.85

Calls 3

all_wsFunction · 0.85
consumeFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected