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

Function parse_Prolog

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

Source from the content-addressed store, hash-verified

10945 }
10946
10947 function parse_Prolog()
10948 {
10949 eventHandler.startNonterminal("Prolog", e0);
10950 for (;;)
10951 {
10952 lookahead1W(277); // EQName^Token | IntegerLiteral | DecimalLiteral | DoubleLiteral | StringLiteral |
10953 // S^WS | EOF | '$' | '$$' | '%' | '(' | '(#' | '(:' | '+' | '-' | '/' | '//' |
10954 // ';' | '<' | '<!--' | '<?' | '[' | 'after' | 'allowing' | 'ancestor' |
10955 // 'ancestor-or-self' | 'and' | 'append' | 'array' | 'as' | 'ascending' | 'at' |
10956 // 'attribute' | 'base-uri' | 'before' | 'boundary-space' | 'break' | 'case' |
10957 // 'cast' | 'castable' | 'catch' | 'child' | 'collation' | 'comment' |
10958 // 'constraint' | 'construction' | 'context' | 'continue' | 'copy' |
10959 // 'copy-namespaces' | 'count' | 'decimal-format' | 'declare' | 'default' |
10960 // 'delete' | 'descendant' | 'descendant-or-self' | 'descending' | 'div' |
10961 // 'document' | 'document-node' | 'element' | 'else' | 'empty' | 'empty-sequence' |
10962 // 'encoding' | 'end' | 'eq' | 'every' | 'except' | 'exit' | 'external' | 'false' |
10963 // 'first' | 'following' | 'following-sibling' | 'for' | 'from' | 'ft-option' |
10964 // 'function' | 'ge' | 'group' | 'gt' | 'idiv' | 'if' | 'import' | 'in' | 'index' |
10965 // 'insert' | 'instance' | 'integrity' | 'intersect' | 'into' | 'is' | 'item' |
10966 // 'json' | 'json-item' | 'jsoniq' | 'last' | 'lax' | 'le' | 'let' | 'loop' | 'lt' |
10967 // 'mod' | 'modify' | 'module' | 'namespace' | 'namespace-node' | 'ne' | 'node' |
10968 // 'nodes' | 'not' | 'null' | 'object' | 'only' | 'option' | 'or' | 'order' |
10969 // 'ordered' | 'ordering' | 'parent' | 'preceding' | 'preceding-sibling' |
10970 // 'processing-instruction' | 'rename' | 'replace' | 'return' | 'returning' |
10971 // 'revalidation' | 'satisfies' | 'schema' | 'schema-attribute' | 'schema-element' |
10972 // 'score' | 'select' | 'self' | 'sliding' | 'some' | 'stable' | 'start' |
10973 // 'strict' | 'structured-item' | 'switch' | 'text' | 'to' | 'treat' | 'true' |
10974 // 'try' | 'tumbling' | 'type' | 'typeswitch' | 'union' | 'unordered' | 'updating' |
10975 // 'validate' | 'value' | 'variable' | 'version' | 'where' | 'while' | 'with' |
10976 // '{' | '{|'
10977 switch (l1)
10978 {
10979 case 109: // 'declare'
10980 lookahead2W(206); // S^WS | '#' | '%' | '(' | '(:' | 'base-uri' | 'boundary-space' | 'collection' |
10981 // 'construction' | 'context' | 'copy-namespaces' | 'decimal-format' | 'default' |
10982 // 'ft-option' | 'function' | 'index' | 'integrity' | 'namespace' | 'option' |
10983 // 'ordering' | 'revalidation' | 'updating' | 'variable'
10984 break;
10985 case 155: // 'import'
10986 lookahead2W(169); // S^WS | '#' | '(' | '(:' | 'module' | 'schema'
10987 break;
10988 default:
10989 lk = l1;
10990 }
10991 if (lk != 43117 // 'declare' 'base-uri'
10992 && lk != 44141 // 'declare' 'boundary-space'
10993 && lk != 50797 // 'declare' 'construction'
10994 && lk != 53869 // 'declare' 'copy-namespaces'
10995 && lk != 54893 // 'declare' 'decimal-format'
10996 && lk != 56429 // 'declare' 'default'
10997 && lk != 73325 // 'declare' 'ft-option'
10998 && lk != 94875 // 'import' 'module'
10999 && lk != 95853 // 'declare' 'namespace'
11000 && lk != 106093 // 'declare' 'ordering'
11001 && lk != 115821 // 'declare' 'revalidation'
11002 && lk != 117403) // 'import' 'schema'
11003 {
11004 break;

Callers 2

parse_LibraryModuleFunction · 0.85
parse_MainModuleFunction · 0.85

Calls 15

lookahead2WFunction · 0.85
memoizedFunction · 0.85
try_DefaultNamespaceDeclFunction · 0.85
parse_NamespaceDeclFunction · 0.85
parse_ImportFunction · 0.85
parse_FTOptionDeclFunction · 0.85
parse_SetterFunction · 0.85
parse_SeparatorFunction · 0.85
parse_ContextItemDeclFunction · 0.85
parse_OptionDeclFunction · 0.85
parse_AnnotatedDeclFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…