MCPcopy Create free account
hub / github.com/chearon/dropflow / peg$parsefont_size

Function peg$parsefont_size

src/parse-css.js:3154–3175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3152 }
3153
3154 function peg$parsefont_size() {
3155 var s0, s1;
3156
3157 s0 = peg$currPos;
3158 s1 = peg$parserelative_size();
3159 if (s1 === peg$FAILED) {
3160 s1 = peg$parseabsolute_size();
3161 if (s1 === peg$FAILED) {
3162 s1 = peg$parseLENGTH();
3163 if (s1 === peg$FAILED) {
3164 s1 = peg$parsePERCENTAGE();
3165 }
3166 }
3167 }
3168 if (s1 !== peg$FAILED) {
3169 peg$savedPos = s0;
3170 s1 = peg$f32(s1);
3171 }
3172 s0 = s1;
3173
3174 return s0;
3175 }
3176
3177 function peg$parseline_height() {
3178 var s0, s1;

Callers 3

peg$parsefont_wssvFunction · 0.85
peg$parsefontFunction · 0.85
peg$parsefont_size_decFunction · 0.85

Calls 5

peg$parserelative_sizeFunction · 0.85
peg$parseabsolute_sizeFunction · 0.85
peg$parseLENGTHFunction · 0.85
peg$parsePERCENTAGEFunction · 0.85
peg$f32Function · 0.85

Tested by

no test coverage detected