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

Function parse_VersionDecl

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

Source from the content-addressed store, hash-verified

10865 }
10866
10867 function parse_VersionDecl()
10868 {
10869 eventHandler.startNonterminal("VersionDecl", e0);
10870 shift(170); // 'jsoniq'
10871 lookahead1W(120); // S^WS | '(:' | 'encoding' | 'version'
10872 switch (l1)
10873 {
10874 case 126: // 'encoding'
10875 shift(126); // 'encoding'
10876 lookahead1W(17); // StringLiteral | S^WS | '(:'
10877 shift(11); // StringLiteral
10878 break;
10879 default:
10880 shift(269); // 'version'
10881 lookahead1W(17); // StringLiteral | S^WS | '(:'
10882 shift(11); // StringLiteral
10883 lookahead1W(113); // S^WS | '(:' | ';' | 'encoding'
10884 if (l1 == 126) // 'encoding'
10885 {
10886 shift(126); // 'encoding'
10887 lookahead1W(17); // StringLiteral | S^WS | '(:'
10888 shift(11); // StringLiteral
10889 }
10890 }
10891 lookahead1W(29); // S^WS | '(:' | ';'
10892 whitespace();
10893 parse_Separator();
10894 eventHandler.endNonterminal("VersionDecl", e0);
10895 }
10896
10897 function parse_LibraryModule()
10898 {

Callers 1

parse_ModuleFunction · 0.85

Calls 4

parse_SeparatorFunction · 0.85
shiftFunction · 0.70
lookahead1WFunction · 0.70
whitespaceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…