MCPcopy
hub / github.com/ajaxorg/ace / parse_DecimalFormatDecl

Function parse_DecimalFormatDecl

lib/ace/mode/xquery/xqlint.js:11404–11460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11402 }
11403
11404 function parse_DecimalFormatDecl()
11405 {
11406 eventHandler.startNonterminal("DecimalFormatDecl", e0);
11407 shift(109); // 'declare'
11408 lookahead1W(118); // S^WS | '(:' | 'decimal-format' | 'default'
11409 switch (l1)
11410 {
11411 case 107: // 'decimal-format'
11412 shift(107); // 'decimal-format'
11413 lookahead1W(245); // EQName^Token | S^WS | '(:' | 'after' | 'allowing' | 'ancestor' |
11414 // 'ancestor-or-self' | 'and' | 'append' | 'array' | 'as' | 'ascending' | 'at' |
11415 // 'attribute' | 'base-uri' | 'before' | 'boundary-space' | 'break' | 'case' |
11416 // 'cast' | 'castable' | 'catch' | 'child' | 'collation' | 'comment' |
11417 // 'constraint' | 'construction' | 'context' | 'continue' | 'copy' |
11418 // 'copy-namespaces' | 'count' | 'decimal-format' | 'declare' | 'default' |
11419 // 'delete' | 'descendant' | 'descendant-or-self' | 'descending' | 'div' |
11420 // 'document' | 'document-node' | 'element' | 'else' | 'empty' | 'empty-sequence' |
11421 // 'encoding' | 'end' | 'eq' | 'every' | 'except' | 'exit' | 'external' | 'false' |
11422 // 'first' | 'following' | 'following-sibling' | 'for' | 'from' | 'ft-option' |
11423 // 'function' | 'ge' | 'group' | 'gt' | 'idiv' | 'if' | 'import' | 'in' | 'index' |
11424 // 'insert' | 'instance' | 'integrity' | 'intersect' | 'into' | 'is' | 'item' |
11425 // 'json' | 'json-item' | 'jsoniq' | 'last' | 'lax' | 'le' | 'let' | 'loop' | 'lt' |
11426 // 'mod' | 'modify' | 'module' | 'namespace' | 'namespace-node' | 'ne' | 'node' |
11427 // 'nodes' | 'null' | 'object' | 'only' | 'option' | 'or' | 'order' | 'ordered' |
11428 // 'ordering' | 'parent' | 'preceding' | 'preceding-sibling' |
11429 // 'processing-instruction' | 'rename' | 'replace' | 'return' | 'returning' |
11430 // 'revalidation' | 'satisfies' | 'schema' | 'schema-attribute' | 'schema-element' |
11431 // 'score' | 'select' | 'self' | 'sliding' | 'some' | 'stable' | 'start' |
11432 // 'strict' | 'structured-item' | 'switch' | 'text' | 'to' | 'treat' | 'true' |
11433 // 'try' | 'tumbling' | 'type' | 'typeswitch' | 'union' | 'unordered' | 'updating' |
11434 // 'validate' | 'value' | 'variable' | 'version' | 'where' | 'while' | 'with'
11435 whitespace();
11436 parse_EQName();
11437 break;
11438 default:
11439 shift(110); // 'default'
11440 lookahead1W(48); // S^WS | '(:' | 'decimal-format'
11441 shift(107); // 'decimal-format'
11442 }
11443 for (;;)
11444 {
11445 lookahead1W(203); // S^WS | '(:' | ';' | 'NaN' | 'decimal-separator' | 'digit' |
11446 // 'grouping-separator' | 'infinity' | 'minus-sign' | 'pattern-separator' |
11447 // 'per-mille' | 'percent' | 'zero-digit'
11448 if (l1 == 54) // ';'
11449 {
11450 break;
11451 }
11452 whitespace();
11453 parse_DFPropertyName();
11454 lookahead1W(30); // S^WS | '(:' | '='
11455 shift(61); // '='
11456 lookahead1W(17); // StringLiteral | S^WS | '(:'
11457 shift(11); // StringLiteral
11458 }
11459 eventHandler.endNonterminal("DecimalFormatDecl", e0);
11460 }
11461

Callers 1

parse_SetterFunction · 0.85

Calls 5

parse_DFPropertyNameFunction · 0.85
shiftFunction · 0.70
lookahead1WFunction · 0.70
whitespaceFunction · 0.70
parse_EQNameFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…