//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// ANTLR Version: 4.13.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
// Generated from CIL.g4 by ANTLR 4.13.1
// Unreachable code detected
#pragma warning disable 0162
// The variable '...' is assigned but its value is never used
#pragma warning disable 0219
// Missing XML comment for publicly visible type or member '...'
#pragma warning disable 1591
// Ambiguous reference in cref attribute
#pragma warning disable 419
namespace ILAssembler {
#nullable enable annotations
using System;
using System.IO;
using System.Text;
using System.Diagnostics;
using System.Collections.Generic;
using Antlr4.Runtime;
using Antlr4.Runtime.Atn;
using Antlr4.Runtime.Misc;
using Antlr4.Runtime.Tree;
using DFA = Antlr4.Runtime.Dfa.DFA;
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")]
[System.CLSCompliant(false)]
public partial class CILParser : Parser {
protected static DFA[] decisionToDFA;
protected static PredictionContextCache sharedContextCache = new PredictionContextCache();
public const int
T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9,
T__9=10, T__10=11, T__11=12, T__12=13, T__13=14, T__14=15, T__15=16, T__16=17,
T__17=18, T__18=19, T__19=20, T__20=21, T__21=22, T__22=23, T__23=24,
T__24=25, T__25=26, T__26=27, T__27=28, T__28=29, T__29=30, T__30=31,
T__31=32, T__32=33, T__33=34, T__34=35, T__35=36, T__36=37, T__37=38,
T__38=39, T__39=40, T__40=41, T__41=42, T__42=43, T__43=44, T__44=45,
T__45=46, T__46=47, T__47=48, T__48=49, T__49=50, T__50=51, T__51=52,
T__52=53, T__53=54, T__54=55, T__55=56, T__56=57, T__57=58, T__58=59,
T__59=60, T__60=61, T__61=62, T__62=63, T__63=64, T__64=65, T__65=66,
T__66=67, T__67=68, T__68=69, T__69=70, T__70=71, T__71=72, T__72=73,
T__73=74, T__74=75, T__75=76, T__76=77, T__77=78, T__78=79, T__79=80,
T__80=81, T__81=82, T__82=83, T__83=84, T__84=85, T__85=86, T__86=87,
T__87=88, T__88=89, T__89=90, T__90=91, T__91=92, T__92=93, T__93=94,
T__94=95, T__95=96, T__96=97, T__97=98, T__98=99, T__99=100, T__100=101,
T__101=102, T__102=103, T__103=104, T__104=105, T__105=106, T__106=107,
T__107=108, T__108=109, T__109=110, T__110=111, T__111=112, T__112=113,
T__113=114, T__114=115, T__115=116, T__116=117, T__117=118, T__118=119,
T__119=120, T__120=121, T__121=122, T__122=123, T__123=124, T__124=125,
T__125=126, T__126=127, T__127=128, T__128=129, T__129=130, T__130=131,
T__131=132, T__132=133, T__133=134, T__134=135, T__135=136, T__136=137,
T__137=138, T__138=139, T__139=140, T__140=141, T__141=142, T__142=143,
T__143=144, T__144=145, T__145=146, T__146=147, T__147=148, T__148=149,
T__149=150, T__150=151, T__151=152, T__152=153, T__153=154, T__154=155,
T__155=156, T__156=157, T__157=158, T__158=159, T__159=160, T__160=161,
T__161=162, T__162=163, T__163=164, T__164=165, T__165=166, T__166=167,
T__167=168, T__168=169, T__169=170, T__170=171, INT32=172, INT64=173,
FLOAT64=174, DCOLON=175, ELLIPSIS=176, NULL=177, NULLREF=178, HASH=179,
CHAR=180, STRING=181, BOOL=182, INT8=183, INT16=184, INT32_=185, INT64_=186,
FLOAT32=187, FLOAT64_=188, UINT8=189, UINT16=190, UINT32=191, UINT64=192,
INT=193, UINT=194, TYPE=195, OBJECT=196, MODULE=197, VALUE=198, VALUETYPE=199,
VOID=200, ENUM=201, CUSTOM=202, FIXED=203, SYSSTRING=204, ARRAY=205, VARIANT=206,
CURRENCY=207, SYSCHAR=208, ERROR=209, DECIMAL=210, DATE=211, BSTR=212,
LPSTR=213, LPWSTR=214, LPTSTR=215, OBJECTREF=216, IUNKNOWN=217, IDISPATCH=218,
STRUCT=219, INTERFACE=220, SAFEARRAY=221, BYVALSTR=222, ANSI=223, TBSTR=224,
METHOD=225, ANY=226, LPSTRUCT=227, VECTOR=228, HRESULT=229, CARRAY=230,
USERDEFINED=231, RECORD=232, FILETIME=233, BLOB=234, STREAM=235, STORAGE=236,
STREAMED_OBJECT=237, STORED_OBJECT=238, BLOB_OBJECT=239, CF=240, CLSID=241,
INSTANCE=242, EXPLICIT=243, DEFAULT=244, VARARG=245, UNMANAGED=246, CDECL=247,
STDCALL=248, THISCALL=249, FASTCALL=250, TYPE_PARAMETER=251, METHOD_TYPE_PARAMETER=252,
TYPEDREF=253, PARAM=254, CONSTRAINT=255, THIS=256, BASE=257, NESTER=258,
REF=259, ARRAY_TYPE_NO_BOUNDS=260, PTR=261, QSTRING=262, SQSTRING=263,
DOT=264, PLUS=265, PP_DEFINE=266, PP_UNDEF=267, PP_IFDEF=268, PP_IFNDEF=269,
PP_ELSE=270, PP_ENDIF=271, PP_INCLUDE=272, MRESOURCE=273, INSTR_NONE=274,
INSTR_VAR=275, INSTR_I=276, INSTR_I8=277, INSTR_R=278, INSTR_METHOD=279,
INSTR_SIG=280, INSTR_BRTARGET=281, INSTR_SWITCH=282, INSTR_TYPE=283, INSTR_STRING=284,
INSTR_FIELD=285, INSTR_TOK=286, DOTTEDNAME=287, ID=288, HEXBYTE=289, WS=290,
SINGLE_LINE_COMMENT=291, COMMENT=292, PERMISSION=293, PERMISSIONSET=294,
EMITBYTE=295, MAXSTACK=296, ENTRYPOINT=297, ZEROINIT=298, LOCALS=299,
EXPORT=300, OVERRIDE=301, VTENTRY=302, IncludedFileEof=303, SyntheticIncludedFileEof=304;
public const int
RULE_id = 0, RULE_dottedName = 1, RULE_dottedNamePart = 2, RULE_compQstring = 3,
RULE_decls = 4, RULE_decl = 5, RULE_subsystem = 6, RULE_corflags = 7,
RULE_alignment = 8, RULE_imagebase = 9, RULE_stackreserve = 10, RULE_assemblyBlock = 11,
RULE_mscorlib = 12, RULE_languageDecl = 13, RULE_languageString = 14,
RULE_typelist = 15, RULE_int32 = 16, RULE_int64 = 17, RULE_float64 = 18,
RULE_intOrWildcard = 19, RULE_compControl = 20, RULE_typedefDecl = 21,
RULE_customDescr = 22, RULE_customDescrWithOwner = 23, RULE_customType = 24,
RULE_ownerType = 25, RULE_customBlobDescr = 26, RULE_customBlobArgs = 27,
RULE_customBlobNVPairs = 28, RULE_fieldOrProp = 29, RULE_serializType = 30,
RULE_serializTypeElement = 31, RULE_moduleHead = 32, RULE_vtfixupDecl = 33,
RULE_vtfixupAttr = 34, RULE_vtfixupAttrElement = 35, RULE_vtableDecl = 36,
RULE_nameSpaceHead = 37, RULE_classHead = 38, RULE_classAttr = 39, RULE_extendsClause = 40,
RULE_implClause = 41, RULE_classDecls = 42, RULE_implList = 43, RULE_esHead = 44,
RULE_extSourceSpec = 45, RULE_fileDecl = 46, RULE_fileAttr = 47, RULE_fileEntry = 48,
RULE_asmAttrAny = 49, RULE_asmAttr = 50, RULE_instr = 51, RULE_simpleInstr = 52,
RULE_calliSignature = 53, RULE_labels = 54, RULE_typeArgs = 55, RULE_bounds = 56,
RULE_sigArgs = 57, RULE_sigArg = 58, RULE_className = 59, RULE_slashedName = 60,
RULE_assemblyDecls = 61, RULE_assemblyDecl = 62, RULE_typeSpec = 63, RULE_typeSpecOrScope = 64,
RULE_nativeType = 65, RULE_nativeTypeArrayPointerInfo = 66, RULE_nativeTypeElement = 67,
RULE_iidParamIndex = 68, RULE_variantType = 69, RULE_variantTypeElement = 70,
RULE_type = 71, RULE_typeModifiers = 72, RULE_elementType = 73, RULE_simpleType = 74,
RULE_bound = 75, RULE_nativeInt = 76, RULE_nativeUint = 77, RULE_secDecl = 78,
RULE_secAttrSetBlob = 79, RULE_secAttrBlob = 80, RULE_nameValPairs = 81,
RULE_nameValPair = 82, RULE_truefalse = 83, RULE_caValue = 84, RULE_secAction = 85,
RULE_methodRef = 86, RULE_callConv = 87, RULE_callKind = 88, RULE_mdtoken = 89,
RULE_memberRef = 90, RULE_fieldRef = 91, RULE_typeList = 92, RULE_typarsClause = 93,
RULE_typarAttrib = 94, RULE_typarAttribs = 95, RULE_typar = 96, RULE_typars = 97,
RULE_tyBound = 98, RULE_genArity = 99, RULE_genArityNotEmpty = 100, RULE_classDecl = 101,
RULE_fieldDecl = 102, RULE_fieldAttr = 103, RULE_atOpt = 104, RULE_initOpt = 105,
RULE_repeatOpt = 106, RULE_eventHead = 107, RULE_eventAttr = 108, RULE_eventDecls = 109,
RULE_eventDecl = 110, RULE_propHead = 111, RULE_propAttr = 112, RULE_propDecls = 113,
RULE_propDecl = 114, RULE_marshalClause = 115, RULE_marshalBlob = 116,
RULE_paramAttr = 117, RULE_paramAttrElement = 118, RULE_methodHead = 119,
RULE_methAttr = 120, RULE_pinvImpl = 121, RULE_pinvAttr = 122, RULE_methodName = 123,
RULE_implAttr = 124, RULE_methodDecls = 125, RULE_methodDecl = 126, RULE_localsDecl = 127,
RULE_exportDecl = 128, RULE_vtentryDecl = 129, RULE_overrideDecl = 130,
RULE_parameterDecl = 131, RULE_labelDecl = 132, RULE_customDescrInMethodBody = 133,
RULE_scopeBlock = 134, RULE_sehBlock = 135, RULE_sehClauses = 136, RULE_tryBlock = 137,
RULE_sehClause = 138, RULE_filterClause = 139, RULE_catchClause = 140,
RULE_finallyClause = 141, RULE_faultClause = 142, RULE_handlerBlock = 143,
RULE_dataDecl = 144, RULE_ddHead = 145, RULE_tls = 146, RULE_ddBody = 147,
RULE_ddItemList = 148, RULE_ddItemCount = 149, RULE_ddItem = 150, RULE_fieldSerInit = 151,
RULE_bytes = 152, RULE_hexbyte = 153, RULE_fieldInit = 154, RULE_serInit = 155,
RULE_f32seq = 156, RULE_f64seq = 157, RULE_i64seq = 158, RULE_i32seq = 159,
RULE_i16seq = 160, RULE_i8seq = 161, RULE_boolSeq = 162, RULE_sqstringSeq = 163,
RULE_classSeq = 164, RULE_classSeqElement = 165, RULE_objSeq = 166, RULE_customAttrDecl = 167,
RULE_asmOrRefDecl = 168, RULE_assemblyRefBlock = 169, RULE_assemblyRefHead = 170,
RULE_assemblyRefDecls = 171, RULE_assemblyRefDecl = 172, RULE_exptypeBlock = 173,
RULE_exptypeHead = 174, RULE_exportHead = 175, RULE_exptAttrs = 176, RULE_exptAttr = 177,
RULE_exptypeDecls = 178, RULE_exptypeDecl = 179, RULE_manifestResBlock = 180,
RULE_manifestResHead = 181, RULE_manresAttrs = 182, RULE_manresAttr = 183,
RULE_manifestResDecls = 184, RULE_manifestResDecl = 185, RULE_document = 186;
public static readonly string[] ruleNames = {
"id", "dottedName", "dottedNamePart", "compQstring", "decls", "decl",
"subsystem", "corflags", "alignment", "imagebase", "stackreserve", "assemblyBlock",
"mscorlib", "languageDecl", "languageString", "typelist", "int32", "int64",
"float64", "intOrWildcard", "compControl", "typedefDecl", "customDescr",
"customDescrWithOwner", "customType", "ownerType", "customBlobDescr",
"customBlobArgs", "customBlobNVPairs", "fieldOrProp", "serializType",
"serializTypeElement", "moduleHead", "vtfixupDecl", "vtfixupAttr", "vtfixupAttrElement",
"vtableDecl", "nameSpaceHead", "classHead", "classAttr", "extendsClause",
"implClause", "classDecls", "implList", "esHead", "extSourceSpec", "fileDecl",
"fileAttr", "fileEntry", "asmAttrAny", "asmAttr", "instr", "simpleInstr",
"calliSignature", "labels", "typeArgs", "bounds", "sigArgs", "sigArg",
"className", "slashedName", "assemblyDecls", "assemblyDecl", "typeSpec",
"typeSpecOrScope", "nativeType", "nativeTypeArrayPointerInfo", "nativeTypeElement",
"iidParamIndex", "variantType", "variantTypeElement", "type", "typeModifiers",
"elementType", "simpleType", "bound", "nativeInt", "nativeUint", "secDecl",
"secAttrSetBlob", "secAttrBlob", "nameValPairs", "nameValPair", "truefalse",
"caValue", "secAction", "methodRef", "callConv", "callKind", "mdtoken",
"memberRef", "fieldRef", "typeList", "typarsClause", "typarAttrib", "typarAttribs",
"typar", "typars", "tyBound", "genArity", "genArityNotEmpty", "classDecl",
"fieldDecl", "fieldAttr", "atOpt", "initOpt", "repeatOpt", "eventHead",
"eventAttr", "eventDecls", "eventDecl", "propHead", "propAttr", "propDecls",
"propDecl", "marshalClause", "marshalBlob", "paramAttr", "paramAttrElement",
"methodHead", "methAttr", "pinvImpl", "pinvAttr", "methodName", "implAttr",
"methodDecls", "methodDecl", "localsDecl", "exportDecl", "vtentryDecl",
"overrideDecl", "parameterDecl", "labelDecl", "customDescrInMethodBody",
"scopeBlock", "sehBlock", "sehClauses", "tryBlock", "sehClause", "filterClause",
"catchClause", "finallyClause", "faultClause", "handlerBlock", "dataDecl",
"ddHead", "tls", "ddBody", "ddItemList", "ddItemCount", "ddItem", "fieldSerInit",
"bytes", "hexbyte", "fieldInit", "serInit", "f32seq", "f64seq", "i64seq",
"i32seq", "i16seq", "i8seq", "boolSeq", "sqstringSeq", "classSeq", "classSeqElement",
"objSeq", "customAttrDecl", "asmOrRefDecl", "assemblyRefBlock", "assemblyRefHead",
"assemblyRefDecls", "assemblyRefDecl", "exptypeBlock", "exptypeHead",
"exportHead", "exptAttrs", "exptAttr", "exptypeDecls", "exptypeDecl",
"manifestResBlock", "manifestResHead", "manresAttrs", "manresAttr", "manifestResDecls",
"manifestResDecl", "document"
};
private static readonly string[] _LiteralNames = {
null, "'native'", "'cil'", "'optil'", "'managed'", "'forwardref'", "'preservesig'",
"'runtime'", "'internalcall'", "'synchronized'", "'noinlining'", "'aggressiveinlining'",
"'nooptimization'", "'aggressiveoptimization'", "'async'", "'extended'",
"'volatile'", "'{'", "'}'", "'.subsystem'", "'.corflags'", "'.file'",
"'alignment'", "'.imagebase'", "'.stackreserve'", "'.assembly'", "'.mscorlib'",
"'.language'", "','", "'.typelist'", "'('", "')'", "';'", "'.typedef'",
"'as'", "'.custom'", "'='", "'field'", "'property'", "'class'", "'extern'",
"'.vtfixup'", "'['", "']'", "'at'", "'fromunmanaged'", "'callmostderived'",
"'retainappdomain'", "'.vtable'", "'.namespace'", "'.class'", "'public'",
"'private'", "'sealed'", "'abstract'", "'auto'", "'sequential'", "'unicode'",
"'autochar'", "'import'", "'serializable'", "'windowsruntime'", "'nested'",
"'family'", "'assembly'", "'famandassem'", "'famorassem'", "'beforefieldinit'",
"'specialname'", "'rtspecialname'", "'flags'", "'extends'", "'implements'",
"'.line'", "'#line'", "':'", "'nometadata'", "'retargetable'", "'noplatform'",
"'legacy library'", "'x86'", "'amd64'", "'arm'", "'arm64'", "'bytearray'",
"'()'", "'<'", "'>'", "'/'", "'algorithm'", "'unsigned'", "'iidparam'",
"'pinned'", "'modreq'", "'modopt'", "'true'", "'false'", "'request'",
"'demand'", "'assert'", "'deny'", "'permitonly'", "'linkcheck'", "'inheritcheck'",
"'reqmin'", "'reqopt'", "'reqrefuse'", "'prejitgrant'", "'prejitdeny'",
"'noncasdemand'", "'noncaslinkdemand'", "'noncasinheritance'", "'callconv'",
"'mdtoken'", "'-'", "'byreflike'", "'.ctor'", "'.size'", "'.pack'", "'with'",
"'.interfaceimpl'", "'.field'", "'marshal'", "'static'", "'initonly'",
"'privatescope'", "'literal'", "'notserialized'", "'.event'", "'.addon'",
"'.removeon'", "'.fire'", "'.other'", "'.property'", "'.set'", "'.get'",
"'in'", "'out'", "'opt'", "'.method'", "'final'", "'virtual'", "'strict'",
"'hidebysig'", "'newslot'", "'unmanagedexp'", "'reqsecobj'", "'pinvokeimpl'",
"'nomangle'", "'lasterr'", "'winapi'", "'bestfit'", "'on'", "'off'", "'charmaperror'",
"'.cctor'", "'il'", "'init'", "'.try'", "'to'", "'filter'", "'catch'",
"'finally'", "'fault'", "'handler'", "'.data'", "'tls'", "'.publickey'",
"'.ver'", "'.locale'", "'.publickeytoken'", "'forwarder'", null, null,
null, "'::'", "'...'", "'null'", "'nullref'", "'.hash'", null, "'string'",
"'bool'", "'int8'", "'int16'", "'int32'", "'int64'", "'float32'", "'float64'",
"'uint8'", "'uint16'", "'uint32'", "'uint64'", "'int'", "'uint'", "'type'",
"'object'", "'.module'", "'value'", "'valuetype'", "'void'", "'enum'",
"'custom'", "'fixed'", "'sysstring'", "'array'", "'variant'", "'currency'",
"'syschar'", "'error'", "'decimal'", "'date'", "'bstr'", "'lpstr'", "'lpwstr'",
"'lptstr'", "'objectref'", "'iunknown'", "'idispatch'", "'struct'", "'interface'",
"'safearray'", "'byvalstr'", "'ansi'", "'tbstr'", "'method'", "'any'",
"'lpstruct'", "'vector'", "'hresult'", "'carray'", "'userdefined'", "'record'",
"'filetime'", "'blob'", "'stream'", "'storage'", "'streamed_object'",
"'stored_object'", "'blob_object'", "'cf'", "'clsid'", "'instance'", "'explicit'",
"'default'", "'vararg'", "'unmanaged'", "'cdecl'", "'stdcall'", "'thiscall'",
"'fastcall'", "'!'", null, null, "'.param'", "'constraint'", "'.this'",
"'.base'", "'.nester'", "'&'", null, "'*'", null, null, "'.'", "'+'",
"'#define'", "'#undef'", "'#ifdef'", "'#ifndef'", "'#else'", "'#endif'",
"'#include'", "'.mresource'", null, null, null, "'ldc.i8'", null, null,
"'calli'", null, "'switch'", null, "'ldstr'", null, "'ldtoken'", null,
null, null, null, null, null, "'.permission'", "'.permissionset'", "'.emitbyte'",
"'.maxstack'", "'.entrypoint'", "'.zeroinit'", "'.locals'", "'.export'",
"'.override'", "'.vtentry'"
};
private static readonly string[] _SymbolicNames = {
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, "INT32", "INT64", "FLOAT64", "DCOLON", "ELLIPSIS",
"NULL", "NULLREF", "HASH", "CHAR", "STRING", "BOOL", "INT8", "INT16",
"INT32_", "INT64_", "FLOAT32", "FLOAT64_", "UINT8", "UINT16", "UINT32",
"UINT64", "INT", "UINT", "TYPE", "OBJECT", "MODULE", "VALUE", "VALUETYPE",
"VOID", "ENUM", "CUSTOM", "FIXED", "SYSSTRING", "ARRAY", "VARIANT", "CURRENCY",
"SYSCHAR", "ERROR", "DECIMAL", "DATE", "BSTR", "LPSTR", "LPWSTR", "LPTSTR",
"OBJECTREF", "IUNKNOWN", "IDISPATCH", "STRUCT", "INTERFACE", "SAFEARRAY",
"BYVALSTR", "ANSI", "TBSTR", "METHOD", "ANY", "LPSTRUCT", "VECTOR", "HRESULT",
"CARRAY", "USERDEFINED", "RECORD", "FILETIME", "BLOB", "STREAM", "STORAGE",
"STREAMED_OBJECT", "STORED_OBJECT", "BLOB_OBJECT", "CF", "CLSID", "INSTANCE",
"EXPLICIT", "DEFAULT", "VARARG", "UNMANAGED", "CDECL", "STDCALL", "THISCALL",
"FASTCALL", "TYPE_PARAMETER", "METHOD_TYPE_PARAMETER", "TYPEDREF", "PARAM",
"CONSTRAINT", "THIS", "BASE", "NESTER", "REF", "ARRAY_TYPE_NO_BOUNDS",
"PTR", "QSTRING", "SQSTRING", "DOT", "PLUS", "PP_DEFINE", "PP_UNDEF",
"PP_IFDEF", "PP_IFNDEF", "PP_ELSE", "PP_ENDIF", "PP_INCLUDE", "MRESOURCE",
"INSTR_NONE", "INSTR_VAR", "INSTR_I", "INSTR_I8", "INSTR_R", "INSTR_METHOD",
"INSTR_SIG", "INSTR_BRTARGET", "INSTR_SWITCH", "INSTR_TYPE", "INSTR_STRING",
"INSTR_FIELD", "INSTR_TOK", "DOTTEDNAME", "ID", "HEXBYTE", "WS", "SINGLE_LINE_COMMENT",
"COMMENT", "PERMISSION", "PERMISSIONSET", "EMITBYTE", "MAXSTACK", "ENTRYPOINT",
"ZEROINIT", "LOCALS", "EXPORT", "OVERRIDE", "VTENTRY", "IncludedFileEof",
"SyntheticIncludedFileEof"
};
public static readonly IVocabulary DefaultVocabulary = new Vocabulary(_LiteralNames, _SymbolicNames);
[NotNull]
public override IVocabulary Vocabulary
{
get
{
return DefaultVocabulary;
}
}
public override string GrammarFileName { get { return "CIL.g4"; } }
public override string[] RuleNames { get { return ruleNames; } }
public override int[] SerializedAtn { get { return _serializedATN; } }
static CILParser() {
decisionToDFA = new DFA[_ATN.NumberOfDecisions];
for (int i = 0; i < _ATN.NumberOfDecisions; i++) {
decisionToDFA[i] = new DFA(_ATN.GetDecisionState(i), i);
}
}
internal GrammarActions Actions { get; set; } = null!;
public CILParser(ITokenStream input) : this(input, Console.Out, Console.Error) { }
public CILParser(ITokenStream input, TextWriter output, TextWriter errorOutput)
: base(input, output, errorOutput)
{
Interpreter = new ParserATNSimulator(this, _ATN, decisionToDFA, sharedContextCache);
}
public partial class IdContext : ParserRuleContext {
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ID() { return GetToken(CILParser.ID, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UNMANAGED() { return GetToken(CILParser.UNMANAGED, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTANCE() { return GetToken(CILParser.INSTANCE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SQSTRING() { return GetToken(CILParser.SQSTRING, 0); }
public IdContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_id; } }
}
[RuleVersion(0)]
public IdContext id() {
IdContext _localctx = new IdContext(Context, State);
EnterRule(_localctx, 0, RULE_id);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 374;
_la = TokenStream.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 65534L) != 0) || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 70368746274833L) != 0)) ) {
ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class DottedNameContext : ParserRuleContext {
public string Value;
public CILParser.DottedNameBuilder Builder;
public IToken direct;
public DottedNamePartContext part;
public DottedNamePartContext tail;
public IToken quoted;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DOTTEDNAME() { return GetToken(CILParser.DOTTEDNAME, 0); }
[System.Diagnostics.DebuggerNonUserCode] public DottedNamePartContext[] dottedNamePart() {
return GetRuleContexts<DottedNamePartContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNamePartContext dottedNamePart(int i) {
return GetRuleContext<DottedNamePartContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] DOT() { return GetTokens(CILParser.DOT); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DOT(int i) {
return GetToken(CILParser.DOT, i);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SQSTRING() { return GetToken(CILParser.SQSTRING, 0); }
public DottedNameContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_dottedName; } }
}
[RuleVersion(0)]
public DottedNameContext dottedName() {
DottedNameContext _localctx = new DottedNameContext(Context, State);
EnterRule(_localctx, 2, RULE_dottedName);
_localctx.Builder = new CILParser.DottedNameBuilder();
try {
int _alt;
State = 392;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,1,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 376;
_localctx.direct = Match(DOTTEDNAME);
Actions.AddDottedNameToken(_localctx.Builder, _localctx.direct);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
{
State = 384;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,0,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 378;
_localctx.part = dottedNamePart();
Actions.AddDottedNamePart(_localctx.Builder, _localctx.part.Value);
State = 380;
Match(DOT);
}
}
}
State = 386;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,0,Context);
}
State = 387;
_localctx.tail = dottedNamePart();
Actions.AddDottedNamePart(_localctx.Builder, _localctx.tail.Value);
}
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 390;
_localctx.quoted = Match(SQSTRING);
Actions.AddDottedNameToken(_localctx.Builder, _localctx.quoted);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = Actions.EndDottedName(_localctx.Builder);
ExitRule();
}
return _localctx;
}
public partial class DottedNamePartContext : ParserRuleContext {
public string Value;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ID() { return GetToken(CILParser.ID, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTANCE() { return GetToken(CILParser.INSTANCE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SQSTRING() { return GetToken(CILParser.SQSTRING, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DOTTEDNAME() { return GetToken(CILParser.DOTTEDNAME, 0); }
public DottedNamePartContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_dottedNamePart; } }
}
[RuleVersion(0)]
public DottedNamePartContext dottedNamePart() {
DottedNamePartContext _localctx = new DottedNamePartContext(Context, State);
EnterRule(_localctx, 4, RULE_dottedNamePart);
_localctx.Value = string.Empty;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 394;
_la = TokenStream.LA(1);
if ( !(_la==T__15 || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 105553118363649L) != 0)) ) {
ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
}
Context.Stop = TokenStream.LT(-1);
_localctx.Value = Actions.ParseDottedNamePart(_localctx.Start);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class CompQstringContext : ParserRuleContext {
public string Value;
public System.Text.StringBuilder Builder;
public IToken head;
public IToken tail;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] QSTRING() { return GetTokens(CILParser.QSTRING); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode QSTRING(int i) {
return GetToken(CILParser.QSTRING, i);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] PLUS() { return GetTokens(CILParser.PLUS); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PLUS(int i) {
return GetToken(CILParser.PLUS, i);
}
public CompQstringContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_compQstring; } }
}
[RuleVersion(0)]
public CompQstringContext compQstring() {
CompQstringContext _localctx = new CompQstringContext(Context, State);
EnterRule(_localctx, 6, RULE_compQstring);
_localctx.Builder = new System.Text.StringBuilder();
try {
int _alt;
EnterOuterAlt(_localctx, 1);
{
State = 401;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,2,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 396;
_localctx.head = Match(QSTRING);
Actions.AddComposedStringPart(_localctx.Builder, _localctx.head);
State = 398;
Match(PLUS);
}
}
}
State = 403;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,2,Context);
}
State = 404;
_localctx.tail = Match(QSTRING);
Actions.AddComposedStringPart(_localctx.Builder, _localctx.tail);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = Actions.EndComposedString(_localctx.Builder);
ExitRule();
}
return _localctx;
}
public partial class DeclsContext : ParserRuleContext {
[System.Diagnostics.DebuggerNonUserCode] public DeclContext[] decl() {
return GetRuleContexts<DeclContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public DeclContext decl(int i) {
return GetRuleContext<DeclContext>(i);
}
public DeclsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_decls; } }
}
[RuleVersion(0)]
public DeclsContext decls() {
DeclsContext _localctx = new DeclsContext(Context, State);
EnterRule(_localctx, 8, RULE_decls);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 410;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 1972571905523712L) != 0) || ((((_la - 73)) & ~0x3f) == 0 && ((1L << (_la - 73)) & 281474976710659L) != 0) || ((((_la - 139)) & ~0x3f) == 0 && ((1L << (_la - 139)) & 288230376218820609L) != 0) || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 6860956837609473L) != 0)) {
{
{
State = 407;
decl();
}
}
State = 412;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class DeclContext : ParserRuleContext {
public DataDeclContext data;
public VtableDeclContext vtable;
public VtfixupDeclContext vtfixup;
public ExtSourceSpecContext source;
public FileDeclContext file;
public AssemblyBlockContext assembly;
public AssemblyRefBlockContext assemblyReference;
public ExptypeBlockContext exportedType;
public ManifestResBlockContext resource;
public ModuleHeadContext module;
public SecDeclContext security;
public CustomAttrDeclContext attribute;
public LanguageDeclContext language;
public TypedefDeclContext typedef;
[System.Diagnostics.DebuggerNonUserCode] public ClassHeadContext classHead() {
return GetRuleContext<ClassHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ClassDeclsContext classDecls() {
return GetRuleContext<ClassDeclsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public NameSpaceHeadContext nameSpaceHead() {
return GetRuleContext<NameSpaceHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DeclsContext decls() {
return GetRuleContext<DeclsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MethodHeadContext methodHead() {
return GetRuleContext<MethodHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MethodDeclsContext methodDecls() {
return GetRuleContext<MethodDeclsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public FieldDeclContext fieldDecl() {
return GetRuleContext<FieldDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DataDeclContext dataDecl() {
return GetRuleContext<DataDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public VtableDeclContext vtableDecl() {
return GetRuleContext<VtableDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public VtfixupDeclContext vtfixupDecl() {
return GetRuleContext<VtfixupDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ExtSourceSpecContext extSourceSpec() {
return GetRuleContext<ExtSourceSpecContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public FileDeclContext fileDecl() {
return GetRuleContext<FileDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public AssemblyBlockContext assemblyBlock() {
return GetRuleContext<AssemblyBlockContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public AssemblyRefBlockContext assemblyRefBlock() {
return GetRuleContext<AssemblyRefBlockContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ExptypeBlockContext exptypeBlock() {
return GetRuleContext<ExptypeBlockContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ManifestResBlockContext manifestResBlock() {
return GetRuleContext<ManifestResBlockContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ModuleHeadContext moduleHead() {
return GetRuleContext<ModuleHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SecDeclContext secDecl() {
return GetRuleContext<SecDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomAttrDeclContext customAttrDecl() {
return GetRuleContext<CustomAttrDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SubsystemContext subsystem() {
return GetRuleContext<SubsystemContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CorflagsContext corflags() {
return GetRuleContext<CorflagsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public AlignmentContext alignment() {
return GetRuleContext<AlignmentContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ImagebaseContext imagebase() {
return GetRuleContext<ImagebaseContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public StackreserveContext stackreserve() {
return GetRuleContext<StackreserveContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public LanguageDeclContext languageDecl() {
return GetRuleContext<LanguageDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypedefDeclContext typedefDecl() {
return GetRuleContext<TypedefDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CompControlContext compControl() {
return GetRuleContext<CompControlContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypelistContext typelist() {
return GetRuleContext<TypelistContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MscorlibContext mscorlib() {
return GetRuleContext<MscorlibContext>(0);
}
public DeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_decl; } }
}
[RuleVersion(0)]
public DeclContext decl() {
DeclContext _localctx = new DeclContext(Context, State);
EnterRule(_localctx, 10, RULE_decl);
try {
State = 499;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,4,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 413;
classHead();
State = 414;
Match(T__16);
State = 415;
classDecls();
State = 416;
Match(T__17);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 418;
nameSpaceHead();
State = 419;
Match(T__16);
State = 420;
decls();
State = 421;
Match(T__17);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 423;
methodHead();
State = 424;
Match(T__16);
State = 425;
methodDecls();
State = 426;
Match(T__17);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 428;
fieldDecl();
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
Actions.BeginTopLevelDirective();
State = 430;
_localctx.data = dataDecl();
Actions.ProcessTopLevelDataDeclaration(_localctx.data);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
Actions.BeginTopLevelDirective();
State = 434;
_localctx.vtable = vtableDecl();
Actions.ProcessTopLevelVTableDeclaration(_localctx.vtable);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
Actions.BeginTopLevelDirective();
State = 438;
_localctx.vtfixup = vtfixupDecl();
Actions.ProcessTopLevelVTableFixupDeclaration(_localctx.vtfixup);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
Actions.BeginTopLevelDirective();
State = 442;
_localctx.source = extSourceSpec();
Actions.ProcessTopLevelSourceDirective(_localctx.source);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
Actions.BeginTopLevelDirective();
State = 446;
_localctx.file = fileDecl();
Actions.ProcessTopLevelFileDeclaration(_localctx.file);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
Actions.BeginTopLevelDirective();
State = 450;
_localctx.assembly = assemblyBlock();
Actions.ProcessTopLevelAssembly(_localctx.assembly);
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
Actions.BeginTopLevelDirective();
State = 454;
_localctx.assemblyReference = assemblyRefBlock();
Actions.ProcessTopLevelAssemblyReference(_localctx.assemblyReference);
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
Actions.BeginTopLevelDirective();
State = 458;
_localctx.exportedType = exptypeBlock();
Actions.ProcessTopLevelExportedType(_localctx.exportedType);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
Actions.BeginTopLevelDirective();
State = 462;
_localctx.resource = manifestResBlock();
Actions.ProcessTopLevelManifestResource(_localctx.resource);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
Actions.BeginTopLevelDirective();
State = 466;
_localctx.module = moduleHead();
Actions.ProcessTopLevelModule(_localctx.module.Value, _localctx.module.HasName, _localctx.module.IsExternal);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
Actions.BeginTopLevelDirective();
State = 470;
_localctx.security = secDecl();
Actions.ProcessTopLevelSecurityDeclaration(_localctx.security);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 473;
_localctx.attribute = customAttrDecl();
Actions.ProcessTopLevelCustomAttribute(_localctx.attribute);
}
break;
case 17:
EnterOuterAlt(_localctx, 17);
{
Actions.BeginTopLevelDirective();
State = 477;
subsystem();
}
break;
case 18:
EnterOuterAlt(_localctx, 18);
{
Actions.BeginTopLevelDirective();
State = 479;
corflags();
}
break;
case 19:
EnterOuterAlt(_localctx, 19);
{
Actions.BeginTopLevelDirective();
State = 481;
alignment();
}
break;
case 20:
EnterOuterAlt(_localctx, 20);
{
Actions.BeginTopLevelDirective();
State = 483;
imagebase();
}
break;
case 21:
EnterOuterAlt(_localctx, 21);
{
Actions.BeginTopLevelDirective();
State = 485;
stackreserve();
}
break;
case 22:
EnterOuterAlt(_localctx, 22);
{
Actions.BeginTopLevelDirective();
State = 487;
_localctx.language = languageDecl();
Actions.ProcessTopLevelLanguageDirective(_localctx.language);
}
break;
case 23:
EnterOuterAlt(_localctx, 23);
{
Actions.BeginTopLevelDirective();
State = 491;
_localctx.typedef = typedefDecl();
Actions.ProcessTopLevelTypedef(_localctx.typedef);
}
break;
case 24:
EnterOuterAlt(_localctx, 24);
{
Actions.BeginTopLevelDirective();
State = 495;
compControl();
}
break;
case 25:
EnterOuterAlt(_localctx, 25);
{
State = 496;
typelist();
}
break;
case 26:
EnterOuterAlt(_localctx, 26);
{
Actions.BeginTopLevelDirective();
State = 498;
mscorlib();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndDeclaration(_localctx);
ExitRule();
}
return _localctx;
}
public partial class SubsystemContext : ParserRuleContext {
public Int32Context value;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public SubsystemContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_subsystem; } }
}
[RuleVersion(0)]
public SubsystemContext subsystem() {
SubsystemContext _localctx = new SubsystemContext(Context, State);
EnterRule(_localctx, 12, RULE_subsystem);
try {
EnterOuterAlt(_localctx, 1);
{
State = 501;
Match(T__18);
State = 502;
_localctx.value = int32();
Actions.ProcessTopLevelSubsystem((_localctx.value!=null?(_localctx.value.Start):null));
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class CorflagsContext : ParserRuleContext {
public Int32Context value;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public CorflagsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_corflags; } }
}
[RuleVersion(0)]
public CorflagsContext corflags() {
CorflagsContext _localctx = new CorflagsContext(Context, State);
EnterRule(_localctx, 14, RULE_corflags);
try {
EnterOuterAlt(_localctx, 1);
{
State = 505;
Match(T__19);
State = 506;
_localctx.value = int32();
Actions.ProcessTopLevelCorFlags((_localctx.value!=null?(_localctx.value.Start):null));
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class AlignmentContext : ParserRuleContext {
public Int32Context value;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public AlignmentContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_alignment; } }
}
[RuleVersion(0)]
public AlignmentContext alignment() {
AlignmentContext _localctx = new AlignmentContext(Context, State);
EnterRule(_localctx, 16, RULE_alignment);
try {
EnterOuterAlt(_localctx, 1);
{
State = 509;
Match(T__20);
State = 510;
Match(T__21);
State = 511;
_localctx.value = int32();
Actions.ProcessTopLevelAlignment((_localctx.value!=null?(_localctx.value.Start):null));
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ImagebaseContext : ParserRuleContext {
public Int64Context value;
[System.Diagnostics.DebuggerNonUserCode] public Int64Context int64() {
return GetRuleContext<Int64Context>(0);
}
public ImagebaseContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_imagebase; } }
}
[RuleVersion(0)]
public ImagebaseContext imagebase() {
ImagebaseContext _localctx = new ImagebaseContext(Context, State);
EnterRule(_localctx, 18, RULE_imagebase);
try {
EnterOuterAlt(_localctx, 1);
{
State = 514;
Match(T__22);
State = 515;
_localctx.value = int64();
Actions.ProcessTopLevelImageBase((_localctx.value!=null?(_localctx.value.Start):null));
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class StackreserveContext : ParserRuleContext {
public Int64Context value;
[System.Diagnostics.DebuggerNonUserCode] public Int64Context int64() {
return GetRuleContext<Int64Context>(0);
}
public StackreserveContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_stackreserve; } }
}
[RuleVersion(0)]
public StackreserveContext stackreserve() {
StackreserveContext _localctx = new StackreserveContext(Context, State);
EnterRule(_localctx, 20, RULE_stackreserve);
try {
EnterOuterAlt(_localctx, 1);
{
State = 518;
Match(T__23);
State = 519;
_localctx.value = int64();
Actions.ProcessTopLevelStackReserve((_localctx.value!=null?(_localctx.value.Start):null));
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class AssemblyBlockContext : ParserRuleContext {
public CILParser.AssemblyDefinitionValue? Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public AsmAttrContext attributes;
public DottedNameContext name;
public AssemblyDeclsContext declarations;
[System.Diagnostics.DebuggerNonUserCode] public AsmAttrContext asmAttr() {
return GetRuleContext<AsmAttrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public AssemblyDeclsContext assemblyDecls() {
return GetRuleContext<AssemblyDeclsContext>(0);
}
public AssemblyBlockContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_assemblyBlock; } }
}
[RuleVersion(0)]
public AssemblyBlockContext assemblyBlock() {
AssemblyBlockContext _localctx = new AssemblyBlockContext(Context, State);
EnterRule(_localctx, 22, RULE_assemblyBlock);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
try {
EnterOuterAlt(_localctx, 1);
{
State = 522;
Match(T__24);
State = 523;
_localctx.attributes = asmAttr();
State = 524;
_localctx.name = dottedName();
State = 525;
Match(T__16);
State = 526;
_localctx.declarations = assemblyDecls();
State = 527;
Match(T__17);
_localctx.Value = Actions.CreateAssemblyDefinition(
_localctx.attributes.Value,
_localctx.name.Value,
_localctx.declarations.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
if (_localctx.HasSyntaxError)
{
_localctx.Value = null;
}
ExitRule();
}
return _localctx;
}
public partial class MscorlibContext : ParserRuleContext {
public MscorlibContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_mscorlib; } }
}
[RuleVersion(0)]
public MscorlibContext mscorlib() {
MscorlibContext _localctx = new MscorlibContext(Context, State);
EnterRule(_localctx, 24, RULE_mscorlib);
try {
EnterOuterAlt(_localctx, 1);
{
State = 530;
Match(T__25);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class LanguageDeclContext : ParserRuleContext {
public CILParser.LanguageDirectiveValue? Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public LanguageStringContext language;
public LanguageStringContext vendor;
public LanguageStringContext documentType;
[System.Diagnostics.DebuggerNonUserCode] public LanguageStringContext[] languageString() {
return GetRuleContexts<LanguageStringContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public LanguageStringContext languageString(int i) {
return GetRuleContext<LanguageStringContext>(i);
}
public LanguageDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_languageDecl; } }
}
[RuleVersion(0)]
public LanguageDeclContext languageDecl() {
LanguageDeclContext _localctx = new LanguageDeclContext(Context, State);
EnterRule(_localctx, 26, RULE_languageDecl);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
try {
State = 550;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,5,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 532;
Match(T__26);
State = 533;
_localctx.language = languageString();
_localctx.Value = Actions.CreateLanguageDirective(_localctx.language.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 536;
Match(T__26);
State = 537;
_localctx.language = languageString();
State = 538;
Match(T__27);
State = 539;
_localctx.vendor = languageString();
_localctx.Value = Actions.CreateLanguageDirective(_localctx.language.Value, _localctx.vendor.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 542;
Match(T__26);
State = 543;
_localctx.language = languageString();
State = 544;
Match(T__27);
State = 545;
_localctx.vendor = languageString();
State = 546;
Match(T__27);
State = 547;
_localctx.documentType = languageString();
_localctx.Value = Actions.CreateLanguageDirective(_localctx.language.Value, _localctx.vendor.Value, _localctx.documentType.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndLanguageDirective(_localctx, _localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class LanguageStringContext : ParserRuleContext {
public string Value;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SQSTRING() { return GetToken(CILParser.SQSTRING, 0); }
public LanguageStringContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_languageString; } }
}
[RuleVersion(0)]
public LanguageStringContext languageString() {
LanguageStringContext _localctx = new LanguageStringContext(Context, State);
EnterRule(_localctx, 28, RULE_languageString);
_localctx.Value = string.Empty;
try {
EnterOuterAlt(_localctx, 1);
{
State = 552;
Match(SQSTRING);
}
Context.Stop = TokenStream.LT(-1);
_localctx.Value = Actions.ParseLanguageString(_localctx.Start);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class TypelistContext : ParserRuleContext {
public ClassNameContext name;
[System.Diagnostics.DebuggerNonUserCode] public ClassNameContext[] className() {
return GetRuleContexts<ClassNameContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public ClassNameContext className(int i) {
return GetRuleContext<ClassNameContext>(i);
}
public TypelistContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_typelist; } }
}
[RuleVersion(0)]
public TypelistContext typelist() {
TypelistContext _localctx = new TypelistContext(Context, State);
EnterRule(_localctx, 30, RULE_typelist);
Actions.BeginTopLevelTypeList();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 554;
Match(T__28);
State = 555;
Match(T__16);
State = 561;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__15 || _la==T__41 || _la==T__112 || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 105553118478337L) != 0)) {
{
{
State = 556;
_localctx.name = className();
Actions.ProcessTopLevelTypeListEntry(_localctx.name.Value);
}
}
State = 563;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 564;
Match(T__17);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class Int32Context : ParserRuleContext {
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT32() { return GetToken(CILParser.INT32, 0); }
public Int32Context(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_int32; } }
}
[RuleVersion(0)]
public Int32Context int32() {
Int32Context _localctx = new Int32Context(Context, State);
EnterRule(_localctx, 32, RULE_int32);
try {
EnterOuterAlt(_localctx, 1);
{
State = 566;
Match(INT32);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class Int64Context : ParserRuleContext {
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT64() { return GetToken(CILParser.INT64, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT32() { return GetToken(CILParser.INT32, 0); }
public Int64Context(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_int64; } }
}
[RuleVersion(0)]
public Int64Context int64() {
Int64Context _localctx = new Int64Context(Context, State);
EnterRule(_localctx, 34, RULE_int64);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 568;
_la = TokenStream.LA(1);
if ( !(_la==INT32 || _la==INT64) ) {
ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class Float64Context : ParserRuleContext {
public double Value;
public IToken @decimal;
public Int32Context trailing;
public Int32Context integer;
public Int32Context singleBits;
public Int64Context doubleBits;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT64() { return GetToken(CILParser.FLOAT64, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DOT() { return GetToken(CILParser.DOT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT32() { return GetToken(CILParser.FLOAT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT64_() { return GetToken(CILParser.FLOAT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int64Context int64() {
return GetRuleContext<Int64Context>(0);
}
public Float64Context(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_float64; } }
}
[RuleVersion(0)]
public Float64Context float64() {
Float64Context _localctx = new Float64Context(Context, State);
EnterRule(_localctx, 36, RULE_float64);
try {
State = 591;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,7,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 570;
_localctx.@decimal = Match(FLOAT64);
_localctx.Value = Actions.ParseFloatingLiteral(_localctx.@decimal);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 572;
_localctx.trailing = int32();
State = 573;
Match(DOT);
_localctx.Value = Actions.ParseFloatingInteger((_localctx.trailing!=null?(_localctx.trailing.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 576;
_localctx.integer = int32();
_localctx.Value = Actions.ParseFloatingInteger((_localctx.integer!=null?(_localctx.integer.Start):null));
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 579;
Match(FLOAT32);
State = 580;
Match(T__29);
State = 581;
_localctx.singleBits = int32();
State = 582;
Match(T__30);
_localctx.Value = Actions.ParseFloat32Bits((_localctx.singleBits!=null?(_localctx.singleBits.Start):null));
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 585;
Match(FLOAT64_);
State = 586;
Match(T__29);
State = 587;
_localctx.doubleBits = int64();
State = 588;
Match(T__30);
_localctx.Value = Actions.ParseFloat64Bits((_localctx.doubleBits!=null?(_localctx.doubleBits.Start):null));
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class IntOrWildcardContext : ParserRuleContext {
public int? Value;
public Int32Context value;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PTR() { return GetToken(CILParser.PTR, 0); }
public IntOrWildcardContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_intOrWildcard; } }
}
[RuleVersion(0)]
public IntOrWildcardContext intOrWildcard() {
IntOrWildcardContext _localctx = new IntOrWildcardContext(Context, State);
EnterRule(_localctx, 38, RULE_intOrWildcard);
try {
State = 598;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case INT32:
EnterOuterAlt(_localctx, 1);
{
State = 593;
_localctx.value = int32();
_localctx.Value = Actions.ParseInt32((_localctx.value!=null?(_localctx.value.Start):null));
}
break;
case PTR:
EnterOuterAlt(_localctx, 2);
{
State = 596;
Match(PTR);
_localctx.Value = null;
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class CompControlContext : ParserRuleContext {
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PP_DEFINE() { return GetToken(CILParser.PP_DEFINE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ID() { return GetToken(CILParser.ID, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode QSTRING() { return GetToken(CILParser.QSTRING, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PP_UNDEF() { return GetToken(CILParser.PP_UNDEF, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PP_IFDEF() { return GetToken(CILParser.PP_IFDEF, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PP_IFNDEF() { return GetToken(CILParser.PP_IFNDEF, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PP_ELSE() { return GetToken(CILParser.PP_ELSE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PP_ENDIF() { return GetToken(CILParser.PP_ENDIF, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PP_INCLUDE() { return GetToken(CILParser.PP_INCLUDE, 0); }
public CompControlContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_compControl; } }
}
[RuleVersion(0)]
public CompControlContext compControl() {
CompControlContext _localctx = new CompControlContext(Context, State);
EnterRule(_localctx, 40, RULE_compControl);
try {
State = 616;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,9,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 600;
Match(PP_DEFINE);
State = 601;
Match(ID);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 602;
Match(PP_DEFINE);
State = 603;
Match(ID);
State = 604;
Match(QSTRING);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 605;
Match(PP_UNDEF);
State = 606;
Match(ID);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 607;
Match(PP_IFDEF);
State = 608;
Match(ID);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 609;
Match(PP_IFNDEF);
State = 610;
Match(ID);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 611;
Match(PP_ELSE);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 612;
Match(PP_ENDIF);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 613;
Match(PP_INCLUDE);
State = 614;
Match(QSTRING);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 615;
Match(T__31);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class TypedefDeclContext : ParserRuleContext {
public CILParser.TypedefDeclarationValue Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public TypeContext signature;
public DottedNameContext alias;
public ClassNameContext classType;
public MemberRefContext member;
public CustomDescrContext attribute;
public CustomDescrWithOwnerContext ownedAttribute;
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type() {
return GetRuleContext<TypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ClassNameContext className() {
return GetRuleContext<ClassNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MemberRefContext memberRef() {
return GetRuleContext<MemberRefContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomDescrContext customDescr() {
return GetRuleContext<CustomDescrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomDescrWithOwnerContext customDescrWithOwner() {
return GetRuleContext<CustomDescrWithOwnerContext>(0);
}
public TypedefDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_typedefDecl; } }
}
[RuleVersion(0)]
public TypedefDeclContext typedefDecl() {
TypedefDeclContext _localctx = new TypedefDeclContext(Context, State);
EnterRule(_localctx, 42, RULE_typedefDecl);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.TypedefDeclarationValue.Error;
try {
State = 648;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,10,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 618;
Match(T__32);
State = 619;
_localctx.signature = type();
State = 620;
Match(T__33);
State = 621;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateTypeSignatureTypedef(_localctx.signature.Value, _localctx.alias.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 624;
Match(T__32);
State = 625;
_localctx.classType = className();
State = 626;
Match(T__33);
State = 627;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateClassTypedef(_localctx.classType.Value, _localctx.alias.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 630;
Match(T__32);
State = 631;
_localctx.member = memberRef();
State = 632;
Match(T__33);
State = 633;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateMemberTypedef(_localctx.member.Value, _localctx.alias.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 636;
Match(T__32);
State = 637;
_localctx.attribute = customDescr();
State = 638;
Match(T__33);
State = 639;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateCustomAttributeTypedefDeclaration(
_localctx.attribute.Value,
(_localctx.attribute!=null?(_localctx.attribute.Start):null),
_localctx.alias.Value);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 642;
Match(T__32);
State = 643;
_localctx.ownedAttribute = customDescrWithOwner();
State = 644;
Match(T__33);
State = 645;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateCustomAttributeTypedefDeclaration(
_localctx.ownedAttribute.Value,
(_localctx.ownedAttribute!=null?(_localctx.ownedAttribute.Start):null),
_localctx.alias.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
ExitRule();
}
return _localctx;
}
public partial class CustomDescrContext : ParserRuleContext {
public CILParser.CustomAttributeDescriptorValue Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public CustomTypeContext constructor;
public CompQstringContext stringValue;
public CustomBlobDescrContext structuredValue;
public BytesContext rawValue;
[System.Diagnostics.DebuggerNonUserCode] public CustomTypeContext customType() {
return GetRuleContext<CustomTypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext compQstring() {
return GetRuleContext<CompQstringContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomBlobDescrContext customBlobDescr() {
return GetRuleContext<CustomBlobDescrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public BytesContext bytes() {
return GetRuleContext<BytesContext>(0);
}
public CustomDescrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_customDescr; } }
}
[RuleVersion(0)]
public CustomDescrContext customDescr() {
CustomDescrContext _localctx = new CustomDescrContext(Context, State);
EnterRule(_localctx, 44, RULE_customDescr);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.CustomAttributeDescriptorValue.Error;
try {
State = 676;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,11,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 650;
Match(T__34);
State = 651;
_localctx.constructor = customType();
_localctx.Value = Actions.CreateDefaultCustomAttribute(_localctx.constructor.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 654;
Match(T__34);
State = 655;
_localctx.constructor = customType();
State = 656;
Match(T__35);
State = 657;
_localctx.stringValue = compQstring();
_localctx.Value = Actions.CreateStringCustomAttribute(_localctx.constructor.Value, _localctx.stringValue.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 660;
Match(T__34);
State = 661;
_localctx.constructor = customType();
State = 662;
Match(T__35);
State = 663;
Match(T__16);
State = 664;
_localctx.structuredValue = customBlobDescr();
State = 665;
Match(T__17);
_localctx.Value = Actions.CreateStructuredCustomAttribute(_localctx.constructor.Value, _localctx.structuredValue.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 668;
Match(T__34);
State = 669;
_localctx.constructor = customType();
State = 670;
Match(T__35);
State = 671;
Match(T__29);
State = 672;
_localctx.rawValue = bytes();
State = 673;
Match(T__30);
_localctx.Value = Actions.CreateRawCustomAttribute(_localctx.constructor.Value, _localctx.rawValue.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
ExitRule();
}
return _localctx;
}
public partial class CustomDescrWithOwnerContext : ParserRuleContext {
public CILParser.CustomAttributeDescriptorValue Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public OwnerTypeContext owner;
public CustomTypeContext constructor;
public CompQstringContext stringValue;
public CustomBlobDescrContext structuredValue;
public BytesContext rawValue;
[System.Diagnostics.DebuggerNonUserCode] public OwnerTypeContext ownerType() {
return GetRuleContext<OwnerTypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomTypeContext customType() {
return GetRuleContext<CustomTypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext compQstring() {
return GetRuleContext<CompQstringContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomBlobDescrContext customBlobDescr() {
return GetRuleContext<CustomBlobDescrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public BytesContext bytes() {
return GetRuleContext<BytesContext>(0);
}
public CustomDescrWithOwnerContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_customDescrWithOwner; } }
}
[RuleVersion(0)]
public CustomDescrWithOwnerContext customDescrWithOwner() {
CustomDescrWithOwnerContext _localctx = new CustomDescrWithOwnerContext(Context, State);
EnterRule(_localctx, 46, RULE_customDescrWithOwner);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.CustomAttributeDescriptorValue.Error;
try {
State = 716;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,12,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 678;
Match(T__34);
State = 679;
Match(T__29);
State = 680;
_localctx.owner = ownerType();
State = 681;
Match(T__30);
State = 682;
_localctx.constructor = customType();
_localctx.Value = Actions.CreateDefaultOwnedCustomAttribute(_localctx.owner.Value, _localctx.constructor.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 685;
Match(T__34);
State = 686;
Match(T__29);
State = 687;
_localctx.owner = ownerType();
State = 688;
Match(T__30);
State = 689;
_localctx.constructor = customType();
State = 690;
Match(T__35);
State = 691;
_localctx.stringValue = compQstring();
_localctx.Value = Actions.CreateStringOwnedCustomAttribute(_localctx.owner.Value, _localctx.constructor.Value, _localctx.stringValue.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 694;
Match(T__34);
State = 695;
Match(T__29);
State = 696;
_localctx.owner = ownerType();
State = 697;
Match(T__30);
State = 698;
_localctx.constructor = customType();
State = 699;
Match(T__35);
State = 700;
Match(T__16);
State = 701;
_localctx.structuredValue = customBlobDescr();
State = 702;
Match(T__17);
_localctx.Value = Actions.CreateStructuredOwnedCustomAttribute(_localctx.owner.Value, _localctx.constructor.Value, _localctx.structuredValue.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 705;
Match(T__34);
State = 706;
Match(T__29);
State = 707;
_localctx.owner = ownerType();
State = 708;
Match(T__30);
State = 709;
_localctx.constructor = customType();
State = 710;
Match(T__35);
State = 711;
Match(T__29);
State = 712;
_localctx.rawValue = bytes();
State = 713;
Match(T__30);
_localctx.Value = Actions.CreateRawOwnedCustomAttribute(_localctx.owner.Value, _localctx.constructor.Value, _localctx.rawValue.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
ExitRule();
}
return _localctx;
}
public partial class CustomTypeContext : ParserRuleContext {
public CILParser.MethodReferenceValue Value;
public MethodRefContext constructor;
[System.Diagnostics.DebuggerNonUserCode] public MethodRefContext methodRef() {
return GetRuleContext<MethodRefContext>(0);
}
public CustomTypeContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_customType; } }
}
[RuleVersion(0)]
public CustomTypeContext customType() {
CustomTypeContext _localctx = new CustomTypeContext(Context, State);
EnterRule(_localctx, 48, RULE_customType);
_localctx.Value = CILParser.MethodReferenceValue.Error;
try {
EnterOuterAlt(_localctx, 1);
{
State = 718;
_localctx.constructor = methodRef();
_localctx.Value = Actions.CreateCustomAttributeType(_localctx.constructor.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class OwnerTypeContext : ParserRuleContext {
public CILParser.OwnerTypeValue Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public TypeSpecOrScopeContext typeValue;
public MemberRefContext member;
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecOrScopeContext typeSpecOrScope() {
return GetRuleContext<TypeSpecOrScopeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MemberRefContext memberRef() {
return GetRuleContext<MemberRefContext>(0);
}
public OwnerTypeContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_ownerType; } }
}
[RuleVersion(0)]
public OwnerTypeContext ownerType() {
OwnerTypeContext _localctx = new OwnerTypeContext(Context, State);
EnterRule(_localctx, 50, RULE_ownerType);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.OwnerTypeValue.Error;
try {
State = 727;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,13,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 721;
_localctx.typeValue = typeSpecOrScope();
_localctx.Value = Actions.CreateTypeOwner(_localctx.typeValue.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 724;
_localctx.member = memberRef();
_localctx.Value = Actions.CreateMemberOwner(_localctx.member.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
ExitRule();
}
return _localctx;
}
public partial class CustomBlobDescrContext : ParserRuleContext {
public CILParser.CustomAttributeBlobValue Value;
public CustomBlobArgsContext arguments;
public CustomBlobNVPairsContext namedArguments;
[System.Diagnostics.DebuggerNonUserCode] public CustomBlobArgsContext customBlobArgs() {
return GetRuleContext<CustomBlobArgsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomBlobNVPairsContext customBlobNVPairs() {
return GetRuleContext<CustomBlobNVPairsContext>(0);
}
public CustomBlobDescrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_customBlobDescr; } }
}
[RuleVersion(0)]
public CustomBlobDescrContext customBlobDescr() {
CustomBlobDescrContext _localctx = new CustomBlobDescrContext(Context, State);
EnterRule(_localctx, 52, RULE_customBlobDescr);
_localctx.Value = CILParser.CustomAttributeBlobValue.Error;
try {
EnterOuterAlt(_localctx, 1);
{
State = 729;
_localctx.arguments = customBlobArgs();
State = 730;
_localctx.namedArguments = customBlobNVPairs();
_localctx.Value = Actions.CreateCustomAttributeBlob(_localctx.arguments.Value, _localctx.namedArguments.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class CustomBlobArgsContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.SerializedInitializerValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.SerializedInitializerValue>.Builder Builder;
public SerInitContext argument;
[System.Diagnostics.DebuggerNonUserCode] public CompControlContext[] compControl() {
return GetRuleContexts<CompControlContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public CompControlContext compControl(int i) {
return GetRuleContext<CompControlContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public SerInitContext[] serInit() {
return GetRuleContexts<SerInitContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public SerInitContext serInit(int i) {
return GetRuleContext<SerInitContext>(i);
}
public CustomBlobArgsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_customBlobArgs; } }
}
[RuleVersion(0)]
public CustomBlobArgsContext customBlobArgs() {
CustomBlobArgsContext _localctx = new CustomBlobArgsContext(Context, State);
EnterRule(_localctx, 54, RULE_customBlobArgs);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.SerializedInitializerValue>();
try {
int _alt;
EnterOuterAlt(_localctx, 1);
{
State = 739;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,15,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
State = 737;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__83:
case CHAR:
case STRING:
case BOOL:
case INT8:
case INT16:
case INT32_:
case INT64_:
case FLOAT32:
case FLOAT64_:
case UINT8:
case UINT16:
case UINT32:
case UINT64:
case TYPE:
case OBJECT:
{
State = 733;
_localctx.argument = serInit();
_localctx.Builder.Add(_localctx.argument.Value);
}
break;
case T__31:
case PP_DEFINE:
case PP_UNDEF:
case PP_IFDEF:
case PP_IFNDEF:
case PP_ELSE:
case PP_ENDIF:
case PP_INCLUDE:
{
State = 736;
compControl();
}
break;
default:
throw new NoViableAltException(this);
}
}
}
State = 741;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,15,Context);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class CustomBlobNVPairsContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.CustomAttributeNamedArgumentValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.CustomAttributeNamedArgumentValue>.Builder Builder;
public FieldOrPropContext kind;
public SerializTypeContext argumentType;
public DottedNameContext name;
public SerInitContext value;
[System.Diagnostics.DebuggerNonUserCode] public CompControlContext[] compControl() {
return GetRuleContexts<CompControlContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public CompControlContext compControl(int i) {
return GetRuleContext<CompControlContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public FieldOrPropContext[] fieldOrProp() {
return GetRuleContexts<FieldOrPropContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public FieldOrPropContext fieldOrProp(int i) {
return GetRuleContext<FieldOrPropContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public SerializTypeContext[] serializType() {
return GetRuleContexts<SerializTypeContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public SerializTypeContext serializType(int i) {
return GetRuleContext<SerializTypeContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext[] dottedName() {
return GetRuleContexts<DottedNameContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName(int i) {
return GetRuleContext<DottedNameContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public SerInitContext[] serInit() {
return GetRuleContexts<SerInitContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public SerInitContext serInit(int i) {
return GetRuleContext<SerInitContext>(i);
}
public CustomBlobNVPairsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_customBlobNVPairs; } }
}
[RuleVersion(0)]
public CustomBlobNVPairsContext customBlobNVPairs() {
CustomBlobNVPairsContext _localctx = new CustomBlobNVPairsContext(Context, State);
EnterRule(_localctx, 56, RULE_customBlobNVPairs);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.CustomAttributeNamedArgumentValue>();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 752;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 416611827712L) != 0) || ((((_la - 266)) & ~0x3f) == 0 && ((1L << (_la - 266)) & 127L) != 0)) {
{
State = 750;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__36:
case T__37:
{
State = 742;
_localctx.kind = fieldOrProp();
State = 743;
_localctx.argumentType = serializType();
State = 744;
_localctx.name = dottedName();
State = 745;
Match(T__35);
State = 746;
_localctx.value = serInit();
_localctx.Builder.Add(Actions.CreateCustomBlobNamedArgument(
_localctx.kind.Value,
_localctx.argumentType.Value,
_localctx.name.Value,
_localctx.value.Value));
}
break;
case T__31:
case PP_DEFINE:
case PP_UNDEF:
case PP_IFDEF:
case PP_IFNDEF:
case PP_ELSE:
case PP_ENDIF:
case PP_INCLUDE:
{
State = 749;
compControl();
}
break;
default:
throw new NoViableAltException(this);
}
}
State = 754;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class FieldOrPropContext : ParserRuleContext {
public byte Value;
public IToken kind;
public FieldOrPropContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_fieldOrProp; } }
}
[RuleVersion(0)]
public FieldOrPropContext fieldOrProp() {
FieldOrPropContext _localctx = new FieldOrPropContext(Context, State);
EnterRule(_localctx, 58, RULE_fieldOrProp);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 755;
_localctx.kind = TokenStream.LT(1);
_la = TokenStream.LA(1);
if ( !(_la==T__36 || _la==T__37) ) {
_localctx.kind = ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
_localctx.Value = Actions.GetCustomAttributeNamedArgumentKind(_localctx.kind);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class SerializTypeContext : ParserRuleContext {
public CILParser.SerializationTypeValue Value;
public SerializTypeElementContext element;
public IToken array;
[System.Diagnostics.DebuggerNonUserCode] public SerializTypeElementContext serializTypeElement() {
return GetRuleContext<SerializTypeElementContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ARRAY_TYPE_NO_BOUNDS() { return GetToken(CILParser.ARRAY_TYPE_NO_BOUNDS, 0); }
public SerializTypeContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_serializType; } }
}
[RuleVersion(0)]
public SerializTypeContext serializType() {
SerializTypeContext _localctx = new SerializTypeContext(Context, State);
EnterRule(_localctx, 60, RULE_serializType);
_localctx.Value = CILParser.SerializationTypeValue.Error;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 758;
_localctx.element = serializTypeElement();
State = 760;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==ARRAY_TYPE_NO_BOUNDS) {
{
State = 759;
_localctx.array = Match(ARRAY_TYPE_NO_BOUNDS);
}
}
_localctx.Value = Actions.CreateSerializationType(_localctx.element.Value, _localctx.array);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class SerializTypeElementContext : ParserRuleContext {
public CILParser.SerializationTypeValue Value;
public SimpleTypeContext primitive;
public DottedNameContext alias;
public IToken simpleTypeToken;
public IToken quotedName;
public ClassNameContext classNameValue;
[System.Diagnostics.DebuggerNonUserCode] public SimpleTypeContext simpleType() {
return GetRuleContext<SimpleTypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TYPE() { return GetToken(CILParser.TYPE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OBJECT() { return GetToken(CILParser.OBJECT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ENUM() { return GetToken(CILParser.ENUM, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SQSTRING() { return GetToken(CILParser.SQSTRING, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ClassNameContext className() {
return GetRuleContext<ClassNameContext>(0);
}
public SerializTypeElementContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_serializTypeElement; } }
}
[RuleVersion(0)]
public SerializTypeElementContext serializTypeElement() {
SerializTypeElementContext _localctx = new SerializTypeElementContext(Context, State);
EnterRule(_localctx, 62, RULE_serializTypeElement);
_localctx.Value = CILParser.SerializationTypeValue.Error;
try {
State = 782;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,19,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 764;
_localctx.primitive = simpleType();
_localctx.Value = Actions.CreatePrimitiveSerializationType(_localctx.primitive.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 767;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateSerializationTypeTypedef(_localctx, _localctx.alias.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 770;
_localctx.simpleTypeToken = Match(TYPE);
_localctx.Value = Actions.CreateSimpleSerializationType(_localctx.simpleTypeToken);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 772;
_localctx.simpleTypeToken = Match(OBJECT);
_localctx.Value = Actions.CreateSimpleSerializationType(_localctx.simpleTypeToken);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 774;
Match(ENUM);
State = 775;
Match(T__38);
State = 776;
_localctx.quotedName = Match(SQSTRING);
_localctx.Value = Actions.CreateEnumSerializationType(_localctx.quotedName);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 778;
Match(ENUM);
State = 779;
_localctx.classNameValue = className();
_localctx.Value = Actions.CreateEnumSerializationType(_localctx.classNameValue.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ModuleHeadContext : ParserRuleContext {
public string? Value;
public bool HasName;
public bool IsExternal;
public DottedNameContext name;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode MODULE() { return GetToken(CILParser.MODULE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
public ModuleHeadContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_moduleHead; } }
}
[RuleVersion(0)]
public ModuleHeadContext moduleHead() {
ModuleHeadContext _localctx = new ModuleHeadContext(Context, State);
EnterRule(_localctx, 64, RULE_moduleHead);
_localctx.Value = null;
try {
State = 795;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,20,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 784;
Match(MODULE);
State = 785;
Match(T__39);
State = 786;
_localctx.name = dottedName();
Actions.SetModuleHeader(_localctx, _localctx.name.Value, true);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 789;
Match(MODULE);
State = 790;
_localctx.name = dottedName();
Actions.SetModuleHeader(_localctx, _localctx.name.Value, false);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 793;
Match(MODULE);
Actions.SetEmptyModuleHeader(_localctx);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class VtfixupDeclContext : ParserRuleContext {
public CILParser.VTableFixupValue? Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public Int32Context count;
public VtfixupAttrContext attributes;
public IdContext label;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public VtfixupAttrContext vtfixupAttr() {
return GetRuleContext<VtfixupAttrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public IdContext id() {
return GetRuleContext<IdContext>(0);
}
public VtfixupDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_vtfixupDecl; } }
}
[RuleVersion(0)]
public VtfixupDeclContext vtfixupDecl() {
VtfixupDeclContext _localctx = new VtfixupDeclContext(Context, State);
EnterRule(_localctx, 66, RULE_vtfixupDecl);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
try {
EnterOuterAlt(_localctx, 1);
{
State = 797;
Match(T__40);
State = 798;
Match(T__41);
State = 799;
_localctx.count = int32();
State = 800;
Match(T__42);
State = 801;
_localctx.attributes = vtfixupAttr();
State = 802;
Match(T__43);
State = 803;
_localctx.label = id();
_localctx.Value = Actions.CreateVTableFixup(
(_localctx.count!=null?(_localctx.count.Start):null),
_localctx.attributes.Value,
(_localctx.label!=null?(_localctx.label.Start):null));
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
if (_localctx.HasSyntaxError)
{
_localctx.Value = null;
}
ExitRule();
}
return _localctx;
}
public partial class VtfixupAttrContext : ParserRuleContext {
public ushort Value;
public VtfixupAttrElementContext attribute;
[System.Diagnostics.DebuggerNonUserCode] public VtfixupAttrElementContext[] vtfixupAttrElement() {
return GetRuleContexts<VtfixupAttrElementContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public VtfixupAttrElementContext vtfixupAttrElement(int i) {
return GetRuleContext<VtfixupAttrElementContext>(i);
}
public VtfixupAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_vtfixupAttr; } }
}
[RuleVersion(0)]
public VtfixupAttrContext vtfixupAttr() {
VtfixupAttrContext _localctx = new VtfixupAttrContext(Context, State);
EnterRule(_localctx, 68, RULE_vtfixupAttr);
_localctx.Value = 0;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 811;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 246290604621824L) != 0) || _la==INT32_ || _la==INT64_) {
{
{
State = 806;
_localctx.attribute = vtfixupAttrElement();
_localctx.Value = Actions.AddVTableFixupAttribute(_localctx.Value, _localctx.attribute.Value);
}
}
State = 813;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
_localctx.Value = Actions.CompleteVTableFixupAttributes(_localctx.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class VtfixupAttrElementContext : ParserRuleContext {
public ushort Value;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT32_() { return GetToken(CILParser.INT32_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT64_() { return GetToken(CILParser.INT64_, 0); }
public VtfixupAttrElementContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_vtfixupAttrElement; } }
}
[RuleVersion(0)]
public VtfixupAttrElementContext vtfixupAttrElement() {
VtfixupAttrElementContext _localctx = new VtfixupAttrElementContext(Context, State);
EnterRule(_localctx, 70, RULE_vtfixupAttrElement);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 816;
_la = TokenStream.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 246290604621824L) != 0) || _la==INT32_ || _la==INT64_) ) {
ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
}
Context.Stop = TokenStream.LT(-1);
_localctx.Value = Actions.ParseVTableFixupAttribute(_localctx.Start);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class VtableDeclContext : ParserRuleContext {
public CILParser.RawVTableValue? Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public BytesContext value;
[System.Diagnostics.DebuggerNonUserCode] public BytesContext bytes() {
return GetRuleContext<BytesContext>(0);
}
public VtableDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_vtableDecl; } }
}
[RuleVersion(0)]
public VtableDeclContext vtableDecl() {
VtableDeclContext _localctx = new VtableDeclContext(Context, State);
EnterRule(_localctx, 72, RULE_vtableDecl);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
try {
EnterOuterAlt(_localctx, 1);
{
State = 818;
Match(T__47);
State = 819;
Match(T__35);
State = 820;
Match(T__29);
State = 821;
_localctx.value = bytes();
State = 822;
Match(T__30);
_localctx.Value = Actions.CreateRawVTable(_localctx.value.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
if (_localctx.HasSyntaxError)
{
_localctx.Value = null;
}
ExitRule();
}
return _localctx;
}
public partial class NameSpaceHeadContext : ParserRuleContext {
public string Value;
public int InitialSyntaxErrorCount;
public DottedNameContext name;
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
public NameSpaceHeadContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_nameSpaceHead; } }
}
[RuleVersion(0)]
public NameSpaceHeadContext nameSpaceHead() {
NameSpaceHeadContext _localctx = new NameSpaceHeadContext(Context, State);
EnterRule(_localctx, 74, RULE_nameSpaceHead);
Actions.PrepareNamespaceHeader();
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = string.Empty;
try {
EnterOuterAlt(_localctx, 1);
{
State = 825;
Match(T__48);
State = 826;
_localctx.name = dottedName();
_localctx.Value = _localctx.name.Value;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.BeginNamespace(_localctx, _localctx.Value, _localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class ClassHeadContext : ParserRuleContext {
public CILParser.ClassHeaderValue Value;
public int InitialSyntaxErrorCount;
public CILParser.ClassHeaderBuilder Builder;
public ClassAttrContext attribute;
public DottedNameContext name;
public TyparsClauseContext genericParameters;
public ExtendsClauseContext baseType;
public ImplClauseContext interfaces;
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TyparsClauseContext typarsClause() {
return GetRuleContext<TyparsClauseContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ExtendsClauseContext extendsClause() {
return GetRuleContext<ExtendsClauseContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ImplClauseContext implClause() {
return GetRuleContext<ImplClauseContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ClassAttrContext[] classAttr() {
return GetRuleContexts<ClassAttrContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public ClassAttrContext classAttr(int i) {
return GetRuleContext<ClassAttrContext>(i);
}
public ClassHeadContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_classHead; } }
}
[RuleVersion(0)]
public ClassHeadContext classHead() {
ClassHeadContext _localctx = new ClassHeadContext(Context, State);
EnterRule(_localctx, 76, RULE_classHead);
_localctx.Builder = Actions.PrepareClassHeader();
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.ClassHeaderValue.Error;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 829;
Match(T__49);
State = 835;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (((((_la - 15)) & ~0x3f) == 0 && ((1L << (_la - 15)) & 67835400667791361L) != 0) || ((((_la - 198)) & ~0x3f) == 0 && ((1L << (_la - 198)) & 35184409837577L) != 0)) {
{
{
State = 830;
_localctx.attribute = classAttr();
Actions.AddClassHeaderAttribute(_localctx.Builder, _localctx.attribute.Value);
}
}
State = 837;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 838;
_localctx.name = dottedName();
State = 839;
_localctx.genericParameters = typarsClause();
State = 840;
_localctx.baseType = extendsClause();
State = 841;
_localctx.interfaces = implClause();
_localctx.Value = Actions.CreateClassHeader(
_localctx,
_localctx.Builder,
_localctx.InitialSyntaxErrorCount,
(_localctx.name!=null?(_localctx.name.Stop):null),
_localctx.name.Value,
_localctx.genericParameters.Value,
_localctx.baseType.Value,
_localctx.interfaces.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.BeginType(_localctx, _localctx.Value);
ExitRule();
}
return _localctx;
}
public partial class ClassAttrContext : ParserRuleContext {
public CILParser.ClassAttributeValue Value;
public IToken attribute;
public IToken visibility;
public Int32Context flags;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VALUE() { return GetToken(CILParser.VALUE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ENUM() { return GetToken(CILParser.ENUM, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INTERFACE() { return GetToken(CILParser.INTERFACE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode EXPLICIT() { return GetToken(CILParser.EXPLICIT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ANSI() { return GetToken(CILParser.ANSI, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public ClassAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_classAttr; } }
}
[RuleVersion(0)]
public ClassAttrContext classAttr() {
ClassAttrContext _localctx = new ClassAttrContext(Context, State);
EnterRule(_localctx, 78, RULE_classAttr);
_localctx.Value = CILParser.ClassAttributeValue.Empty;
try {
State = 908;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,23,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 844;
_localctx.attribute = Match(T__50);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 846;
_localctx.attribute = Match(T__51);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 848;
_localctx.attribute = Match(VALUE);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 850;
_localctx.attribute = Match(ENUM);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 852;
_localctx.attribute = Match(INTERFACE);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 854;
_localctx.attribute = Match(T__52);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 856;
_localctx.attribute = Match(T__53);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 858;
_localctx.attribute = Match(T__54);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 860;
_localctx.attribute = Match(T__55);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 862;
_localctx.attribute = Match(EXPLICIT);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 864;
_localctx.attribute = Match(T__14);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 866;
_localctx.attribute = Match(ANSI);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 868;
_localctx.attribute = Match(T__56);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 870;
_localctx.attribute = Match(T__57);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 872;
_localctx.attribute = Match(T__58);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 874;
_localctx.attribute = Match(T__59);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 17:
EnterOuterAlt(_localctx, 17);
{
State = 876;
_localctx.attribute = Match(T__60);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 18:
EnterOuterAlt(_localctx, 18);
{
State = 878;
Match(T__61);
State = 879;
_localctx.visibility = Match(T__50);
_localctx.Value = Actions.CreateNestedClassAttribute(_localctx.visibility);
}
break;
case 19:
EnterOuterAlt(_localctx, 19);
{
State = 881;
Match(T__61);
State = 882;
_localctx.visibility = Match(T__51);
_localctx.Value = Actions.CreateNestedClassAttribute(_localctx.visibility);
}
break;
case 20:
EnterOuterAlt(_localctx, 20);
{
State = 884;
Match(T__61);
State = 885;
_localctx.visibility = Match(T__62);
_localctx.Value = Actions.CreateNestedClassAttribute(_localctx.visibility);
}
break;
case 21:
EnterOuterAlt(_localctx, 21);
{
State = 887;
Match(T__61);
State = 888;
_localctx.visibility = Match(T__63);
_localctx.Value = Actions.CreateNestedClassAttribute(_localctx.visibility);
}
break;
case 22:
EnterOuterAlt(_localctx, 22);
{
State = 890;
Match(T__61);
State = 891;
_localctx.visibility = Match(T__64);
_localctx.Value = Actions.CreateNestedClassAttribute(_localctx.visibility);
}
break;
case 23:
EnterOuterAlt(_localctx, 23);
{
State = 893;
Match(T__61);
State = 894;
_localctx.visibility = Match(T__65);
_localctx.Value = Actions.CreateNestedClassAttribute(_localctx.visibility);
}
break;
case 24:
EnterOuterAlt(_localctx, 24);
{
State = 896;
_localctx.attribute = Match(T__66);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 25:
EnterOuterAlt(_localctx, 25);
{
State = 898;
_localctx.attribute = Match(T__67);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 26:
EnterOuterAlt(_localctx, 26);
{
State = 900;
_localctx.attribute = Match(T__68);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 27:
EnterOuterAlt(_localctx, 27);
{
State = 902;
Match(T__69);
State = 903;
Match(T__29);
State = 904;
_localctx.flags = int32();
State = 905;
Match(T__30);
_localctx.Value = Actions.CreateRawClassAttribute((_localctx.flags!=null?(_localctx.flags.Start):null));
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ExtendsClauseContext : ParserRuleContext {
public CILParser.TypeSpecificationValue? Value;
public TypeSpecContext baseType;
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec() {
return GetRuleContext<TypeSpecContext>(0);
}
public ExtendsClauseContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_extendsClause; } }
}
[RuleVersion(0)]
public ExtendsClauseContext extendsClause() {
ExtendsClauseContext _localctx = new ExtendsClauseContext(Context, State);
EnterRule(_localctx, 80, RULE_extendsClause);
_localctx.Value = Actions.CreateEmptyClassBase();
try {
State = 915;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__16:
case T__71:
EnterOuterAlt(_localctx, 1);
{
}
break;
case T__70:
EnterOuterAlt(_localctx, 2);
{
State = 911;
Match(T__70);
State = 912;
_localctx.baseType = typeSpec();
_localctx.Value = Actions.CreateClassBase(_localctx.baseType.Value);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ImplClauseContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.TypeSpecificationValue> Value;
public ImplListContext interfaces;
[System.Diagnostics.DebuggerNonUserCode] public ImplListContext implList() {
return GetRuleContext<ImplListContext>(0);
}
public ImplClauseContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_implClause; } }
}
[RuleVersion(0)]
public ImplClauseContext implClause() {
ImplClauseContext _localctx = new ImplClauseContext(Context, State);
EnterRule(_localctx, 82, RULE_implClause);
_localctx.Value = Actions.CreateEmptyInterfaceList();
try {
State = 922;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__16:
EnterOuterAlt(_localctx, 1);
{
}
break;
case T__71:
EnterOuterAlt(_localctx, 2);
{
State = 918;
Match(T__71);
State = 919;
_localctx.interfaces = implList();
_localctx.Value = _localctx.interfaces.Value;
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ClassDeclsContext : ParserRuleContext {
[System.Diagnostics.DebuggerNonUserCode] public ClassDeclContext[] classDecl() {
return GetRuleContexts<ClassDeclContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public ClassDeclContext classDecl(int i) {
return GetRuleContext<ClassDeclContext>(i);
}
public ClassDeclsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_classDecls; } }
}
[RuleVersion(0)]
public ClassDeclsContext classDecls() {
ClassDeclsContext _localctx = new ClassDeclsContext(Context, State);
EnterRule(_localctx, 84, RULE_classDecls);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 927;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (((((_la - 16)) & ~0x3f) == 0 && ((1L << (_la - 16)) & 432345581408028673L) != 0) || ((((_la - 117)) & ~0x3f) == 0 && ((1L << (_la - 117)) & 281474980972571L) != 0) || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 871552083145265153L) != 0)) {
{
{
State = 924;
classDecl();
}
}
State = 929;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ImplListContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.TypeSpecificationValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.TypeSpecificationValue>.Builder Builder;
public TypeSpecContext interfaceType;
public TypeSpecContext lastInterfaceType;
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext[] typeSpec() {
return GetRuleContexts<TypeSpecContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec(int i) {
return GetRuleContext<TypeSpecContext>(i);
}
public ImplListContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_implList; } }
}
[RuleVersion(0)]
public ImplListContext implList() {
ImplListContext _localctx = new ImplListContext(Context, State);
EnterRule(_localctx, 86, RULE_implList);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.TypeSpecificationValue>();
try {
int _alt;
EnterOuterAlt(_localctx, 1);
{
State = 936;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,27,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 930;
_localctx.interfaceType = typeSpec();
_localctx.Builder.Add(_localctx.interfaceType.Value);
State = 932;
Match(T__27);
}
}
}
State = 938;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,27,Context);
}
State = 939;
_localctx.lastInterfaceType = typeSpec();
_localctx.Builder.Add(_localctx.lastInterfaceType.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class EsHeadContext : ParserRuleContext {
public bool AutoIncrement;
public EsHeadContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_esHead; } }
}
[RuleVersion(0)]
public EsHeadContext esHead() {
EsHeadContext _localctx = new EsHeadContext(Context, State);
EnterRule(_localctx, 88, RULE_esHead);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 942;
_la = TokenStream.LA(1);
if ( !(_la==T__72 || _la==T__73) ) {
ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
}
Context.Stop = TokenStream.LT(-1);
_localctx.AutoIncrement = Actions.IsAutoIncrementSourceDirective(_localctx.Start);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ExtSourceSpecContext : ParserRuleContext {
public CILParser.SourceDirectiveValue? Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public EsHeadContext head;
public Int32Context line;
public IToken path;
public Int32Context column;
public Int32Context startColumn;
public Int32Context endColumn;
public Int32Context startLine;
public Int32Context endLine;
[System.Diagnostics.DebuggerNonUserCode] public EsHeadContext esHead() {
return GetRuleContext<EsHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context[] int32() {
return GetRuleContexts<Int32Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32(int i) {
return GetRuleContext<Int32Context>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SQSTRING() { return GetToken(CILParser.SQSTRING, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode QSTRING() { return GetToken(CILParser.QSTRING, 0); }
public ExtSourceSpecContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_extSourceSpec; } }
}
[RuleVersion(0)]
public ExtSourceSpecContext extSourceSpec() {
ExtSourceSpecContext _localctx = new ExtSourceSpecContext(Context, State);
EnterRule(_localctx, 90, RULE_extSourceSpec);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
int _la;
try {
State = 995;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,33,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 944;
_localctx.head = esHead();
State = 945;
_localctx.line = int32();
State = 947;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,28,Context) ) {
case 1:
{
State = 946;
_localctx.path = TokenStream.LT(1);
_la = TokenStream.LA(1);
if ( !(_la==QSTRING || _la==SQSTRING) ) {
_localctx.path = ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
}
break;
}
_localctx.Value = Actions.CreateSourceLine(_localctx.head.AutoIncrement, (_localctx.line!=null?(_localctx.line.Start):null), _localctx.path);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 951;
_localctx.head = esHead();
State = 952;
_localctx.line = int32();
State = 953;
Match(T__74);
State = 954;
_localctx.column = int32();
State = 956;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,29,Context) ) {
case 1:
{
State = 955;
_localctx.path = Match(SQSTRING);
}
break;
}
_localctx.Value = Actions.CreateSourceColumn(_localctx.head.AutoIncrement, (_localctx.line!=null?(_localctx.line.Start):null), (_localctx.column!=null?(_localctx.column.Start):null), _localctx.path);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 960;
_localctx.head = esHead();
State = 961;
_localctx.line = int32();
State = 962;
Match(T__74);
State = 963;
_localctx.startColumn = int32();
State = 964;
Match(T__27);
State = 965;
_localctx.endColumn = int32();
State = 967;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,30,Context) ) {
case 1:
{
State = 966;
_localctx.path = Match(SQSTRING);
}
break;
}
_localctx.Value = Actions.CreateSourceColumnRange(
_localctx.head.AutoIncrement,
(_localctx.line!=null?(_localctx.line.Start):null),
(_localctx.startColumn!=null?(_localctx.startColumn.Start):null),
(_localctx.endColumn!=null?(_localctx.endColumn.Start):null),
_localctx.path);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 971;
_localctx.head = esHead();
State = 972;
_localctx.startLine = int32();
State = 973;
Match(T__27);
State = 974;
_localctx.endLine = int32();
State = 975;
Match(T__74);
State = 976;
_localctx.column = int32();
State = 978;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,31,Context) ) {
case 1:
{
State = 977;
_localctx.path = Match(SQSTRING);
}
break;
}
_localctx.Value = Actions.CreateSourceLineRange(
_localctx.head.AutoIncrement,
(_localctx.startLine!=null?(_localctx.startLine.Start):null),
(_localctx.endLine!=null?(_localctx.endLine.Start):null),
(_localctx.column!=null?(_localctx.column.Start):null),
_localctx.path);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 982;
_localctx.head = esHead();
State = 983;
_localctx.startLine = int32();
State = 984;
Match(T__27);
State = 985;
_localctx.endLine = int32();
State = 986;
Match(T__74);
State = 987;
_localctx.startColumn = int32();
State = 988;
Match(T__27);
State = 989;
_localctx.endColumn = int32();
State = 991;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,32,Context) ) {
case 1:
{
State = 990;
_localctx.path = Match(SQSTRING);
}
break;
}
_localctx.Value = Actions.CreateSourceRange(
_localctx.head.AutoIncrement,
(_localctx.startLine!=null?(_localctx.startLine.Start):null),
(_localctx.endLine!=null?(_localctx.endLine.Start):null),
(_localctx.startColumn!=null?(_localctx.startColumn.Start):null),
(_localctx.endColumn!=null?(_localctx.endColumn.Start):null),
_localctx.path);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndSourceDirective(_localctx, _localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class FileDeclContext : ParserRuleContext {
public CILParser.FileDeclarationValue? Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public CILParser.FileDeclarationBuilder Builder;
public FileAttrContext attribute;
public DottedNameContext name;
public FileEntryContext entry;
public BytesContext hash;
public FileEntryContext trailingEntry;
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public FileEntryContext[] fileEntry() {
return GetRuleContexts<FileEntryContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public FileEntryContext fileEntry(int i) {
return GetRuleContext<FileEntryContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode HASH() { return GetToken(CILParser.HASH, 0); }
[System.Diagnostics.DebuggerNonUserCode] public FileAttrContext[] fileAttr() {
return GetRuleContexts<FileAttrContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public FileAttrContext fileAttr(int i) {
return GetRuleContext<FileAttrContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public BytesContext bytes() {
return GetRuleContext<BytesContext>(0);
}
public FileDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_fileDecl; } }
}
[RuleVersion(0)]
public FileDeclContext fileDecl() {
FileDeclContext _localctx = new FileDeclContext(Context, State);
EnterRule(_localctx, 92, RULE_fileDecl);
_localctx.Builder = new CILParser.FileDeclarationBuilder();
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 997;
Match(T__20);
State = 1003;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__75) {
{
{
State = 998;
_localctx.attribute = fileAttr();
Actions.AddFileAttribute(_localctx.Builder, _localctx.attribute.Value);
}
}
State = 1005;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 1006;
_localctx.name = dottedName();
Actions.SetFileName(_localctx.Builder, _localctx.name.Value);
State = 1008;
_localctx.entry = fileEntry();
Actions.AddFileEntry(_localctx.Builder, _localctx.entry.Value);
State = 1019;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==HASH) {
{
State = 1010;
Match(HASH);
State = 1011;
Match(T__35);
State = 1012;
Match(T__29);
State = 1013;
_localctx.hash = bytes();
State = 1014;
Match(T__30);
Actions.SetFileHash(_localctx.Builder, _localctx.hash.Value);
State = 1016;
_localctx.trailingEntry = fileEntry();
Actions.AddFileEntry(_localctx.Builder, _localctx.trailingEntry.Value);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndFileDeclaration(_localctx, _localctx.Builder, _localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class FileAttrContext : ParserRuleContext {
public bool Value;
public FileAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_fileAttr; } }
}
[RuleVersion(0)]
public FileAttrContext fileAttr() {
FileAttrContext _localctx = new FileAttrContext(Context, State);
EnterRule(_localctx, 94, RULE_fileAttr);
try {
EnterOuterAlt(_localctx, 1);
{
State = 1021;
Match(T__75);
}
Context.Stop = TokenStream.LT(-1);
_localctx.Value = Actions.ParseFileAttribute(_localctx.Start);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class FileEntryContext : ParserRuleContext {
public bool Value;
public IToken entry;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ENTRYPOINT() { return GetToken(CILParser.ENTRYPOINT, 0); }
public FileEntryContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_fileEntry; } }
}
[RuleVersion(0)]
public FileEntryContext fileEntry() {
FileEntryContext _localctx = new FileEntryContext(Context, State);
EnterRule(_localctx, 96, RULE_fileEntry);
_localctx.Value = false;
try {
State = 1026;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case Eof:
case T__15:
case T__17:
case T__18:
case T__19:
case T__20:
case T__22:
case T__23:
case T__24:
case T__25:
case T__26:
case T__28:
case T__31:
case T__32:
case T__34:
case T__40:
case T__47:
case T__48:
case T__49:
case T__72:
case T__73:
case T__120:
case T__138:
case T__164:
case HASH:
case MODULE:
case INSTANCE:
case SQSTRING:
case PP_DEFINE:
case PP_UNDEF:
case PP_IFDEF:
case PP_IFNDEF:
case PP_ELSE:
case PP_ENDIF:
case PP_INCLUDE:
case MRESOURCE:
case DOTTEDNAME:
case ID:
case PERMISSION:
case PERMISSIONSET:
EnterOuterAlt(_localctx, 1);
{
}
break;
case ENTRYPOINT:
EnterOuterAlt(_localctx, 2);
{
State = 1024;
_localctx.entry = Match(ENTRYPOINT);
_localctx.Value = Actions.ParseFileEntry(_localctx.entry);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class AsmAttrAnyContext : ParserRuleContext {
public System.Reflection.AssemblyFlags Value;
public System.Reflection.AssemblyFlags Mask;
public AsmAttrAnyContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_asmAttrAny; } }
}
[RuleVersion(0)]
public AsmAttrAnyContext asmAttrAny() {
AsmAttrAnyContext _localctx = new AsmAttrAnyContext(Context, State);
EnterRule(_localctx, 98, RULE_asmAttrAny);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 1028;
_la = TokenStream.LA(1);
if ( !(_la==T__1 || _la==T__60 || ((((_la - 77)) & ~0x3f) == 0 && ((1L << (_la - 77)) & 127L) != 0)) ) {
ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
}
Context.Stop = TokenStream.LT(-1);
Actions.SetAssemblyAttribute(_localctx);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class AsmAttrContext : ParserRuleContext {
public System.Reflection.AssemblyFlags Value;
public AsmAttrAnyContext attribute;
[System.Diagnostics.DebuggerNonUserCode] public AsmAttrAnyContext[] asmAttrAny() {
return GetRuleContexts<AsmAttrAnyContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public AsmAttrAnyContext asmAttrAny(int i) {
return GetRuleContext<AsmAttrAnyContext>(i);
}
public AsmAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_asmAttr; } }
}
[RuleVersion(0)]
public AsmAttrContext asmAttr() {
AsmAttrContext _localctx = new AsmAttrContext(Context, State);
EnterRule(_localctx, 100, RULE_asmAttr);
_localctx.Value = 0;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 1035;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__1 || _la==T__60 || ((((_la - 77)) & ~0x3f) == 0 && ((1L << (_la - 77)) & 127L) != 0)) {
{
{
State = 1030;
_localctx.attribute = asmAttrAny();
_localctx.Value = Actions.AddAssemblyAttribute(
_localctx.Value,
_localctx.attribute.Value,
_localctx.attribute.Mask);
}
}
State = 1037;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class InstrContext : ParserRuleContext {
public IToken op;
public MethodRefContext methodOperand;
public FieldRefContext fieldOperand;
public MdtokenContext metadataOperand;
public TypeSpecContext typeOperand;
public CalliSignatureContext signatureOperand;
public OwnerTypeContext ownerOperand;
[System.Diagnostics.DebuggerNonUserCode] public SimpleInstrContext simpleInstr() {
return GetRuleContext<SimpleInstrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_METHOD() { return GetToken(CILParser.INSTR_METHOD, 0); }
[System.Diagnostics.DebuggerNonUserCode] public MethodRefContext methodRef() {
return GetRuleContext<MethodRefContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_FIELD() { return GetToken(CILParser.INSTR_FIELD, 0); }
[System.Diagnostics.DebuggerNonUserCode] public FieldRefContext fieldRef() {
return GetRuleContext<FieldRefContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MdtokenContext mdtoken() {
return GetRuleContext<MdtokenContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_TYPE() { return GetToken(CILParser.INSTR_TYPE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec() {
return GetRuleContext<TypeSpecContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_SIG() { return GetToken(CILParser.INSTR_SIG, 0); }
[System.Diagnostics.DebuggerNonUserCode] public CalliSignatureContext calliSignature() {
return GetRuleContext<CalliSignatureContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_TOK() { return GetToken(CILParser.INSTR_TOK, 0); }
[System.Diagnostics.DebuggerNonUserCode] public OwnerTypeContext ownerType() {
return GetRuleContext<OwnerTypeContext>(0);
}
public InstrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_instr; } }
}
[RuleVersion(0)]
public InstrContext instr() {
InstrContext _localctx = new InstrContext(Context, State);
EnterRule(_localctx, 102, RULE_instr);
try {
State = 1063;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,38,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1038;
simpleInstr();
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1039;
_localctx.op = Match(INSTR_METHOD);
State = 1040;
_localctx.methodOperand = methodRef();
Actions.EmitMethodReferenceInstruction(_localctx.op, _localctx.methodOperand);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1043;
_localctx.op = Match(INSTR_FIELD);
State = 1044;
_localctx.fieldOperand = fieldRef();
Actions.EmitFieldReferenceInstruction(_localctx.op, _localctx.fieldOperand);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1047;
_localctx.op = Match(INSTR_FIELD);
State = 1048;
_localctx.metadataOperand = mdtoken();
Actions.EmitMetadataTokenInstruction(_localctx.op, _localctx.metadataOperand);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1051;
_localctx.op = Match(INSTR_TYPE);
State = 1052;
_localctx.typeOperand = typeSpec();
Actions.EmitTypeReferenceInstruction(_localctx.op, _localctx.typeOperand);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1055;
_localctx.op = Match(INSTR_SIG);
State = 1056;
_localctx.signatureOperand = calliSignature();
Actions.EmitCalliInstruction(_localctx.op, _localctx.signatureOperand);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1059;
_localctx.op = Match(INSTR_TOK);
State = 1060;
_localctx.ownerOperand = ownerType();
Actions.EmitOwnerTokenInstruction(_localctx.op, _localctx.ownerOperand);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class SimpleInstrContext : ParserRuleContext {
public CILParser.SwitchInstructionBuilder SwitchBuilder;
public IToken op;
public Int32Context index;
public IdContext name;
public Int32Context value32;
public Int64Context value64;
public Float64Context value;
public Int64Context integerValue;
public BytesContext rawFloat;
public Int32Context offset;
public IdContext label;
public CompQstringContext userString;
public CompQstringContext ansiString;
public BytesContext rawString;
public Int32Context rawToken;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_NONE() { return GetToken(CILParser.INSTR_NONE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_VAR() { return GetToken(CILParser.INSTR_VAR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public IdContext id() {
return GetRuleContext<IdContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_I() { return GetToken(CILParser.INSTR_I, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_I8() { return GetToken(CILParser.INSTR_I8, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int64Context int64() {
return GetRuleContext<Int64Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_R() { return GetToken(CILParser.INSTR_R, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Float64Context float64() {
return GetRuleContext<Float64Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public BytesContext bytes() {
return GetRuleContext<BytesContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_BRTARGET() { return GetToken(CILParser.INSTR_BRTARGET, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_STRING() { return GetToken(CILParser.INSTR_STRING, 0); }
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext compQstring() {
return GetRuleContext<CompQstringContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ANSI() { return GetToken(CILParser.ANSI, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_TOK() { return GetToken(CILParser.INSTR_TOK, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTR_SWITCH() { return GetToken(CILParser.INSTR_SWITCH, 0); }
[System.Diagnostics.DebuggerNonUserCode] public LabelsContext labels() {
return GetRuleContext<LabelsContext>(0);
}
public SimpleInstrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_simpleInstr; } }
}
[RuleVersion(0)]
public SimpleInstrContext simpleInstr() {
SimpleInstrContext _localctx = new SimpleInstrContext(Context, State);
EnterRule(_localctx, 104, RULE_simpleInstr);
try {
State = 1143;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,40,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1065;
_localctx.op = Match(INSTR_NONE);
Actions.EmitNoOperandInstruction(_localctx.op);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1067;
_localctx.op = Match(INSTR_VAR);
State = 1068;
_localctx.index = int32();
Actions.EmitVariableIndexInstruction(_localctx.op, (_localctx.index!=null?(_localctx.index.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1071;
_localctx.op = Match(INSTR_VAR);
State = 1072;
_localctx.name = id();
Actions.EmitVariableNameInstruction(_localctx.op, (_localctx.name!=null?(_localctx.name.Start):null));
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1075;
_localctx.op = Match(INSTR_I);
State = 1076;
_localctx.value32 = int32();
Actions.EmitInt32Instruction(_localctx.op, (_localctx.value32!=null?(_localctx.value32.Start):null));
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1079;
_localctx.op = Match(INSTR_I8);
State = 1080;
_localctx.value64 = int64();
Actions.EmitInt64Instruction(_localctx.op, (_localctx.value64!=null?(_localctx.value64.Start):null));
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1083;
_localctx.op = Match(INSTR_R);
State = 1084;
_localctx.value = float64();
Actions.EmitFloatingInstruction(_localctx.op, _localctx.value.Value);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1087;
_localctx.op = Match(INSTR_R);
State = 1088;
_localctx.integerValue = int64();
Actions.EmitFloatingInstruction(_localctx.op, (_localctx.integerValue!=null?(_localctx.integerValue.Start):null));
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 1091;
_localctx.op = Match(INSTR_R);
State = 1092;
Match(T__29);
State = 1093;
_localctx.rawFloat = bytes();
State = 1094;
Match(T__30);
Actions.EmitRawFloatingInstruction(_localctx.op, _localctx.rawFloat.Value, (_localctx.rawFloat!=null?(_localctx.rawFloat.Start):null));
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 1097;
_localctx.op = Match(INSTR_R);
State = 1098;
Match(T__83);
State = 1099;
Match(T__29);
State = 1100;
_localctx.rawFloat = bytes();
State = 1101;
Match(T__30);
Actions.EmitRawFloatingInstruction(_localctx.op, _localctx.rawFloat.Value, (_localctx.rawFloat!=null?(_localctx.rawFloat.Start):null));
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 1104;
_localctx.op = Match(INSTR_BRTARGET);
State = 1105;
_localctx.offset = int32();
Actions.EmitBranchOffsetInstruction(_localctx.op, (_localctx.offset!=null?(_localctx.offset.Start):null));
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 1108;
_localctx.op = Match(INSTR_BRTARGET);
State = 1109;
_localctx.label = id();
Actions.EmitBranchLabelInstruction(_localctx.op, (_localctx.label!=null?(_localctx.label.Start):null));
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 1112;
_localctx.op = Match(INSTR_STRING);
State = 1113;
_localctx.userString = compQstring();
Actions.EmitStringInstruction(_localctx.op, _localctx.userString.Value);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 1116;
_localctx.op = Match(INSTR_STRING);
State = 1117;
Match(ANSI);
State = 1118;
Match(T__29);
State = 1119;
_localctx.ansiString = compQstring();
State = 1120;
Match(T__30);
Actions.EmitAnsiStringInstruction(_localctx.op, _localctx.ansiString.Value);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 1123;
_localctx.op = Match(INSTR_STRING);
State = 1124;
Match(T__83);
State = 1125;
Match(T__29);
State = 1126;
_localctx.rawString = bytes();
State = 1127;
Match(T__30);
Actions.EmitRawStringInstruction(_localctx.op, _localctx.rawString.Value);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 1130;
_localctx.op = Match(INSTR_TOK);
State = 1131;
_localctx.rawToken = int32();
Actions.EmitRawTokenInstruction(_localctx.op, (_localctx.rawToken!=null?(_localctx.rawToken.Start):null));
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 1134;
_localctx.op = Match(INSTR_SWITCH);
_localctx.SwitchBuilder = Actions.CreateSwitchInstruction(_localctx.op);
State = 1141;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__29:
{
State = 1136;
Match(T__29);
State = 1137;
labels(_localctx.SwitchBuilder);
State = 1138;
Match(T__30);
}
break;
case T__84:
{
State = 1140;
Match(T__84);
}
break;
default:
throw new NoViableAltException(this);
}
}
break;
}
Context.Stop = TokenStream.LT(-1);
Actions.CompleteSwitchInstruction(_localctx.SwitchBuilder);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class CalliSignatureContext : ParserRuleContext {
public CILParser.CalliSignatureValue Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public CallConvContext convention;
public TypeContext returnType;
public SigArgsContext arguments;
[System.Diagnostics.DebuggerNonUserCode] public CallConvContext callConv() {
return GetRuleContext<CallConvContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type() {
return GetRuleContext<TypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SigArgsContext sigArgs() {
return GetRuleContext<SigArgsContext>(0);
}
public CalliSignatureContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_calliSignature; } }
}
[RuleVersion(0)]
public CalliSignatureContext calliSignature() {
CalliSignatureContext _localctx = new CalliSignatureContext(Context, State);
EnterRule(_localctx, 106, RULE_calliSignature);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.CalliSignatureValue.Error;
try {
EnterOuterAlt(_localctx, 1);
{
State = 1145;
_localctx.convention = callConv();
State = 1146;
_localctx.returnType = type();
State = 1147;
_localctx.arguments = sigArgs();
_localctx.Value = Actions.CreateCalliSignature(_localctx.convention.Value, _localctx.returnType.Value, _localctx.arguments.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
ExitRule();
}
return _localctx;
}
public partial class LabelsContext : ParserRuleContext {
public CILParser.SwitchInstructionBuilder Builder;
public IdContext headLabel;
public Int32Context headOffset;
public IdContext tailLabel;
public Int32Context tailOffset;
[System.Diagnostics.DebuggerNonUserCode] public IdContext[] id() {
return GetRuleContexts<IdContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public IdContext id(int i) {
return GetRuleContext<IdContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context[] int32() {
return GetRuleContexts<Int32Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32(int i) {
return GetRuleContext<Int32Context>(i);
}
public LabelsContext(ParserRuleContext parent, int invokingState) : base(parent, invokingState) { }
public LabelsContext(ParserRuleContext parent, int invokingState, CILParser.SwitchInstructionBuilder Builder)
: base(parent, invokingState)
{
this.Builder = Builder;
}
public override int RuleIndex { get { return RULE_labels; } }
}
[RuleVersion(0)]
public LabelsContext labels(CILParser.SwitchInstructionBuilder Builder) {
LabelsContext _localctx = new LabelsContext(Context, State, Builder);
EnterRule(_localctx, 108, RULE_labels);
try {
int _alt;
State = 1174;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__30:
EnterOuterAlt(_localctx, 1);
{
}
break;
case T__0:
case T__1:
case T__2:
case T__3:
case T__4:
case T__5:
case T__6:
case T__7:
case T__8:
case T__9:
case T__10:
case T__11:
case T__12:
case T__13:
case T__14:
case INT32:
case INSTANCE:
case UNMANAGED:
case SQSTRING:
case ID:
EnterOuterAlt(_localctx, 2);
{
State = 1163;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,42,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 1157;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__0:
case T__1:
case T__2:
case T__3:
case T__4:
case T__5:
case T__6:
case T__7:
case T__8:
case T__9:
case T__10:
case T__11:
case T__12:
case T__13:
case T__14:
case INSTANCE:
case UNMANAGED:
case SQSTRING:
case ID:
{
State = 1151;
_localctx.headLabel = id();
Actions.AddSwitchLabel(_localctx.Builder, (_localctx.headLabel!=null?(_localctx.headLabel.Start):null));
}
break;
case INT32:
{
State = 1154;
_localctx.headOffset = int32();
Actions.AddSwitchOffset(_localctx.Builder, (_localctx.headOffset!=null?(_localctx.headOffset.Start):null));
}
break;
default:
throw new NoViableAltException(this);
}
State = 1159;
Match(T__27);
}
}
}
State = 1165;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,42,Context);
}
State = 1172;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__0:
case T__1:
case T__2:
case T__3:
case T__4:
case T__5:
case T__6:
case T__7:
case T__8:
case T__9:
case T__10:
case T__11:
case T__12:
case T__13:
case T__14:
case INSTANCE:
case UNMANAGED:
case SQSTRING:
case ID:
{
State = 1166;
_localctx.tailLabel = id();
Actions.AddSwitchLabel(_localctx.Builder, (_localctx.tailLabel!=null?(_localctx.tailLabel.Start):null));
}
break;
case INT32:
{
State = 1169;
_localctx.tailOffset = int32();
Actions.AddSwitchOffset(_localctx.Builder, (_localctx.tailOffset!=null?(_localctx.tailOffset.Start):null));
}
break;
default:
throw new NoViableAltException(this);
}
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class TypeArgsContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.TypeValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.TypeValue>.Builder Builder;
public TypeContext argument;
public TypeContext lastArgument;
[System.Diagnostics.DebuggerNonUserCode] public TypeContext[] type() {
return GetRuleContexts<TypeContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type(int i) {
return GetRuleContext<TypeContext>(i);
}
public TypeArgsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_typeArgs; } }
}
[RuleVersion(0)]
public TypeArgsContext typeArgs() {
TypeArgsContext _localctx = new TypeArgsContext(Context, State);
EnterRule(_localctx, 110, RULE_typeArgs);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.TypeValue>();
try {
int _alt;
EnterOuterAlt(_localctx, 1);
{
State = 1176;
Match(T__85);
State = 1183;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,45,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 1177;
_localctx.argument = type();
_localctx.Builder.Add(_localctx.argument.Value);
State = 1179;
Match(T__27);
}
}
}
State = 1185;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,45,Context);
}
State = 1186;
_localctx.lastArgument = type();
_localctx.Builder.Add(_localctx.lastArgument.Value);
State = 1188;
Match(T__86);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class BoundsContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.ArrayBoundValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.ArrayBoundValue>.Builder Builder;
public BoundContext item;
public BoundContext lastItem;
[System.Diagnostics.DebuggerNonUserCode] public BoundContext[] bound() {
return GetRuleContexts<BoundContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public BoundContext bound(int i) {
return GetRuleContext<BoundContext>(i);
}
public BoundsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_bounds; } }
}
[RuleVersion(0)]
public BoundsContext bounds() {
BoundsContext _localctx = new BoundsContext(Context, State);
EnterRule(_localctx, 112, RULE_bounds);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.ArrayBoundValue>();
try {
int _alt;
EnterOuterAlt(_localctx, 1);
{
State = 1190;
Match(T__41);
State = 1197;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,46,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 1191;
_localctx.item = bound();
_localctx.Builder.Add(Actions.CreateArrayBound(_localctx.item));
State = 1193;
Match(T__27);
}
}
}
State = 1199;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,46,Context);
}
State = 1200;
_localctx.lastItem = bound();
_localctx.Builder.Add(Actions.CreateArrayBound(_localctx.lastItem));
State = 1202;
Match(T__42);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class SigArgsContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.SignatureArgumentValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.SignatureArgumentValue>.Builder Builder;
public SigArgContext argument;
public SigArgContext lastArgument;
[System.Diagnostics.DebuggerNonUserCode] public SigArgContext[] sigArg() {
return GetRuleContexts<SigArgContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public SigArgContext sigArg(int i) {
return GetRuleContext<SigArgContext>(i);
}
public SigArgsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_sigArgs; } }
}
[RuleVersion(0)]
public SigArgsContext sigArgs() {
SigArgsContext _localctx = new SigArgsContext(Context, State);
EnterRule(_localctx, 114, RULE_sigArgs);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.SignatureArgumentValue>();
try {
int _alt;
State = 1221;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,48,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1204;
Match(T__29);
State = 1211;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,47,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 1205;
_localctx.argument = sigArg();
_localctx.Builder.Add(_localctx.argument.Value);
State = 1207;
Match(T__27);
}
}
}
State = 1213;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,47,Context);
}
State = 1214;
_localctx.lastArgument = sigArg();
_localctx.Builder.Add(_localctx.lastArgument.Value);
State = 1216;
Match(T__30);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1218;
Match(T__29);
State = 1219;
Match(T__30);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1220;
Match(T__84);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class SigArgContext : ParserRuleContext {
public CILParser.SignatureArgumentValue Value;
public ParamAttrContext attributes;
public TypeContext argumentType;
public MarshalClauseContext marshalling;
public IdContext name;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ELLIPSIS() { return GetToken(CILParser.ELLIPSIS, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ParamAttrContext paramAttr() {
return GetRuleContext<ParamAttrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type() {
return GetRuleContext<TypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MarshalClauseContext marshalClause() {
return GetRuleContext<MarshalClauseContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public IdContext id() {
return GetRuleContext<IdContext>(0);
}
public SigArgContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_sigArg; } }
}
[RuleVersion(0)]
public SigArgContext sigArg() {
SigArgContext _localctx = new SigArgContext(Context, State);
EnterRule(_localctx, 116, RULE_sigArg);
_localctx.Value = CILParser.SignatureArgumentValue.Error;
int _la;
try {
State = 1233;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,50,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1223;
Match(ELLIPSIS);
_localctx.Value = Actions.CreateSentinelSignatureArgument();
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1225;
_localctx.attributes = paramAttr();
State = 1226;
_localctx.argumentType = type();
State = 1227;
_localctx.marshalling = marshalClause();
State = 1229;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 65534L) != 0) || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 70368746274833L) != 0)) {
{
State = 1228;
_localctx.name = id();
}
}
_localctx.Value = Actions.CreateSignatureArgument(_localctx.attributes.Value, _localctx.argumentType.Value, _localctx.marshalling.Value, _localctx.name);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ClassNameContext : ParserRuleContext {
public CILParser.ClassNameValue Value;
public DottedNameContext assemblyName;
public SlashedNameContext typeName;
public MdtokenContext scopeToken;
public DottedNameContext moduleName;
public MdtokenContext typeToken;
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SlashedNameContext slashedName() {
return GetRuleContext<SlashedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MdtokenContext mdtoken() {
return GetRuleContext<MdtokenContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PTR() { return GetToken(CILParser.PTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode MODULE() { return GetToken(CILParser.MODULE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode THIS() { return GetToken(CILParser.THIS, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BASE() { return GetToken(CILParser.BASE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode NESTER() { return GetToken(CILParser.NESTER, 0); }
public ClassNameContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_className; } }
}
[RuleVersion(0)]
public ClassNameContext className() {
ClassNameContext _localctx = new ClassNameContext(Context, State);
EnterRule(_localctx, 118, RULE_className);
_localctx.Value = CILParser.ClassNameValue.Error;
try {
State = 1272;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,51,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1235;
Match(T__41);
State = 1236;
_localctx.assemblyName = dottedName();
State = 1237;
Match(T__42);
State = 1238;
_localctx.typeName = slashedName();
_localctx.Value = Actions.CreateAssemblyQualifiedClassName(_localctx.assemblyName.Value, _localctx.typeName.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1241;
Match(T__41);
State = 1242;
_localctx.scopeToken = mdtoken();
State = 1243;
Match(T__42);
State = 1244;
_localctx.typeName = slashedName();
_localctx.Value = Actions.CreateTokenQualifiedClassName(_localctx.scopeToken.Value, _localctx.typeName.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1247;
Match(T__41);
State = 1248;
Match(PTR);
State = 1249;
Match(T__42);
State = 1250;
_localctx.typeName = slashedName();
_localctx.Value = Actions.CreatePointerQualifiedClassName(_localctx.typeName.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1253;
Match(T__41);
State = 1254;
Match(MODULE);
State = 1255;
_localctx.moduleName = dottedName();
State = 1256;
Match(T__42);
State = 1257;
_localctx.typeName = slashedName();
_localctx.Value = Actions.CreateModuleQualifiedClassName(_localctx.Start, _localctx.moduleName.Value, _localctx.typeName.Value);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1260;
_localctx.typeName = slashedName();
_localctx.Value = Actions.CreateUnqualifiedClassName(_localctx.typeName.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1263;
_localctx.typeToken = mdtoken();
_localctx.Value = Actions.CreateTokenClassName(_localctx.typeToken.Value);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1266;
Match(THIS);
_localctx.Value = Actions.CreateThisClassName(_localctx.Start);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 1268;
Match(BASE);
_localctx.Value = Actions.CreateBaseClassName(_localctx.Start);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 1270;
Match(NESTER);
_localctx.Value = Actions.CreateNesterClassName(_localctx.Start);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class SlashedNameContext : ParserRuleContext {
public CILParser.TypeName Value;
public CILParser.TypeName CurrentName;
public DottedNameContext part;
public DottedNameContext lastPart;
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext[] dottedName() {
return GetRuleContexts<DottedNameContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName(int i) {
return GetRuleContext<DottedNameContext>(i);
}
public SlashedNameContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_slashedName; } }
}
[RuleVersion(0)]
public SlashedNameContext slashedName() {
SlashedNameContext _localctx = new SlashedNameContext(Context, State);
EnterRule(_localctx, 120, RULE_slashedName);
try {
int _alt;
EnterOuterAlt(_localctx, 1);
{
State = 1280;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,52,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 1274;
_localctx.part = dottedName();
_localctx.CurrentName = Actions.AddSlashedNamePart(_localctx.CurrentName, _localctx.part.Value);
State = 1276;
Match(T__87);
}
}
}
State = 1282;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,52,Context);
}
State = 1283;
_localctx.lastPart = dottedName();
_localctx.CurrentName = Actions.AddSlashedNamePart(_localctx.CurrentName, _localctx.lastPart.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.CurrentName ?? new CILParser.TypeName(null, string.Empty);
ExitRule();
}
return _localctx;
}
public partial class AssemblyDeclsContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.AssemblyDeclarationValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.AssemblyDeclarationValue>.Builder Builder;
public AssemblyDeclContext declaration;
[System.Diagnostics.DebuggerNonUserCode] public AssemblyDeclContext[] assemblyDecl() {
return GetRuleContexts<AssemblyDeclContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public AssemblyDeclContext assemblyDecl(int i) {
return GetRuleContext<AssemblyDeclContext>(i);
}
public AssemblyDeclsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_assemblyDecls; } }
}
[RuleVersion(0)]
public AssemblyDeclsContext assemblyDecls() {
AssemblyDeclsContext _localctx = new AssemblyDeclsContext(Context, State);
EnterRule(_localctx, 122, RULE_assemblyDecls);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.AssemblyDeclarationValue>();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 1291;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 38654771200L) != 0) || ((((_la - 167)) & ~0x3f) == 0 && ((1L << (_la - 167)) & 4103L) != 0) || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 6860954690125825L) != 0)) {
{
{
State = 1286;
_localctx.declaration = assemblyDecl();
if (_localctx.declaration.Value is not null) _localctx.Builder.Add(_localctx.declaration.Value);
}
}
State = 1293;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class AssemblyDeclContext : ParserRuleContext {
public CILParser.AssemblyDeclarationValue? Value;
public Int32Context algorithm;
public SecDeclContext security;
public AsmOrRefDeclContext shared;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode HASH() { return GetToken(CILParser.HASH, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SecDeclContext secDecl() {
return GetRuleContext<SecDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public AsmOrRefDeclContext asmOrRefDecl() {
return GetRuleContext<AsmOrRefDeclContext>(0);
}
public AssemblyDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_assemblyDecl; } }
}
[RuleVersion(0)]
public AssemblyDeclContext assemblyDecl() {
AssemblyDeclContext _localctx = new AssemblyDeclContext(Context, State);
EnterRule(_localctx, 124, RULE_assemblyDecl);
try {
State = 1305;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case HASH:
EnterOuterAlt(_localctx, 1);
{
State = 1294;
Match(HASH);
State = 1295;
Match(T__88);
State = 1296;
_localctx.algorithm = int32();
_localctx.Value = Actions.CreateAssemblyHashAlgorithmDeclaration((_localctx.algorithm!=null?(_localctx.algorithm.Start):null));
}
break;
case PERMISSION:
case PERMISSIONSET:
EnterOuterAlt(_localctx, 2);
{
State = 1299;
_localctx.security = secDecl();
_localctx.Value = Actions.CreateAssemblySecurityDeclaration(
_localctx.security.Value,
(_localctx.security!=null?(_localctx.security.Start):null));
}
break;
case T__15:
case T__31:
case T__34:
case T__166:
case T__167:
case T__168:
case INSTANCE:
case SQSTRING:
case PP_DEFINE:
case PP_UNDEF:
case PP_IFDEF:
case PP_IFNDEF:
case PP_ELSE:
case PP_ENDIF:
case PP_INCLUDE:
case DOTTEDNAME:
case ID:
EnterOuterAlt(_localctx, 3);
{
State = 1302;
_localctx.shared = asmOrRefDecl();
_localctx.Value = _localctx.shared.Value;
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class TypeSpecContext : ParserRuleContext {
public CILParser.TypeSpecificationValue Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public ClassNameContext classType;
public TypeContext signatureType;
[System.Diagnostics.DebuggerNonUserCode] public ClassNameContext className() {
return GetRuleContext<ClassNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type() {
return GetRuleContext<TypeContext>(0);
}
public TypeSpecContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_typeSpec; } }
}
[RuleVersion(0)]
public TypeSpecContext typeSpec() {
TypeSpecContext _localctx = new TypeSpecContext(Context, State);
EnterRule(_localctx, 126, RULE_typeSpec);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.TypeSpecificationValue.Error;
try {
State = 1313;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,55,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1307;
_localctx.classType = className();
_localctx.Value = Actions.CreateClassTypeSpecification(_localctx.classType.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1310;
_localctx.signatureType = type();
_localctx.Value = Actions.CreateSignatureTypeSpecification(_localctx.signatureType.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
ExitRule();
}
return _localctx;
}
public partial class TypeSpecOrScopeContext : ParserRuleContext {
public CILParser.TypeSpecificationValue Value;
public TypeSpecContext typeValue;
public DottedNameContext assemblyName;
public DottedNameContext moduleName;
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec() {
return GetRuleContext<TypeSpecContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode MODULE() { return GetToken(CILParser.MODULE, 0); }
public TypeSpecOrScopeContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_typeSpecOrScope; } }
}
[RuleVersion(0)]
public TypeSpecOrScopeContext typeSpecOrScope() {
TypeSpecOrScopeContext _localctx = new TypeSpecOrScopeContext(Context, State);
EnterRule(_localctx, 128, RULE_typeSpecOrScope);
_localctx.Value = CILParser.TypeSpecificationValue.Error;
try {
State = 1329;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,56,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1315;
_localctx.typeValue = typeSpec();
_localctx.Value = _localctx.typeValue.Value;
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1318;
Match(T__41);
State = 1319;
_localctx.assemblyName = dottedName();
State = 1320;
Match(T__42);
_localctx.Value = Actions.CreateAssemblyTypeSpecification(_localctx.assemblyName.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1323;
Match(T__41);
State = 1324;
Match(MODULE);
State = 1325;
_localctx.moduleName = dottedName();
State = 1326;
Match(T__42);
_localctx.Value = Actions.CreateModuleTypeSpecification(_localctx.moduleName.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class NativeTypeContext : ParserRuleContext {
public CILParser.NativeTypeValue Value;
public CILParser.NativeTypeBuilder Builder;
public NativeTypeElementContext element;
public NativeTypeArrayPointerInfoContext info;
[System.Diagnostics.DebuggerNonUserCode] public NativeTypeElementContext nativeTypeElement() {
return GetRuleContext<NativeTypeElementContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public NativeTypeArrayPointerInfoContext[] nativeTypeArrayPointerInfo() {
return GetRuleContexts<NativeTypeArrayPointerInfoContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public NativeTypeArrayPointerInfoContext nativeTypeArrayPointerInfo(int i) {
return GetRuleContext<NativeTypeArrayPointerInfoContext>(i);
}
public NativeTypeContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_nativeType; } }
}
[RuleVersion(0)]
public NativeTypeContext nativeType() {
NativeTypeContext _localctx = new NativeTypeContext(Context, State);
EnterRule(_localctx, 130, RULE_nativeType);
_localctx.Builder = new CILParser.NativeTypeBuilder();
try {
int _alt;
State = 1342;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,58,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1332;
_localctx.element = nativeTypeElement();
Actions.SetNativeTypeElement(_localctx.Builder, _localctx.element.Value);
State = 1339;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,57,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 1334;
_localctx.info = nativeTypeArrayPointerInfo();
Actions.AddNativeTypeArrayPointerInfo(_localctx.Builder, _localctx.info.Value);
}
}
}
State = 1341;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,57,Context);
}
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = Actions.CreateNativeType(_localctx.Start, _localctx.Builder);
ExitRule();
}
return _localctx;
}
public partial class NativeTypeArrayPointerInfoContext : ParserRuleContext {
public CILParser.NativeTypeArrayPointerInfoValue Value;
public NativeTypeArrayPointerInfoContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_nativeTypeArrayPointerInfo; } }
public NativeTypeArrayPointerInfoContext() { }
public virtual void CopyFrom(NativeTypeArrayPointerInfoContext context) {
base.CopyFrom(context);
this.Value = context.Value;
}
}
public partial class PointerArrayTypeSizeContext : NativeTypeArrayPointerInfoContext {
public Int32Context size;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public PointerArrayTypeSizeContext(NativeTypeArrayPointerInfoContext context) { CopyFrom(context); }
}
public partial class PointerArrayTypeParamIndexContext : NativeTypeArrayPointerInfoContext {
public Int32Context parameterIndex;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PLUS() { return GetToken(CILParser.PLUS, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public PointerArrayTypeParamIndexContext(NativeTypeArrayPointerInfoContext context) { CopyFrom(context); }
}
public partial class PointerNativeTypeContext : NativeTypeArrayPointerInfoContext {
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PTR() { return GetToken(CILParser.PTR, 0); }
public PointerNativeTypeContext(NativeTypeArrayPointerInfoContext context) { CopyFrom(context); }
}
public partial class PointerArrayTypeSizeParamIndexContext : NativeTypeArrayPointerInfoContext {
public Int32Context size;
public Int32Context parameterIndex;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PLUS() { return GetToken(CILParser.PLUS, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context[] int32() {
return GetRuleContexts<Int32Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32(int i) {
return GetRuleContext<Int32Context>(i);
}
public PointerArrayTypeSizeParamIndexContext(NativeTypeArrayPointerInfoContext context) { CopyFrom(context); }
}
public partial class PointerArrayTypeNoSizeDataContext : NativeTypeArrayPointerInfoContext {
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ARRAY_TYPE_NO_BOUNDS() { return GetToken(CILParser.ARRAY_TYPE_NO_BOUNDS, 0); }
public PointerArrayTypeNoSizeDataContext(NativeTypeArrayPointerInfoContext context) { CopyFrom(context); }
}
[RuleVersion(0)]
public NativeTypeArrayPointerInfoContext nativeTypeArrayPointerInfo() {
NativeTypeArrayPointerInfoContext _localctx = new NativeTypeArrayPointerInfoContext(Context, State);
EnterRule(_localctx, 132, RULE_nativeTypeArrayPointerInfo);
_localctx.Value = Actions.CreatePointerNativeType();
try {
State = 1366;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,59,Context) ) {
case 1:
_localctx = new PointerNativeTypeContext(_localctx);
EnterOuterAlt(_localctx, 1);
{
State = 1344;
Match(PTR);
_localctx.Value = Actions.CreatePointerNativeType();
}
break;
case 2:
_localctx = new PointerArrayTypeNoSizeDataContext(_localctx);
EnterOuterAlt(_localctx, 2);
{
State = 1346;
Match(ARRAY_TYPE_NO_BOUNDS);
_localctx.Value = Actions.CreatePointerArrayTypeNoSizeData();
}
break;
case 3:
_localctx = new PointerArrayTypeSizeContext(_localctx);
EnterOuterAlt(_localctx, 3);
{
State = 1348;
Match(T__41);
State = 1349;
((PointerArrayTypeSizeContext)_localctx).size = int32();
State = 1350;
Match(T__42);
_localctx.Value = Actions.CreatePointerArrayTypeSize((((PointerArrayTypeSizeContext)_localctx).size!=null?(((PointerArrayTypeSizeContext)_localctx).size.Start):null));
}
break;
case 4:
_localctx = new PointerArrayTypeSizeParamIndexContext(_localctx);
EnterOuterAlt(_localctx, 4);
{
State = 1353;
Match(T__41);
State = 1354;
((PointerArrayTypeSizeParamIndexContext)_localctx).size = int32();
State = 1355;
Match(PLUS);
State = 1356;
((PointerArrayTypeSizeParamIndexContext)_localctx).parameterIndex = int32();
State = 1357;
Match(T__42);
_localctx.Value = Actions.CreatePointerArrayTypeSizeParamIndex((((PointerArrayTypeSizeParamIndexContext)_localctx).size!=null?(((PointerArrayTypeSizeParamIndexContext)_localctx).size.Start):null), (((PointerArrayTypeSizeParamIndexContext)_localctx).parameterIndex!=null?(((PointerArrayTypeSizeParamIndexContext)_localctx).parameterIndex.Start):null));
}
break;
case 5:
_localctx = new PointerArrayTypeParamIndexContext(_localctx);
EnterOuterAlt(_localctx, 5);
{
State = 1360;
Match(T__41);
State = 1361;
Match(PLUS);
State = 1362;
((PointerArrayTypeParamIndexContext)_localctx).parameterIndex = int32();
State = 1363;
Match(T__42);
_localctx.Value = Actions.CreatePointerArrayTypeParamIndex((((PointerArrayTypeParamIndexContext)_localctx).parameterIndex!=null?(((PointerArrayTypeParamIndexContext)_localctx).parameterIndex.Start):null));
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class NativeTypeElementContext : ParserRuleContext {
public CILParser.NativeTypeElementValue Value;
public IToken marshalType;
public CompQstringContext guid;
public CompQstringContext nativeTypeName;
public CompQstringContext marshallerType;
public CompQstringContext cookie;
public Int32Context size;
public NativeTypeContext element;
public IidParamIndexContext index;
public VariantTypeContext variant;
public CompQstringContext userDefinedType;
public IToken unsignedMarshalType;
public IToken marshalBool;
public DottedNameContext alias;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CUSTOM() { return GetToken(CILParser.CUSTOM, 0); }
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext[] compQstring() {
return GetRuleContexts<CompQstringContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext compQstring(int i) {
return GetRuleContext<CompQstringContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FIXED() { return GetToken(CILParser.FIXED, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SYSSTRING() { return GetToken(CILParser.SYSSTRING, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ARRAY() { return GetToken(CILParser.ARRAY, 0); }
[System.Diagnostics.DebuggerNonUserCode] public NativeTypeContext nativeType() {
return GetRuleContext<NativeTypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VARIANT() { return GetToken(CILParser.VARIANT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CURRENCY() { return GetToken(CILParser.CURRENCY, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SYSCHAR() { return GetToken(CILParser.SYSCHAR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VOID() { return GetToken(CILParser.VOID, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BOOL() { return GetToken(CILParser.BOOL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT8() { return GetToken(CILParser.INT8, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT16() { return GetToken(CILParser.INT16, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT32_() { return GetToken(CILParser.INT32_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT64_() { return GetToken(CILParser.INT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT32() { return GetToken(CILParser.FLOAT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT64_() { return GetToken(CILParser.FLOAT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ERROR() { return GetToken(CILParser.ERROR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT8() { return GetToken(CILParser.UINT8, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT16() { return GetToken(CILParser.UINT16, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT32() { return GetToken(CILParser.UINT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT64() { return GetToken(CILParser.UINT64, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DECIMAL() { return GetToken(CILParser.DECIMAL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DATE() { return GetToken(CILParser.DATE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BSTR() { return GetToken(CILParser.BSTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode LPSTR() { return GetToken(CILParser.LPSTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode LPWSTR() { return GetToken(CILParser.LPWSTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode LPTSTR() { return GetToken(CILParser.LPTSTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OBJECTREF() { return GetToken(CILParser.OBJECTREF, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IUNKNOWN() { return GetToken(CILParser.IUNKNOWN, 0); }
[System.Diagnostics.DebuggerNonUserCode] public IidParamIndexContext iidParamIndex() {
return GetRuleContext<IidParamIndexContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IDISPATCH() { return GetToken(CILParser.IDISPATCH, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STRUCT() { return GetToken(CILParser.STRUCT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INTERFACE() { return GetToken(CILParser.INTERFACE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SAFEARRAY() { return GetToken(CILParser.SAFEARRAY, 0); }
[System.Diagnostics.DebuggerNonUserCode] public VariantTypeContext variantType() {
return GetRuleContext<VariantTypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT() { return GetToken(CILParser.INT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT() { return GetToken(CILParser.UINT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BYVALSTR() { return GetToken(CILParser.BYVALSTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ANSI() { return GetToken(CILParser.ANSI, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TBSTR() { return GetToken(CILParser.TBSTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode METHOD() { return GetToken(CILParser.METHOD, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode LPSTRUCT() { return GetToken(CILParser.LPSTRUCT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ANY() { return GetToken(CILParser.ANY, 0); }
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
public NativeTypeElementContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_nativeTypeElement; } }
}
[RuleVersion(0)]
public NativeTypeElementContext nativeTypeElement() {
NativeTypeElementContext _localctx = new NativeTypeElementContext(Context, State);
EnterRule(_localctx, 134, RULE_nativeTypeElement);
_localctx.Value = CILParser.EmptyNativeTypeElementValue.Instance;
try {
State = 1513;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,60,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
_localctx.Value = Actions.CreateEmptyNativeType();
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1369;
_localctx.marshalType = Match(CUSTOM);
State = 1370;
Match(T__29);
State = 1371;
_localctx.guid = compQstring();
State = 1372;
Match(T__27);
State = 1373;
_localctx.nativeTypeName = compQstring();
State = 1374;
Match(T__27);
State = 1375;
_localctx.marshallerType = compQstring();
State = 1376;
Match(T__27);
State = 1377;
_localctx.cookie = compQstring();
State = 1378;
Match(T__30);
_localctx.Value = Actions.CreateDeprecatedCustomMarshallerNativeType(
_localctx, _localctx.guid.Value, _localctx.nativeTypeName.Value, _localctx.marshallerType.Value, _localctx.cookie.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1381;
_localctx.marshalType = Match(CUSTOM);
State = 1382;
Match(T__29);
State = 1383;
_localctx.marshallerType = compQstring();
State = 1384;
Match(T__27);
State = 1385;
_localctx.cookie = compQstring();
State = 1386;
Match(T__30);
_localctx.Value = Actions.CreateCustomMarshallerNativeType(_localctx.marshallerType.Value, _localctx.cookie.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1389;
Match(FIXED);
State = 1390;
_localctx.marshalType = Match(SYSSTRING);
State = 1391;
Match(T__41);
State = 1392;
_localctx.size = int32();
State = 1393;
Match(T__42);
_localctx.Value = Actions.CreateFixedSysStringNativeType((_localctx.size!=null?(_localctx.size.Start):null));
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1396;
Match(FIXED);
State = 1397;
_localctx.marshalType = Match(ARRAY);
State = 1398;
Match(T__41);
State = 1399;
_localctx.size = int32();
State = 1400;
Match(T__42);
State = 1401;
_localctx.element = nativeType();
_localctx.Value = Actions.CreateFixedArrayNativeType((_localctx.size!=null?(_localctx.size.Start):null), _localctx.element.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1404;
_localctx.marshalType = Match(VARIANT);
_localctx.Value = Actions.CreateDeprecatedNativeType(_localctx, _localctx.marshalType);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1406;
_localctx.marshalType = Match(CURRENCY);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 1408;
_localctx.marshalType = Match(SYSCHAR);
_localctx.Value = Actions.CreateDeprecatedNativeType(_localctx, _localctx.marshalType);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 1410;
_localctx.marshalType = Match(VOID);
_localctx.Value = Actions.CreateDeprecatedNativeType(_localctx, _localctx.marshalType);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 1412;
_localctx.marshalType = Match(BOOL);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 1414;
_localctx.marshalType = Match(INT8);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 1416;
_localctx.marshalType = Match(INT16);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 1418;
_localctx.marshalType = Match(INT32_);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 1420;
_localctx.marshalType = Match(INT64_);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 1422;
_localctx.marshalType = Match(FLOAT32);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 1424;
_localctx.marshalType = Match(FLOAT64_);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 17:
EnterOuterAlt(_localctx, 17);
{
State = 1426;
_localctx.marshalType = Match(ERROR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 18:
EnterOuterAlt(_localctx, 18);
{
State = 1428;
_localctx.marshalType = Match(UINT8);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 19:
EnterOuterAlt(_localctx, 19);
{
State = 1430;
_localctx.marshalType = Match(UINT16);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 20:
EnterOuterAlt(_localctx, 20);
{
State = 1432;
_localctx.marshalType = Match(UINT32);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 21:
EnterOuterAlt(_localctx, 21);
{
State = 1434;
_localctx.marshalType = Match(UINT64);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 22:
EnterOuterAlt(_localctx, 22);
{
State = 1436;
_localctx.marshalType = Match(DECIMAL);
_localctx.Value = Actions.CreateDeprecatedNativeType(_localctx, _localctx.marshalType);
}
break;
case 23:
EnterOuterAlt(_localctx, 23);
{
State = 1438;
_localctx.marshalType = Match(DATE);
_localctx.Value = Actions.CreateDeprecatedNativeType(_localctx, _localctx.marshalType);
}
break;
case 24:
EnterOuterAlt(_localctx, 24);
{
State = 1440;
_localctx.marshalType = Match(BSTR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 25:
EnterOuterAlt(_localctx, 25);
{
State = 1442;
_localctx.marshalType = Match(LPSTR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 26:
EnterOuterAlt(_localctx, 26);
{
State = 1444;
_localctx.marshalType = Match(LPWSTR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 27:
EnterOuterAlt(_localctx, 27);
{
State = 1446;
_localctx.marshalType = Match(LPTSTR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 28:
EnterOuterAlt(_localctx, 28);
{
State = 1448;
_localctx.marshalType = Match(OBJECTREF);
_localctx.Value = Actions.CreateDeprecatedNativeType(_localctx, _localctx.marshalType);
}
break;
case 29:
EnterOuterAlt(_localctx, 29);
{
State = 1450;
_localctx.marshalType = Match(IUNKNOWN);
State = 1451;
_localctx.index = iidParamIndex();
_localctx.Value = Actions.CreateIidNativeType(_localctx.marshalType, _localctx.index.Value);
}
break;
case 30:
EnterOuterAlt(_localctx, 30);
{
State = 1454;
_localctx.marshalType = Match(IDISPATCH);
State = 1455;
_localctx.index = iidParamIndex();
_localctx.Value = Actions.CreateIidNativeType(_localctx.marshalType, _localctx.index.Value);
}
break;
case 31:
EnterOuterAlt(_localctx, 31);
{
State = 1458;
_localctx.marshalType = Match(STRUCT);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 32:
EnterOuterAlt(_localctx, 32);
{
State = 1460;
_localctx.marshalType = Match(INTERFACE);
State = 1461;
_localctx.index = iidParamIndex();
_localctx.Value = Actions.CreateIidNativeType(_localctx.marshalType, _localctx.index.Value);
}
break;
case 33:
EnterOuterAlt(_localctx, 33);
{
State = 1464;
_localctx.marshalType = Match(SAFEARRAY);
State = 1465;
_localctx.variant = variantType();
_localctx.Value = Actions.CreateSafeArrayNativeType(_localctx.variant.Value, null);
}
break;
case 34:
EnterOuterAlt(_localctx, 34);
{
State = 1468;
_localctx.marshalType = Match(SAFEARRAY);
State = 1469;
_localctx.variant = variantType();
State = 1470;
Match(T__27);
State = 1471;
_localctx.userDefinedType = compQstring();
_localctx.Value = Actions.CreateSafeArrayNativeType(_localctx.variant.Value, _localctx.userDefinedType.Value);
}
break;
case 35:
EnterOuterAlt(_localctx, 35);
{
State = 1474;
_localctx.marshalType = Match(INT);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 36:
EnterOuterAlt(_localctx, 36);
{
State = 1476;
_localctx.marshalType = Match(UINT);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 37:
EnterOuterAlt(_localctx, 37);
{
State = 1478;
Match(T__89);
State = 1479;
_localctx.unsignedMarshalType = Match(INT8);
_localctx.Value = Actions.CreateUnsignedNativeType(_localctx.unsignedMarshalType);
}
break;
case 38:
EnterOuterAlt(_localctx, 38);
{
State = 1481;
Match(T__89);
State = 1482;
_localctx.unsignedMarshalType = Match(INT16);
_localctx.Value = Actions.CreateUnsignedNativeType(_localctx.unsignedMarshalType);
}
break;
case 39:
EnterOuterAlt(_localctx, 39);
{
State = 1484;
Match(T__89);
State = 1485;
_localctx.unsignedMarshalType = Match(INT32_);
_localctx.Value = Actions.CreateUnsignedNativeType(_localctx.unsignedMarshalType);
}
break;
case 40:
EnterOuterAlt(_localctx, 40);
{
State = 1487;
Match(T__89);
State = 1488;
_localctx.unsignedMarshalType = Match(INT64_);
_localctx.Value = Actions.CreateUnsignedNativeType(_localctx.unsignedMarshalType);
}
break;
case 41:
EnterOuterAlt(_localctx, 41);
{
State = 1490;
Match(T__61);
State = 1491;
_localctx.marshalType = Match(STRUCT);
_localctx.Value = Actions.CreateNestedStructNativeType(_localctx);
}
break;
case 42:
EnterOuterAlt(_localctx, 42);
{
State = 1493;
_localctx.marshalType = Match(BYVALSTR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 43:
EnterOuterAlt(_localctx, 43);
{
State = 1495;
Match(ANSI);
State = 1496;
_localctx.marshalType = Match(BSTR);
_localctx.Value = Actions.CreateAnsiBstrNativeType();
}
break;
case 44:
EnterOuterAlt(_localctx, 44);
{
State = 1498;
_localctx.marshalType = Match(TBSTR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 45:
EnterOuterAlt(_localctx, 45);
{
State = 1500;
Match(VARIANT);
State = 1501;
_localctx.marshalBool = Match(BOOL);
_localctx.Value = Actions.CreateVariantBoolNativeType();
}
break;
case 46:
EnterOuterAlt(_localctx, 46);
{
State = 1503;
_localctx.marshalType = Match(METHOD);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 47:
EnterOuterAlt(_localctx, 47);
{
State = 1505;
_localctx.marshalType = Match(LPSTRUCT);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 48:
EnterOuterAlt(_localctx, 48);
{
State = 1507;
Match(T__33);
State = 1508;
_localctx.marshalType = Match(ANY);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 49:
EnterOuterAlt(_localctx, 49);
{
State = 1510;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateNativeTypeTypedef(_localctx, _localctx.alias.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class IidParamIndexContext : ParserRuleContext {
public CILParser.IidParamIndexValue Value;
public Int32Context index;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public IidParamIndexContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_iidParamIndex; } }
}
[RuleVersion(0)]
public IidParamIndexContext iidParamIndex() {
IidParamIndexContext _localctx = new IidParamIndexContext(Context, State);
EnterRule(_localctx, 136, RULE_iidParamIndex);
_localctx.Value = CILParser.IidParamIndexValue.Empty;
try {
State = 1523;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__30:
case T__41:
case ARRAY_TYPE_NO_BOUNDS:
case PTR:
EnterOuterAlt(_localctx, 1);
{
}
break;
case T__29:
EnterOuterAlt(_localctx, 2);
{
State = 1516;
Match(T__29);
State = 1517;
Match(T__90);
State = 1518;
Match(T__35);
State = 1519;
_localctx.index = int32();
State = 1520;
Match(T__30);
_localctx.Value = Actions.GetIidParamIndex((_localctx.index!=null?(_localctx.index.Start):null));
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class VariantTypeContext : ParserRuleContext {
public CILParser.VariantTypeValue Value;
public CILParser.VariantTypeBuilder Builder;
public VariantTypeElementContext element;
public IToken modifier;
[System.Diagnostics.DebuggerNonUserCode] public VariantTypeElementContext variantTypeElement() {
return GetRuleContext<VariantTypeElementContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] ARRAY_TYPE_NO_BOUNDS() { return GetTokens(CILParser.ARRAY_TYPE_NO_BOUNDS); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ARRAY_TYPE_NO_BOUNDS(int i) {
return GetToken(CILParser.ARRAY_TYPE_NO_BOUNDS, i);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] VECTOR() { return GetTokens(CILParser.VECTOR); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VECTOR(int i) {
return GetToken(CILParser.VECTOR, i);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] REF() { return GetTokens(CILParser.REF); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode REF(int i) {
return GetToken(CILParser.REF, i);
}
public VariantTypeContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_variantType; } }
}
[RuleVersion(0)]
public VariantTypeContext variantType() {
VariantTypeContext _localctx = new VariantTypeContext(Context, State);
EnterRule(_localctx, 138, RULE_variantType);
_localctx.Builder = new CILParser.VariantTypeBuilder();
int _la;
try {
int _alt;
State = 1535;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,63,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1526;
_localctx.element = variantTypeElement();
Actions.SetVariantTypeElement(_localctx.Builder, _localctx.element.Value);
State = 1532;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,62,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 1528;
_localctx.modifier = TokenStream.LT(1);
_la = TokenStream.LA(1);
if ( !(((((_la - 228)) & ~0x3f) == 0 && ((1L << (_la - 228)) & 6442450945L) != 0)) ) {
_localctx.modifier = ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
Actions.AddVariantTypeModifier(_localctx.Builder, _localctx.modifier);
}
}
}
State = 1534;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,62,Context);
}
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = Actions.CreateVariantType(_localctx.Builder);
ExitRule();
}
return _localctx;
}
public partial class VariantTypeElementContext : ParserRuleContext {
public CILParser.VariantTypeElementValue Value;
public IToken value;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode NULL() { return GetToken(CILParser.NULL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VARIANT() { return GetToken(CILParser.VARIANT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CURRENCY() { return GetToken(CILParser.CURRENCY, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VOID() { return GetToken(CILParser.VOID, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BOOL() { return GetToken(CILParser.BOOL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT8() { return GetToken(CILParser.INT8, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT16() { return GetToken(CILParser.INT16, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT32_() { return GetToken(CILParser.INT32_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT64_() { return GetToken(CILParser.INT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT32() { return GetToken(CILParser.FLOAT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT64_() { return GetToken(CILParser.FLOAT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT8() { return GetToken(CILParser.UINT8, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT16() { return GetToken(CILParser.UINT16, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT32() { return GetToken(CILParser.UINT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT64() { return GetToken(CILParser.UINT64, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PTR() { return GetToken(CILParser.PTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DECIMAL() { return GetToken(CILParser.DECIMAL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DATE() { return GetToken(CILParser.DATE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BSTR() { return GetToken(CILParser.BSTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode LPSTR() { return GetToken(CILParser.LPSTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode LPWSTR() { return GetToken(CILParser.LPWSTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IUNKNOWN() { return GetToken(CILParser.IUNKNOWN, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IDISPATCH() { return GetToken(CILParser.IDISPATCH, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SAFEARRAY() { return GetToken(CILParser.SAFEARRAY, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT() { return GetToken(CILParser.INT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT() { return GetToken(CILParser.UINT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ERROR() { return GetToken(CILParser.ERROR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode HRESULT() { return GetToken(CILParser.HRESULT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CARRAY() { return GetToken(CILParser.CARRAY, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode USERDEFINED() { return GetToken(CILParser.USERDEFINED, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode RECORD() { return GetToken(CILParser.RECORD, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FILETIME() { return GetToken(CILParser.FILETIME, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BLOB() { return GetToken(CILParser.BLOB, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STREAM() { return GetToken(CILParser.STREAM, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STORAGE() { return GetToken(CILParser.STORAGE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STREAMED_OBJECT() { return GetToken(CILParser.STREAMED_OBJECT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STORED_OBJECT() { return GetToken(CILParser.STORED_OBJECT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BLOB_OBJECT() { return GetToken(CILParser.BLOB_OBJECT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CF() { return GetToken(CILParser.CF, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CLSID() { return GetToken(CILParser.CLSID, 0); }
public VariantTypeElementContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_variantTypeElement; } }
}
[RuleVersion(0)]
public VariantTypeElementContext variantTypeElement() {
VariantTypeElementContext _localctx = new VariantTypeElementContext(Context, State);
EnterRule(_localctx, 140, RULE_variantTypeElement);
_localctx.Value = CILParser.VariantTypeElementValue.Error;
try {
State = 1617;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case NULL:
EnterOuterAlt(_localctx, 1);
{
State = 1537;
_localctx.value = Match(NULL);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case VARIANT:
EnterOuterAlt(_localctx, 2);
{
State = 1539;
_localctx.value = Match(VARIANT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case CURRENCY:
EnterOuterAlt(_localctx, 3);
{
State = 1541;
_localctx.value = Match(CURRENCY);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case VOID:
EnterOuterAlt(_localctx, 4);
{
State = 1543;
_localctx.value = Match(VOID);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case BOOL:
EnterOuterAlt(_localctx, 5);
{
State = 1545;
_localctx.value = Match(BOOL);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case INT8:
EnterOuterAlt(_localctx, 6);
{
State = 1547;
_localctx.value = Match(INT8);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case INT16:
EnterOuterAlt(_localctx, 7);
{
State = 1549;
_localctx.value = Match(INT16);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case INT32_:
EnterOuterAlt(_localctx, 8);
{
State = 1551;
_localctx.value = Match(INT32_);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case INT64_:
EnterOuterAlt(_localctx, 9);
{
State = 1553;
_localctx.value = Match(INT64_);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case FLOAT32:
EnterOuterAlt(_localctx, 10);
{
State = 1555;
_localctx.value = Match(FLOAT32);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case FLOAT64_:
EnterOuterAlt(_localctx, 11);
{
State = 1557;
_localctx.value = Match(FLOAT64_);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case UINT8:
EnterOuterAlt(_localctx, 12);
{
State = 1559;
_localctx.value = Match(UINT8);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case UINT16:
EnterOuterAlt(_localctx, 13);
{
State = 1561;
_localctx.value = Match(UINT16);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case UINT32:
EnterOuterAlt(_localctx, 14);
{
State = 1563;
_localctx.value = Match(UINT32);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case UINT64:
EnterOuterAlt(_localctx, 15);
{
State = 1565;
_localctx.value = Match(UINT64);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case PTR:
EnterOuterAlt(_localctx, 16);
{
State = 1567;
_localctx.value = Match(PTR);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case DECIMAL:
EnterOuterAlt(_localctx, 17);
{
State = 1569;
_localctx.value = Match(DECIMAL);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case DATE:
EnterOuterAlt(_localctx, 18);
{
State = 1571;
_localctx.value = Match(DATE);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case BSTR:
EnterOuterAlt(_localctx, 19);
{
State = 1573;
_localctx.value = Match(BSTR);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case LPSTR:
EnterOuterAlt(_localctx, 20);
{
State = 1575;
_localctx.value = Match(LPSTR);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case LPWSTR:
EnterOuterAlt(_localctx, 21);
{
State = 1577;
_localctx.value = Match(LPWSTR);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case IUNKNOWN:
EnterOuterAlt(_localctx, 22);
{
State = 1579;
_localctx.value = Match(IUNKNOWN);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case IDISPATCH:
EnterOuterAlt(_localctx, 23);
{
State = 1581;
_localctx.value = Match(IDISPATCH);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case SAFEARRAY:
EnterOuterAlt(_localctx, 24);
{
State = 1583;
_localctx.value = Match(SAFEARRAY);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case INT:
EnterOuterAlt(_localctx, 25);
{
State = 1585;
_localctx.value = Match(INT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case UINT:
EnterOuterAlt(_localctx, 26);
{
State = 1587;
_localctx.value = Match(UINT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case ERROR:
EnterOuterAlt(_localctx, 27);
{
State = 1589;
_localctx.value = Match(ERROR);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case HRESULT:
EnterOuterAlt(_localctx, 28);
{
State = 1591;
_localctx.value = Match(HRESULT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case CARRAY:
EnterOuterAlt(_localctx, 29);
{
State = 1593;
_localctx.value = Match(CARRAY);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case USERDEFINED:
EnterOuterAlt(_localctx, 30);
{
State = 1595;
_localctx.value = Match(USERDEFINED);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case RECORD:
EnterOuterAlt(_localctx, 31);
{
State = 1597;
_localctx.value = Match(RECORD);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case FILETIME:
EnterOuterAlt(_localctx, 32);
{
State = 1599;
_localctx.value = Match(FILETIME);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case BLOB:
EnterOuterAlt(_localctx, 33);
{
State = 1601;
_localctx.value = Match(BLOB);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case STREAM:
EnterOuterAlt(_localctx, 34);
{
State = 1603;
_localctx.value = Match(STREAM);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case STORAGE:
EnterOuterAlt(_localctx, 35);
{
State = 1605;
_localctx.value = Match(STORAGE);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case STREAMED_OBJECT:
EnterOuterAlt(_localctx, 36);
{
State = 1607;
_localctx.value = Match(STREAMED_OBJECT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case STORED_OBJECT:
EnterOuterAlt(_localctx, 37);
{
State = 1609;
_localctx.value = Match(STORED_OBJECT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case BLOB_OBJECT:
EnterOuterAlt(_localctx, 38);
{
State = 1611;
_localctx.value = Match(BLOB_OBJECT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case CF:
EnterOuterAlt(_localctx, 39);
{
State = 1613;
_localctx.value = Match(CF);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case CLSID:
EnterOuterAlt(_localctx, 40);
{
State = 1615;
_localctx.value = Match(CLSID);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class TypeContext : ParserRuleContext {
public CILParser.TypeValue Value;
public CILParser.ElementTypeValue ElementType;
public System.Collections.Immutable.ImmutableArray<CILParser.TypeModifierValue>.Builder Modifiers;
public ElementTypeContext element;
public TypeModifiersContext modifier;
[System.Diagnostics.DebuggerNonUserCode] public ElementTypeContext elementType() {
return GetRuleContext<ElementTypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeModifiersContext[] typeModifiers() {
return GetRuleContexts<TypeModifiersContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public TypeModifiersContext typeModifiers(int i) {
return GetRuleContext<TypeModifiersContext>(i);
}
public TypeContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_type; } }
}
[RuleVersion(0)]
public TypeContext type() {
TypeContext _localctx = new TypeContext(Context, State);
EnterRule(_localctx, 142, RULE_type);
_localctx.ElementType = CILParser.ElementTypeValue.Error;
_localctx.Modifiers = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.TypeModifierValue>();
try {
int _alt;
EnterOuterAlt(_localctx, 1);
{
State = 1619;
_localctx.element = elementType();
_localctx.ElementType = _localctx.element.Value;
State = 1626;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,65,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 1621;
_localctx.modifier = typeModifiers();
_localctx.Modifiers.Add(_localctx.modifier.Value);
}
}
}
State = 1628;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,65,Context);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = new CILParser.TypeValue(_localctx.ElementType, _localctx.Modifiers.ToImmutable());
ExitRule();
}
return _localctx;
}
public partial class TypeModifiersContext : ParserRuleContext {
public CILParser.TypeModifierValue Value;
public TypeModifiersContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_typeModifiers; } }
public TypeModifiersContext() { }
public virtual void CopyFrom(TypeModifiersContext context) {
base.CopyFrom(context);
this.Value = context.Value;
}
}
public partial class OptionalModifierContext : TypeModifiersContext {
public TypeSpecContext modifierType;
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec() {
return GetRuleContext<TypeSpecContext>(0);
}
public OptionalModifierContext(TypeModifiersContext context) { CopyFrom(context); }
}
public partial class SZArrayModifierContext : TypeModifiersContext {
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ARRAY_TYPE_NO_BOUNDS() { return GetToken(CILParser.ARRAY_TYPE_NO_BOUNDS, 0); }
public SZArrayModifierContext(TypeModifiersContext context) { CopyFrom(context); }
}
public partial class RequiredModifierContext : TypeModifiersContext {
public TypeSpecContext modifierType;
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec() {
return GetRuleContext<TypeSpecContext>(0);
}
public RequiredModifierContext(TypeModifiersContext context) { CopyFrom(context); }
}
public partial class PtrModifierContext : TypeModifiersContext {
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PTR() { return GetToken(CILParser.PTR, 0); }
public PtrModifierContext(TypeModifiersContext context) { CopyFrom(context); }
}
public partial class PinnedModifierContext : TypeModifiersContext {
public PinnedModifierContext(TypeModifiersContext context) { CopyFrom(context); }
}
public partial class GenericArgumentsModifierContext : TypeModifiersContext {
public TypeArgsContext arguments;
[System.Diagnostics.DebuggerNonUserCode] public TypeArgsContext typeArgs() {
return GetRuleContext<TypeArgsContext>(0);
}
public GenericArgumentsModifierContext(TypeModifiersContext context) { CopyFrom(context); }
}
public partial class ByRefModifierContext : TypeModifiersContext {
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode REF() { return GetToken(CILParser.REF, 0); }
public ByRefModifierContext(TypeModifiersContext context) { CopyFrom(context); }
}
public partial class ArrayModifierContext : TypeModifiersContext {
public BoundsContext arrayBounds;
[System.Diagnostics.DebuggerNonUserCode] public BoundsContext bounds() {
return GetRuleContext<BoundsContext>(0);
}
public ArrayModifierContext(TypeModifiersContext context) { CopyFrom(context); }
}
[RuleVersion(0)]
public TypeModifiersContext typeModifiers() {
TypeModifiersContext _localctx = new TypeModifiersContext(Context, State);
EnterRule(_localctx, 144, RULE_typeModifiers);
_localctx.Value = CILParser.TypeModifierValue.Error;
try {
State = 1658;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,66,Context) ) {
case 1:
_localctx = new SZArrayModifierContext(_localctx);
EnterOuterAlt(_localctx, 1);
{
State = 1629;
Match(ARRAY_TYPE_NO_BOUNDS);
_localctx.Value = Actions.CreateSzArrayTypeModifier();
}
break;
case 2:
_localctx = new SZArrayModifierContext(_localctx);
EnterOuterAlt(_localctx, 2);
{
State = 1631;
Match(T__41);
State = 1632;
Match(T__42);
_localctx.Value = Actions.CreateSzArrayTypeModifier();
}
break;
case 3:
_localctx = new ArrayModifierContext(_localctx);
EnterOuterAlt(_localctx, 3);
{
State = 1634;
((ArrayModifierContext)_localctx).arrayBounds = bounds();
_localctx.Value = Actions.CreateArrayTypeModifier(((ArrayModifierContext)_localctx).arrayBounds.Value);
}
break;
case 4:
_localctx = new ByRefModifierContext(_localctx);
EnterOuterAlt(_localctx, 4);
{
State = 1637;
Match(REF);
_localctx.Value = Actions.CreateByReferenceTypeModifier();
}
break;
case 5:
_localctx = new PtrModifierContext(_localctx);
EnterOuterAlt(_localctx, 5);
{
State = 1639;
Match(PTR);
_localctx.Value = Actions.CreatePointerTypeModifier();
}
break;
case 6:
_localctx = new PinnedModifierContext(_localctx);
EnterOuterAlt(_localctx, 6);
{
State = 1641;
Match(T__91);
_localctx.Value = Actions.CreatePinnedTypeModifier();
}
break;
case 7:
_localctx = new RequiredModifierContext(_localctx);
EnterOuterAlt(_localctx, 7);
{
State = 1643;
Match(T__92);
State = 1644;
Match(T__29);
State = 1645;
((RequiredModifierContext)_localctx).modifierType = typeSpec();
State = 1646;
Match(T__30);
_localctx.Value = Actions.CreateCustomTypeModifier(((RequiredModifierContext)_localctx).modifierType.Value, true);
}
break;
case 8:
_localctx = new OptionalModifierContext(_localctx);
EnterOuterAlt(_localctx, 8);
{
State = 1649;
Match(T__93);
State = 1650;
Match(T__29);
State = 1651;
((OptionalModifierContext)_localctx).modifierType = typeSpec();
State = 1652;
Match(T__30);
_localctx.Value = Actions.CreateCustomTypeModifier(((OptionalModifierContext)_localctx).modifierType.Value, false);
}
break;
case 9:
_localctx = new GenericArgumentsModifierContext(_localctx);
EnterOuterAlt(_localctx, 9);
{
State = 1655;
((GenericArgumentsModifierContext)_localctx).arguments = typeArgs();
_localctx.Value = Actions.CreateGenericArgumentsModifier(((GenericArgumentsModifierContext)_localctx).arguments.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ElementTypeContext : ParserRuleContext {
public CILParser.ElementTypeValue Value;
public ClassNameContext classType;
public ClassNameContext valueClassType;
public ClassNameContext valueType;
public CallConvContext convention;
public TypeContext returnType;
public SigArgsContext arguments;
public Int32Context parameterIndex;
public DottedNameContext parameterName;
public NativeIntContext signedNative;
public NativeUintContext unsignedNative;
public SimpleTypeContext primitive;
public DottedNameContext alias;
public TypeContext sentinelType;
[System.Diagnostics.DebuggerNonUserCode] public ClassNameContext className() {
return GetRuleContext<ClassNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OBJECT() { return GetToken(CILParser.OBJECT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VALUE() { return GetToken(CILParser.VALUE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VALUETYPE() { return GetToken(CILParser.VALUETYPE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode METHOD() { return GetToken(CILParser.METHOD, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PTR() { return GetToken(CILParser.PTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public CallConvContext callConv() {
return GetRuleContext<CallConvContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type() {
return GetRuleContext<TypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SigArgsContext sigArgs() {
return GetRuleContext<SigArgsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode METHOD_TYPE_PARAMETER() { return GetToken(CILParser.METHOD_TYPE_PARAMETER, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TYPE_PARAMETER() { return GetToken(CILParser.TYPE_PARAMETER, 0); }
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TYPEDREF() { return GetToken(CILParser.TYPEDREF, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VOID() { return GetToken(CILParser.VOID, 0); }
[System.Diagnostics.DebuggerNonUserCode] public NativeIntContext nativeInt() {
return GetRuleContext<NativeIntContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public NativeUintContext nativeUint() {
return GetRuleContext<NativeUintContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SimpleTypeContext simpleType() {
return GetRuleContext<SimpleTypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ELLIPSIS() { return GetToken(CILParser.ELLIPSIS, 0); }
public ElementTypeContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_elementType; } }
}
[RuleVersion(0)]
public ElementTypeContext elementType() {
ElementTypeContext _localctx = new ElementTypeContext(Context, State);
EnterRule(_localctx, 146, RULE_elementType);
_localctx.Value = CILParser.ElementTypeValue.Error;
try {
State = 1718;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,67,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1660;
Match(T__38);
State = 1661;
_localctx.classType = className();
_localctx.Value = Actions.CreateClassElementType(_localctx.classType.Value, false);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1664;
Match(OBJECT);
_localctx.Value = Actions.CreateObjectElementType();
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1666;
Match(VALUE);
State = 1667;
Match(T__38);
State = 1668;
_localctx.valueClassType = className();
_localctx.Value = Actions.CreateClassElementType(_localctx.valueClassType.Value, true);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1671;
Match(VALUETYPE);
State = 1672;
_localctx.valueType = className();
_localctx.Value = Actions.CreateClassElementType(_localctx.valueType.Value, true);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1675;
Match(METHOD);
State = 1676;
_localctx.convention = callConv();
State = 1677;
_localctx.returnType = type();
State = 1678;
Match(PTR);
State = 1679;
_localctx.arguments = sigArgs();
_localctx.Value = Actions.CreateFunctionPointerElementType(_localctx.convention.Value, _localctx.returnType.Value, _localctx.arguments.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1682;
Match(METHOD_TYPE_PARAMETER);
State = 1683;
_localctx.parameterIndex = int32();
_localctx.Value = Actions.CreateIndexedGenericParameterElementType(true, (_localctx.parameterIndex!=null?(_localctx.parameterIndex.Start):null));
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1686;
Match(TYPE_PARAMETER);
State = 1687;
_localctx.parameterIndex = int32();
_localctx.Value = Actions.CreateIndexedGenericParameterElementType(false, (_localctx.parameterIndex!=null?(_localctx.parameterIndex.Start):null));
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 1690;
Match(METHOD_TYPE_PARAMETER);
State = 1691;
_localctx.parameterName = dottedName();
_localctx.Value = Actions.CreateNamedGenericParameterElementType(_localctx.Start, true, _localctx.parameterName.Value);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 1694;
Match(TYPE_PARAMETER);
State = 1695;
_localctx.parameterName = dottedName();
_localctx.Value = Actions.CreateNamedGenericParameterElementType(_localctx.Start, false, _localctx.parameterName.Value);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 1698;
Match(TYPEDREF);
_localctx.Value = Actions.CreateTypedReferenceElementType();
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 1700;
Match(VOID);
_localctx.Value = Actions.CreateVoidElementType();
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 1702;
_localctx.signedNative = nativeInt();
_localctx.Value = Actions.CreatePrimitiveElementType(_localctx.signedNative.Value);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 1705;
_localctx.unsignedNative = nativeUint();
_localctx.Value = Actions.CreatePrimitiveElementType(_localctx.unsignedNative.Value);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 1708;
_localctx.primitive = simpleType();
_localctx.Value = Actions.CreatePrimitiveElementType(_localctx.primitive.Value);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 1711;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateTypedefElementType(_localctx.Start, _localctx.alias.Value);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 1714;
Match(ELLIPSIS);
State = 1715;
_localctx.sentinelType = type();
_localctx.Value = Actions.CreateSentinelElementType(_localctx.sentinelType.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class SimpleTypeContext : ParserRuleContext {
public byte Value;
public IToken value;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CHAR() { return GetToken(CILParser.CHAR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STRING() { return GetToken(CILParser.STRING, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BOOL() { return GetToken(CILParser.BOOL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT8() { return GetToken(CILParser.INT8, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT16() { return GetToken(CILParser.INT16, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT32_() { return GetToken(CILParser.INT32_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT64_() { return GetToken(CILParser.INT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT32() { return GetToken(CILParser.FLOAT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT64_() { return GetToken(CILParser.FLOAT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT8() { return GetToken(CILParser.UINT8, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT16() { return GetToken(CILParser.UINT16, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT32() { return GetToken(CILParser.UINT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT64() { return GetToken(CILParser.UINT64, 0); }
public SimpleTypeContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_simpleType; } }
}
[RuleVersion(0)]
public SimpleTypeContext simpleType() {
SimpleTypeContext _localctx = new SimpleTypeContext(Context, State);
EnterRule(_localctx, 148, RULE_simpleType);
try {
State = 1758;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,68,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1720;
_localctx.value = Match(CHAR);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1722;
_localctx.value = Match(STRING);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1724;
_localctx.value = Match(BOOL);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1726;
_localctx.value = Match(INT8);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1728;
_localctx.value = Match(INT16);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1730;
_localctx.value = Match(INT32_);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1732;
_localctx.value = Match(INT64_);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 1734;
_localctx.value = Match(FLOAT32);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 1736;
_localctx.value = Match(FLOAT64_);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 1738;
_localctx.value = Match(UINT8);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 1740;
_localctx.value = Match(UINT16);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 1742;
_localctx.value = Match(UINT32);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 1744;
_localctx.value = Match(UINT64);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 1746;
Match(T__89);
State = 1747;
_localctx.value = Match(INT8);
_localctx.Value = Actions.GetSimpleType(_localctx.value, true);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 1749;
Match(T__89);
State = 1750;
_localctx.value = Match(INT16);
_localctx.Value = Actions.GetSimpleType(_localctx.value, true);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 1752;
Match(T__89);
State = 1753;
_localctx.value = Match(INT32_);
_localctx.Value = Actions.GetSimpleType(_localctx.value, true);
}
break;
case 17:
EnterOuterAlt(_localctx, 17);
{
State = 1755;
Match(T__89);
State = 1756;
_localctx.value = Match(INT64_);
_localctx.Value = Actions.GetSimpleType(_localctx.value, true);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class BoundContext : ParserRuleContext {
public int Lower;
public int Upper;
public bool HasLower;
public bool HasUpper;
public Int32Context size;
public Int32Context lower;
public Int32Context upper;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ELLIPSIS() { return GetToken(CILParser.ELLIPSIS, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context[] int32() {
return GetRuleContexts<Int32Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32(int i) {
return GetRuleContext<Int32Context>(i);
}
public BoundContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_bound; } }
}
[RuleVersion(0)]
public BoundContext bound() {
BoundContext _localctx = new BoundContext(Context, State);
EnterRule(_localctx, 150, RULE_bound);
Actions.InitializeBound(_localctx);
try {
State = 1774;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,69,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1761;
Match(ELLIPSIS);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1762;
_localctx.size = int32();
Actions.SetBoundSize(_localctx, (_localctx.size!=null?(_localctx.size.Start):null));
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1765;
_localctx.lower = int32();
State = 1766;
Match(ELLIPSIS);
State = 1767;
_localctx.upper = int32();
Actions.SetBoundRange(_localctx, (_localctx.lower!=null?(_localctx.lower.Start):null), (_localctx.upper!=null?(_localctx.upper.Start):null));
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1770;
_localctx.lower = int32();
State = 1771;
Match(ELLIPSIS);
Actions.SetBoundLower(_localctx, (_localctx.lower!=null?(_localctx.lower.Start):null));
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class NativeIntContext : ParserRuleContext {
public byte Value;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT() { return GetToken(CILParser.INT, 0); }
public NativeIntContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_nativeInt; } }
}
[RuleVersion(0)]
public NativeIntContext nativeInt() {
NativeIntContext _localctx = new NativeIntContext(Context, State);
EnterRule(_localctx, 152, RULE_nativeInt);
try {
EnterOuterAlt(_localctx, 1);
{
State = 1776;
Match(T__0);
State = 1777;
Match(INT);
_localctx.Value = Actions.GetNativeIntType();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class NativeUintContext : ParserRuleContext {
public byte Value;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT() { return GetToken(CILParser.INT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT() { return GetToken(CILParser.UINT, 0); }
public NativeUintContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_nativeUint; } }
}
[RuleVersion(0)]
public NativeUintContext nativeUint() {
NativeUintContext _localctx = new NativeUintContext(Context, State);
EnterRule(_localctx, 154, RULE_nativeUint);
try {
EnterOuterAlt(_localctx, 1);
{
State = 1780;
Match(T__0);
State = 1784;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__89:
{
State = 1781;
Match(T__89);
State = 1782;
Match(INT);
}
break;
case UINT:
{
State = 1783;
Match(UINT);
}
break;
default:
throw new NoViableAltException(this);
}
_localctx.Value = Actions.GetNativeUIntType();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class SecDeclContext : ParserRuleContext {
public CILParser.SecurityDeclarationValue? Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public SecActionContext action;
public TypeSpecContext permissionType;
public NameValPairsContext pairs;
public CustomBlobDescrContext structuredValue;
public BytesContext rawValue;
public CompQstringContext textValue;
public SecAttrSetBlobContext attributes;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PERMISSION() { return GetToken(CILParser.PERMISSION, 0); }
[System.Diagnostics.DebuggerNonUserCode] public SecActionContext secAction() {
return GetRuleContext<SecActionContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec() {
return GetRuleContext<TypeSpecContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public NameValPairsContext nameValPairs() {
return GetRuleContext<NameValPairsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomBlobDescrContext customBlobDescr() {
return GetRuleContext<CustomBlobDescrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PERMISSIONSET() { return GetToken(CILParser.PERMISSIONSET, 0); }
[System.Diagnostics.DebuggerNonUserCode] public BytesContext bytes() {
return GetRuleContext<BytesContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext compQstring() {
return GetRuleContext<CompQstringContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SecAttrSetBlobContext secAttrSetBlob() {
return GetRuleContext<SecAttrSetBlobContext>(0);
}
public SecDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_secDecl; } }
}
[RuleVersion(0)]
public SecDeclContext secDecl() {
SecDeclContext _localctx = new SecDeclContext(Context, State);
EnterRule(_localctx, 156, RULE_secDecl);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
int _la;
try {
State = 1842;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,72,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1788;
Match(PERMISSION);
State = 1789;
_localctx.action = secAction();
State = 1790;
_localctx.permissionType = typeSpec();
State = 1791;
Match(T__29);
State = 1792;
_localctx.pairs = nameValPairs();
State = 1793;
Match(T__30);
_localctx.Value = Actions.CreateNamedPermissionDeclaration(
_localctx.action.Value,
_localctx.permissionType.Value,
_localctx.pairs.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1796;
Match(PERMISSION);
State = 1797;
_localctx.action = secAction();
State = 1798;
_localctx.permissionType = typeSpec();
State = 1799;
Match(T__35);
State = 1800;
Match(T__16);
State = 1801;
_localctx.structuredValue = customBlobDescr();
State = 1802;
Match(T__17);
_localctx.Value = Actions.CreateStructuredPermissionDeclaration(
_localctx.action.Value,
_localctx.permissionType.Value,
_localctx.structuredValue.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1805;
Match(PERMISSION);
State = 1806;
_localctx.action = secAction();
State = 1807;
_localctx.permissionType = typeSpec();
_localctx.Value = Actions.CreateEmptyPermissionDeclaration(_localctx.action.Value, _localctx.permissionType.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1810;
Match(PERMISSIONSET);
State = 1811;
_localctx.action = secAction();
State = 1812;
Match(T__35);
State = 1814;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__83) {
{
State = 1813;
Match(T__83);
}
}
State = 1816;
Match(T__29);
State = 1817;
_localctx.rawValue = bytes();
State = 1818;
Match(T__30);
_localctx.Value = Actions.CreateRawPermissionSetDeclaration(_localctx.action.Value, _localctx.rawValue.Value);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1821;
Match(PERMISSIONSET);
State = 1822;
_localctx.action = secAction();
State = 1823;
Match(T__83);
State = 1824;
Match(T__29);
State = 1825;
_localctx.rawValue = bytes();
State = 1826;
Match(T__30);
_localctx.Value = Actions.CreateRawPermissionSetDeclaration(_localctx.action.Value, _localctx.rawValue.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1829;
Match(PERMISSIONSET);
State = 1830;
_localctx.action = secAction();
State = 1831;
_localctx.textValue = compQstring();
_localctx.Value = Actions.CreateStringPermissionSetDeclaration(_localctx.action.Value, _localctx.textValue.Value);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1834;
Match(PERMISSIONSET);
State = 1835;
_localctx.action = secAction();
State = 1836;
Match(T__35);
State = 1837;
Match(T__16);
State = 1838;
_localctx.attributes = secAttrSetBlob();
State = 1839;
Match(T__17);
_localctx.Value = Actions.CreateAttributePermissionSetDeclaration(_localctx.action.Value, _localctx.attributes.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndSecurityDeclaration(_localctx, _localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class SecAttrSetBlobContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.SecurityAttributeValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.SecurityAttributeValue>.Builder Builder;
public SecAttrBlobContext attribute;
public SecAttrBlobContext tail;
[System.Diagnostics.DebuggerNonUserCode] public SecAttrBlobContext[] secAttrBlob() {
return GetRuleContexts<SecAttrBlobContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public SecAttrBlobContext secAttrBlob(int i) {
return GetRuleContext<SecAttrBlobContext>(i);
}
public SecAttrSetBlobContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_secAttrSetBlob; } }
}
[RuleVersion(0)]
public SecAttrSetBlobContext secAttrSetBlob() {
SecAttrSetBlobContext _localctx = new SecAttrSetBlobContext(Context, State);
EnterRule(_localctx, 158, RULE_secAttrSetBlob);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.SecurityAttributeValue>();
try {
int _alt;
State = 1857;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__17:
EnterOuterAlt(_localctx, 1);
{
}
break;
case T__0:
case T__15:
case T__38:
case T__41:
case T__89:
case T__112:
case ELLIPSIS:
case CHAR:
case STRING:
case BOOL:
case INT8:
case INT16:
case INT32_:
case INT64_:
case FLOAT32:
case FLOAT64_:
case UINT8:
case UINT16:
case UINT32:
case UINT64:
case OBJECT:
case VALUE:
case VALUETYPE:
case VOID:
case METHOD:
case INSTANCE:
case TYPE_PARAMETER:
case METHOD_TYPE_PARAMETER:
case TYPEDREF:
case THIS:
case BASE:
case NESTER:
case SQSTRING:
case DOTTEDNAME:
case ID:
EnterOuterAlt(_localctx, 2);
{
State = 1851;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,73,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 1845;
_localctx.attribute = secAttrBlob();
_localctx.Builder.Add(_localctx.attribute.Value);
State = 1847;
Match(T__27);
}
}
}
State = 1853;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,73,Context);
}
State = 1854;
_localctx.tail = secAttrBlob();
_localctx.Builder.Add(_localctx.tail.Value);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class SecAttrBlobContext : ParserRuleContext {
public CILParser.SecurityAttributeValue Value;
public IToken name;
public CustomBlobNVPairsContext arguments;
public TypeSpecContext securityType;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SQSTRING() { return GetToken(CILParser.SQSTRING, 0); }
[System.Diagnostics.DebuggerNonUserCode] public CustomBlobNVPairsContext customBlobNVPairs() {
return GetRuleContext<CustomBlobNVPairsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec() {
return GetRuleContext<TypeSpecContext>(0);
}
public SecAttrBlobContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_secAttrBlob; } }
}
[RuleVersion(0)]
public SecAttrBlobContext secAttrBlob() {
SecAttrBlobContext _localctx = new SecAttrBlobContext(Context, State);
EnterRule(_localctx, 160, RULE_secAttrBlob);
_localctx.Value = CILParser.SecurityAttributeValue.Error;
try {
State = 1874;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,75,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1859;
Match(T__38);
State = 1860;
_localctx.name = Match(SQSTRING);
State = 1861;
Match(T__35);
State = 1862;
Match(T__16);
State = 1863;
_localctx.arguments = customBlobNVPairs();
State = 1864;
Match(T__17);
_localctx.Value = Actions.CreateNamedSecurityAttribute(_localctx.name, _localctx.arguments.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1867;
_localctx.securityType = typeSpec();
State = 1868;
Match(T__35);
State = 1869;
Match(T__16);
State = 1870;
_localctx.arguments = customBlobNVPairs();
State = 1871;
Match(T__17);
_localctx.Value = Actions.CreateTypedSecurityAttribute(_localctx.securityType.Value, _localctx.arguments.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class NameValPairsContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.SecurityNameValuePairValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.SecurityNameValuePairValue>.Builder Builder;
public NameValPairContext pair;
public NameValPairContext tail;
[System.Diagnostics.DebuggerNonUserCode] public NameValPairContext[] nameValPair() {
return GetRuleContexts<NameValPairContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public NameValPairContext nameValPair(int i) {
return GetRuleContext<NameValPairContext>(i);
}
public NameValPairsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_nameValPairs; } }
}
[RuleVersion(0)]
public NameValPairsContext nameValPairs() {
NameValPairsContext _localctx = new NameValPairsContext(Context, State);
EnterRule(_localctx, 162, RULE_nameValPairs);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.SecurityNameValuePairValue>();
try {
int _alt;
EnterOuterAlt(_localctx, 1);
{
State = 1882;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,76,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 1876;
_localctx.pair = nameValPair();
_localctx.Builder.Add(_localctx.pair.Value);
State = 1878;
Match(T__27);
}
}
}
State = 1884;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,76,Context);
}
State = 1885;
_localctx.tail = nameValPair();
_localctx.Builder.Add(_localctx.tail.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class NameValPairContext : ParserRuleContext {
public CILParser.SecurityNameValuePairValue Value;
public CompQstringContext name;
public CaValueContext value;
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext compQstring() {
return GetRuleContext<CompQstringContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CaValueContext caValue() {
return GetRuleContext<CaValueContext>(0);
}
public NameValPairContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_nameValPair; } }
}
[RuleVersion(0)]
public NameValPairContext nameValPair() {
NameValPairContext _localctx = new NameValPairContext(Context, State);
EnterRule(_localctx, 164, RULE_nameValPair);
_localctx.Value = CILParser.SecurityNameValuePairValue.Error;
try {
EnterOuterAlt(_localctx, 1);
{
State = 1888;
_localctx.name = compQstring();
State = 1889;
Match(T__35);
State = 1890;
_localctx.value = caValue();
_localctx.Value = Actions.CreateSecurityNameValuePair(_localctx.name.Value, _localctx.value.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class TruefalseContext : ParserRuleContext {
public bool Value;
public TruefalseContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_truefalse; } }
}
[RuleVersion(0)]
public TruefalseContext truefalse() {
TruefalseContext _localctx = new TruefalseContext(Context, State);
EnterRule(_localctx, 166, RULE_truefalse);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 1893;
_la = TokenStream.LA(1);
if ( !(_la==T__94 || _la==T__95) ) {
ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
}
Context.Stop = TokenStream.LT(-1);
_localctx.Value = Actions.ParseBoolean(_localctx.Start);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class CaValueContext : ParserRuleContext {
public CILParser.SecurityCaValue Value;
public TruefalseContext booleanValue;
public Int32Context integerValue;
public CompQstringContext textValue;
public ClassNameContext enumType;
public IToken kind;
public Int32Context enumValue;
[System.Diagnostics.DebuggerNonUserCode] public TruefalseContext truefalse() {
return GetRuleContext<TruefalseContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT32_() { return GetToken(CILParser.INT32_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext compQstring() {
return GetRuleContext<CompQstringContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ClassNameContext className() {
return GetRuleContext<ClassNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT8() { return GetToken(CILParser.INT8, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT16() { return GetToken(CILParser.INT16, 0); }
public CaValueContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_caValue; } }
}
[RuleVersion(0)]
public CaValueContext caValue() {
CaValueContext _localctx = new CaValueContext(Context, State);
EnterRule(_localctx, 168, RULE_caValue);
_localctx.Value = CILParser.SecurityCaValue.Error;
try {
State = 1940;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,77,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1895;
_localctx.booleanValue = truefalse();
_localctx.Value = Actions.CreateSecurityBooleanValue(_localctx.booleanValue.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1898;
_localctx.integerValue = int32();
_localctx.Value = Actions.CreateSecurityInt32Value((_localctx.integerValue!=null?(_localctx.integerValue.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1901;
Match(INT32_);
State = 1902;
Match(T__29);
State = 1903;
_localctx.integerValue = int32();
State = 1904;
Match(T__30);
_localctx.Value = Actions.CreateSecurityInt32Value((_localctx.integerValue!=null?(_localctx.integerValue.Start):null));
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1907;
_localctx.textValue = compQstring();
_localctx.Value = Actions.CreateSecurityStringValue(_localctx.textValue.Value);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1910;
_localctx.enumType = className();
State = 1911;
Match(T__29);
State = 1912;
_localctx.kind = Match(INT8);
State = 1913;
Match(T__74);
State = 1914;
_localctx.enumValue = int32();
State = 1915;
Match(T__30);
_localctx.Value = Actions.CreateSecurityEnumValue(_localctx.enumType.Value, _localctx.kind, (_localctx.enumValue!=null?(_localctx.enumValue.Start):null));
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1918;
_localctx.enumType = className();
State = 1919;
Match(T__29);
State = 1920;
_localctx.kind = Match(INT16);
State = 1921;
Match(T__74);
State = 1922;
_localctx.enumValue = int32();
State = 1923;
Match(T__30);
_localctx.Value = Actions.CreateSecurityEnumValue(_localctx.enumType.Value, _localctx.kind, (_localctx.enumValue!=null?(_localctx.enumValue.Start):null));
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1926;
_localctx.enumType = className();
State = 1927;
Match(T__29);
State = 1928;
_localctx.kind = Match(INT32_);
State = 1929;
Match(T__74);
State = 1930;
_localctx.enumValue = int32();
State = 1931;
Match(T__30);
_localctx.Value = Actions.CreateSecurityEnumValue(_localctx.enumType.Value, _localctx.kind, (_localctx.enumValue!=null?(_localctx.enumValue.Start):null));
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 1934;
_localctx.enumType = className();
State = 1935;
Match(T__29);
State = 1936;
_localctx.enumValue = int32();
State = 1937;
Match(T__30);
_localctx.Value = Actions.CreateSecurityEnumValue(_localctx.enumType.Value, (_localctx.enumValue!=null?(_localctx.enumValue.Start):null));
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class SecActionContext : ParserRuleContext {
public System.Reflection.DeclarativeSecurityAction Value;
public SecActionContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_secAction; } }
}
[RuleVersion(0)]
public SecActionContext secAction() {
SecActionContext _localctx = new SecActionContext(Context, State);
EnterRule(_localctx, 170, RULE_secAction);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 1942;
_la = TokenStream.LA(1);
if ( !(((((_la - 97)) & ~0x3f) == 0 && ((1L << (_la - 97)) & 32767L) != 0)) ) {
ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
}
Context.Stop = TokenStream.LT(-1);
_localctx.Value = Actions.ParseSecurityAction(_localctx.Start);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class MethodRefContext : ParserRuleContext {
public CILParser.MethodReferenceValue Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public CallConvContext convention;
public TypeContext returnType;
public TypeSpecOrScopeContext owner;
public MethodNameContext name;
public TypeArgsContext genericArguments;
public SigArgsContext arguments;
public GenArityNotEmptyContext genericArity;
public MdtokenContext token;
public DottedNameContext alias;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DCOLON() { return GetToken(CILParser.DCOLON, 0); }
[System.Diagnostics.DebuggerNonUserCode] public CallConvContext callConv() {
return GetRuleContext<CallConvContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type() {
return GetRuleContext<TypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecOrScopeContext typeSpecOrScope() {
return GetRuleContext<TypeSpecOrScopeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MethodNameContext methodName() {
return GetRuleContext<MethodNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SigArgsContext sigArgs() {
return GetRuleContext<SigArgsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeArgsContext typeArgs() {
return GetRuleContext<TypeArgsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public GenArityNotEmptyContext genArityNotEmpty() {
return GetRuleContext<GenArityNotEmptyContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MdtokenContext mdtoken() {
return GetRuleContext<MdtokenContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
public MethodRefContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_methodRef; } }
}
[RuleVersion(0)]
public MethodRefContext methodRef() {
MethodRefContext _localctx = new MethodRefContext(Context, State);
EnterRule(_localctx, 172, RULE_methodRef);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.MethodReferenceValue.Error;
int _la;
try {
State = 1986;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,80,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1944;
_localctx.convention = callConv();
State = 1945;
_localctx.returnType = type();
State = 1946;
_localctx.owner = typeSpecOrScope();
State = 1947;
Match(DCOLON);
State = 1948;
_localctx.name = methodName();
State = 1950;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__85) {
{
State = 1949;
_localctx.genericArguments = typeArgs();
}
}
State = 1952;
_localctx.arguments = sigArgs();
_localctx.Value = Actions.CreateMethodReference(_localctx.Start, _localctx.convention.Value, _localctx.returnType.Value, _localctx.owner.Value, _localctx.name.Value, _localctx.genericArguments is null ? null : _localctx.genericArguments.Value, null, _localctx.arguments.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1955;
_localctx.convention = callConv();
State = 1956;
_localctx.returnType = type();
State = 1957;
_localctx.owner = typeSpecOrScope();
State = 1958;
Match(DCOLON);
State = 1959;
_localctx.name = methodName();
State = 1960;
_localctx.genericArity = genArityNotEmpty();
State = 1961;
_localctx.arguments = sigArgs();
_localctx.Value = Actions.CreateMethodReference(_localctx.Start, _localctx.convention.Value, _localctx.returnType.Value, _localctx.owner.Value, _localctx.name.Value, null, _localctx.genericArity.Value, _localctx.arguments.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1964;
_localctx.convention = callConv();
State = 1965;
_localctx.returnType = type();
State = 1966;
_localctx.name = methodName();
State = 1968;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__85) {
{
State = 1967;
_localctx.genericArguments = typeArgs();
}
}
State = 1970;
_localctx.arguments = sigArgs();
_localctx.Value = Actions.CreateMethodReference(_localctx.Start, _localctx.convention.Value, _localctx.returnType.Value, null, _localctx.name.Value, _localctx.genericArguments is null ? null : _localctx.genericArguments.Value, null, _localctx.arguments.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1973;
_localctx.convention = callConv();
State = 1974;
_localctx.returnType = type();
State = 1975;
_localctx.name = methodName();
State = 1976;
_localctx.genericArity = genArityNotEmpty();
State = 1977;
_localctx.arguments = sigArgs();
_localctx.Value = Actions.CreateMethodReference(_localctx.Start, _localctx.convention.Value, _localctx.returnType.Value, null, _localctx.name.Value, null, _localctx.genericArity.Value, _localctx.arguments.Value);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1980;
_localctx.token = mdtoken();
_localctx.Value = Actions.CreateTokenMethodReference(_localctx.token.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1983;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateTypedefMethodReference(_localctx.Start, _localctx.alias.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
ExitRule();
}
return _localctx;
}
public partial class CallConvContext : ParserRuleContext {
public byte Value;
public CallConvContext inner;
public CallKindContext kind;
public Int32Context raw;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INSTANCE() { return GetToken(CILParser.INSTANCE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public CallConvContext callConv() {
return GetRuleContext<CallConvContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode EXPLICIT() { return GetToken(CILParser.EXPLICIT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public CallKindContext callKind() {
return GetRuleContext<CallKindContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public CallConvContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_callConv; } }
}
[RuleVersion(0)]
public CallConvContext callConv() {
CallConvContext _localctx = new CallConvContext(Context, State);
EnterRule(_localctx, 174, RULE_callConv);
try {
State = 2005;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,81,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1988;
Match(INSTANCE);
State = 1989;
_localctx.inner = callConv();
_localctx.Value = Actions.AddInstanceCallingConvention(_localctx.inner.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1992;
Match(EXPLICIT);
State = 1993;
_localctx.inner = callConv();
_localctx.Value = Actions.AddExplicitCallingConvention(_localctx.inner.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1996;
_localctx.kind = callKind();
_localctx.Value = _localctx.kind.Value;
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1999;
Match(T__111);
State = 2000;
Match(T__29);
State = 2001;
_localctx.raw = int32();
State = 2002;
Match(T__30);
_localctx.Value = Actions.GetRawCallingConvention((_localctx.raw!=null?(_localctx.raw.Start):null));
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class CallKindContext : ParserRuleContext {
public byte Value;
public IToken kind;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DEFAULT() { return GetToken(CILParser.DEFAULT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VARARG() { return GetToken(CILParser.VARARG, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UNMANAGED() { return GetToken(CILParser.UNMANAGED, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CDECL() { return GetToken(CILParser.CDECL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STDCALL() { return GetToken(CILParser.STDCALL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode THISCALL() { return GetToken(CILParser.THISCALL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FASTCALL() { return GetToken(CILParser.FASTCALL, 0); }
public CallKindContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_callKind; } }
}
[RuleVersion(0)]
public CallKindContext callKind() {
CallKindContext _localctx = new CallKindContext(Context, State);
EnterRule(_localctx, 176, RULE_callKind);
_localctx.Value = Actions.GetDefaultCallingConvention();
try {
State = 2026;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,82,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2008;
_localctx.kind = Match(DEFAULT);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2010;
_localctx.kind = Match(VARARG);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 2012;
Match(UNMANAGED);
State = 2013;
_localctx.kind = Match(CDECL);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 2015;
Match(UNMANAGED);
State = 2016;
_localctx.kind = Match(STDCALL);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 2018;
Match(UNMANAGED);
State = 2019;
_localctx.kind = Match(THISCALL);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 2021;
Match(UNMANAGED);
State = 2022;
_localctx.kind = Match(FASTCALL);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 2024;
_localctx.kind = Match(UNMANAGED);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class MdtokenContext : ParserRuleContext {
public int Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public Int32Context token;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public MdtokenContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_mdtoken; } }
}
[RuleVersion(0)]
public MdtokenContext mdtoken() {
MdtokenContext _localctx = new MdtokenContext(Context, State);
EnterRule(_localctx, 178, RULE_mdtoken);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2028;
Match(T__112);
State = 2029;
Match(T__29);
State = 2030;
_localctx.token = int32();
State = 2031;
Match(T__30);
_localctx.Value = Actions.ParseInt32((_localctx.token!=null?(_localctx.token.Start):null));
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
ExitRule();
}
return _localctx;
}
public partial class MemberRefContext : ParserRuleContext {
public CILParser.MemberReferenceValue Value;
public MethodRefContext method;
public FieldRefContext field;
public MdtokenContext token;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode METHOD() { return GetToken(CILParser.METHOD, 0); }
[System.Diagnostics.DebuggerNonUserCode] public MethodRefContext methodRef() {
return GetRuleContext<MethodRefContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public FieldRefContext fieldRef() {
return GetRuleContext<FieldRefContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MdtokenContext mdtoken() {
return GetRuleContext<MdtokenContext>(0);
}
public MemberRefContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_memberRef; } }
}
[RuleVersion(0)]
public MemberRefContext memberRef() {
MemberRefContext _localctx = new MemberRefContext(Context, State);
EnterRule(_localctx, 180, RULE_memberRef);
_localctx.Value = CILParser.MemberReferenceValue.Error;
try {
State = 2045;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case METHOD:
EnterOuterAlt(_localctx, 1);
{
State = 2034;
Match(METHOD);
State = 2035;
_localctx.method = methodRef();
_localctx.Value = Actions.CreateMethodMemberReference(_localctx.method.Value);
}
break;
case T__36:
EnterOuterAlt(_localctx, 2);
{
State = 2038;
Match(T__36);
State = 2039;
_localctx.field = fieldRef();
_localctx.Value = Actions.CreateFieldMemberReference(_localctx.field.Value);
}
break;
case T__112:
EnterOuterAlt(_localctx, 3);
{
State = 2042;
_localctx.token = mdtoken();
_localctx.Value = Actions.CreateTokenMemberReference(_localctx.token.Value);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class FieldRefContext : ParserRuleContext {
public CILParser.FieldReferenceValue Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public TypeContext fieldType;
public TypeSpecOrScopeContext owner;
public DottedNameContext name;
public DottedNameContext alias;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DCOLON() { return GetToken(CILParser.DCOLON, 0); }
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type() {
return GetRuleContext<TypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecOrScopeContext typeSpecOrScope() {
return GetRuleContext<TypeSpecOrScopeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
public FieldRefContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_fieldRef; } }
}
[RuleVersion(0)]
public FieldRefContext fieldRef() {
FieldRefContext _localctx = new FieldRefContext(Context, State);
EnterRule(_localctx, 182, RULE_fieldRef);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.FieldReferenceValue.Error;
try {
State = 2060;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,84,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2047;
_localctx.fieldType = type();
State = 2048;
_localctx.owner = typeSpecOrScope();
State = 2049;
Match(DCOLON);
State = 2050;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateFieldReference(_localctx.fieldType.Value, _localctx.owner.Value, _localctx.name.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2053;
_localctx.fieldType = type();
State = 2054;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateFieldReference(_localctx.fieldType.Value, null, _localctx.name.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2057;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateTypedefFieldReference(_localctx.Start, _localctx.alias.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
ExitRule();
}
return _localctx;
}
public partial class TypeListContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.TypeSpecificationValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.TypeSpecificationValue>.Builder Builder;
public TypeSpecContext item;
public TypeSpecContext tail;
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext[] typeSpec() {
return GetRuleContexts<TypeSpecContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec(int i) {
return GetRuleContext<TypeSpecContext>(i);
}
public TypeListContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_typeList; } }
}
[RuleVersion(0)]
public TypeListContext typeList() {
TypeListContext _localctx = new TypeListContext(Context, State);
EnterRule(_localctx, 184, RULE_typeList);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.TypeSpecificationValue>();
try {
int _alt;
EnterOuterAlt(_localctx, 1);
{
State = 2068;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,85,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 2062;
_localctx.item = typeSpec();
_localctx.Builder.Add(_localctx.item.Value);
State = 2064;
Match(T__27);
}
}
}
State = 2070;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,85,Context);
}
State = 2071;
_localctx.tail = typeSpec();
_localctx.Builder.Add(_localctx.tail.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class TyparsClauseContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.GenericParameterDeclarationValue> Value;
public TyparsContext parameters;
[System.Diagnostics.DebuggerNonUserCode] public TyparsContext typars() {
return GetRuleContext<TyparsContext>(0);
}
public TyparsClauseContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_typarsClause; } }
}
[RuleVersion(0)]
public TyparsClauseContext typarsClause() {
TyparsClauseContext _localctx = new TyparsClauseContext(Context, State);
EnterRule(_localctx, 186, RULE_typarsClause);
_localctx.Value = System.Collections.Immutable.ImmutableArray<CILParser.GenericParameterDeclarationValue>.Empty;
try {
State = 2080;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__16:
case T__29:
case T__70:
case T__71:
case T__84:
EnterOuterAlt(_localctx, 1);
{
}
break;
case T__85:
EnterOuterAlt(_localctx, 2);
{
State = 2075;
Match(T__85);
State = 2076;
_localctx.parameters = typars();
State = 2077;
Match(T__86);
_localctx.Value = _localctx.parameters.Value;
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class TyparAttribContext : ParserRuleContext {
public CILParser.AttributeValue<System.Reflection.GenericParameterAttributes> Value;
public IToken covariant;
public IToken contravariant;
public IToken @class;
public IToken valuetype;
public IToken byrefLike;
public IToken ctor;
public Int32Context flags;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PLUS() { return GetToken(CILParser.PLUS, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VALUETYPE() { return GetToken(CILParser.VALUETYPE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public TyparAttribContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_typarAttrib; } }
}
[RuleVersion(0)]
public TyparAttribContext typarAttrib() {
TyparAttribContext _localctx = new TyparAttribContext(Context, State);
EnterRule(_localctx, 188, RULE_typarAttrib);
_localctx.Value = CILParser.AttributeValue<System.Reflection.GenericParameterAttributes>.Empty;
try {
State = 2100;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case PLUS:
EnterOuterAlt(_localctx, 1);
{
State = 2082;
_localctx.covariant = Match(PLUS);
_localctx.Value = Actions.CreateGenericParameterAttribute(_localctx.covariant);
}
break;
case T__113:
EnterOuterAlt(_localctx, 2);
{
State = 2084;
_localctx.contravariant = Match(T__113);
_localctx.Value = Actions.CreateGenericParameterAttribute(_localctx.contravariant);
}
break;
case T__38:
EnterOuterAlt(_localctx, 3);
{
State = 2086;
_localctx.@class = Match(T__38);
_localctx.Value = Actions.CreateGenericParameterAttribute(_localctx.@class);
}
break;
case VALUETYPE:
EnterOuterAlt(_localctx, 4);
{
State = 2088;
_localctx.valuetype = Match(VALUETYPE);
_localctx.Value = Actions.CreateGenericParameterAttribute(_localctx.valuetype);
}
break;
case T__114:
EnterOuterAlt(_localctx, 5);
{
State = 2090;
_localctx.byrefLike = Match(T__114);
_localctx.Value = Actions.CreateGenericParameterAttribute(_localctx.byrefLike);
}
break;
case T__115:
EnterOuterAlt(_localctx, 6);
{
State = 2092;
_localctx.ctor = Match(T__115);
_localctx.Value = Actions.CreateGenericParameterAttribute(_localctx.ctor);
}
break;
case T__69:
EnterOuterAlt(_localctx, 7);
{
State = 2094;
Match(T__69);
State = 2095;
Match(T__29);
State = 2096;
_localctx.flags = int32();
State = 2097;
Match(T__30);
_localctx.Value = Actions.CreateRawGenericParameterAttribute((_localctx.flags!=null?(_localctx.flags.Start):null));
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class TyparAttribsContext : ParserRuleContext {
public System.Reflection.GenericParameterAttributes Value;
public TyparAttribContext attribute;
[System.Diagnostics.DebuggerNonUserCode] public TyparAttribContext[] typarAttrib() {
return GetRuleContexts<TyparAttribContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public TyparAttribContext typarAttrib(int i) {
return GetRuleContext<TyparAttribContext>(i);
}
public TyparAttribsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_typarAttribs; } }
}
[RuleVersion(0)]
public TyparAttribsContext typarAttribs() {
TyparAttribsContext _localctx = new TyparAttribsContext(Context, State);
EnterRule(_localctx, 190, RULE_typarAttribs);
_localctx.Value = 0;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2107;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__38 || ((((_la - 70)) & ~0x3f) == 0 && ((1L << (_la - 70)) & 123145302310913L) != 0) || _la==VALUETYPE || _la==PLUS) {
{
{
State = 2102;
_localctx.attribute = typarAttrib();
_localctx.Value = Actions.AddGenericParameterAttribute(_localctx.Value, _localctx.attribute.Value);
}
}
State = 2109;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class TyparContext : ParserRuleContext {
public CILParser.GenericParameterDeclarationValue Value;
public TyparAttribsContext attributes;
public TyBoundContext constraints;
public DottedNameContext name;
[System.Diagnostics.DebuggerNonUserCode] public TyparAttribsContext typarAttribs() {
return GetRuleContext<TyparAttribsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TyBoundContext tyBound() {
return GetRuleContext<TyBoundContext>(0);
}
public TyparContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_typar; } }
}
[RuleVersion(0)]
public TyparContext typar() {
TyparContext _localctx = new TyparContext(Context, State);
EnterRule(_localctx, 192, RULE_typar);
_localctx.Value = CILParser.GenericParameterDeclarationValue.Error;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2110;
_localctx.attributes = typarAttribs();
State = 2112;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__29) {
{
State = 2111;
_localctx.constraints = tyBound();
}
}
State = 2114;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateGenericParameterDeclaration(_localctx.Start, _localctx.attributes.Value, _localctx.constraints, _localctx.name.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class TyparsContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.GenericParameterDeclarationValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.GenericParameterDeclarationValue>.Builder Builder;
public TyparContext parameter;
public TyparContext tail;
[System.Diagnostics.DebuggerNonUserCode] public TyparContext[] typar() {
return GetRuleContexts<TyparContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public TyparContext typar(int i) {
return GetRuleContext<TyparContext>(i);
}
public TyparsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_typars; } }
}
[RuleVersion(0)]
public TyparsContext typars() {
TyparsContext _localctx = new TyparsContext(Context, State);
EnterRule(_localctx, 194, RULE_typars);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.GenericParameterDeclarationValue>();
try {
int _alt;
EnterOuterAlt(_localctx, 1);
{
State = 2123;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,90,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 2117;
_localctx.parameter = typar();
_localctx.Builder.Add(_localctx.parameter.Value);
State = 2119;
Match(T__27);
}
}
}
State = 2125;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,90,Context);
}
State = 2126;
_localctx.tail = typar();
_localctx.Builder.Add(_localctx.tail.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class TyBoundContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.TypeSpecificationValue> Value;
public TypeListContext constraints;
[System.Diagnostics.DebuggerNonUserCode] public TypeListContext typeList() {
return GetRuleContext<TypeListContext>(0);
}
public TyBoundContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_tyBound; } }
}
[RuleVersion(0)]
public TyBoundContext tyBound() {
TyBoundContext _localctx = new TyBoundContext(Context, State);
EnterRule(_localctx, 196, RULE_tyBound);
_localctx.Value = System.Collections.Immutable.ImmutableArray<CILParser.TypeSpecificationValue>.Empty;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2129;
Match(T__29);
State = 2130;
_localctx.constraints = typeList();
State = 2131;
Match(T__30);
_localctx.Value = _localctx.constraints.Value;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class GenArityContext : ParserRuleContext {
public int Value;
public GenArityNotEmptyContext value;
[System.Diagnostics.DebuggerNonUserCode] public GenArityNotEmptyContext genArityNotEmpty() {
return GetRuleContext<GenArityNotEmptyContext>(0);
}
public GenArityContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_genArity; } }
}
[RuleVersion(0)]
public GenArityContext genArity() {
GenArityContext _localctx = new GenArityContext(Context, State);
EnterRule(_localctx, 198, RULE_genArity);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2135;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__85) {
{
State = 2134;
_localctx.value = genArityNotEmpty();
}
}
_localctx.Value = Actions.GetGenericArity(_localctx.value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class GenArityNotEmptyContext : ParserRuleContext {
public int Value;
public Int32Context value;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public GenArityNotEmptyContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_genArityNotEmpty; } }
}
[RuleVersion(0)]
public GenArityNotEmptyContext genArityNotEmpty() {
GenArityNotEmptyContext _localctx = new GenArityNotEmptyContext(Context, State);
EnterRule(_localctx, 200, RULE_genArityNotEmpty);
try {
EnterOuterAlt(_localctx, 1);
{
State = 2139;
Match(T__85);
State = 2140;
Match(T__41);
State = 2141;
_localctx.value = int32();
State = 2142;
Match(T__42);
State = 2143;
Match(T__86);
_localctx.Value = Actions.ParseInt32((_localctx.value!=null?(_localctx.value.Start):null));
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ClassDeclContext : ParserRuleContext {
public CILParser.PropertyBodyValue PropertyBody;
public CILParser.EventBodyValue EventBody;
public CILParser.CustomAttributeOwnerValue AttributeOwner;
public EventHeadContext eventHeader;
public PropHeadContext property;
public DataDeclContext data;
public SecDeclContext security;
public ExtSourceSpecContext source;
public CustomAttrDeclContext attribute;
public Int32Context size;
public Int32Context packing;
public ExportHeadContext export;
public ExptypeDeclsContext exportDeclarations;
public TypeSpecOrScopeContext declarationOwner;
public MethodNameContext declarationName;
public CallConvContext bodyConvention;
public TypeContext bodyReturnType;
public TypeSpecOrScopeContext bodyOwner;
public MethodNameContext bodyName;
public SigArgsContext bodyArguments;
public CallConvContext declarationConvention;
public TypeContext declarationReturnType;
public GenArityContext declarationArity;
public SigArgsContext declarationArguments;
public GenArityContext bodyArity;
public LanguageDeclContext language;
public Int32Context parameterIndex;
public DottedNameContext parameterName;
public TypeSpecContext constraintType;
public TypeSpecContext interfaceType;
public CustomDescrContext interfaceAttribute;
[System.Diagnostics.DebuggerNonUserCode] public MethodHeadContext methodHead() {
return GetRuleContext<MethodHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MethodDeclsContext methodDecls() {
return GetRuleContext<MethodDeclsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ClassHeadContext classHead() {
return GetRuleContext<ClassHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ClassDeclsContext classDecls() {
return GetRuleContext<ClassDeclsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public EventDeclsContext eventDecls() {
return GetRuleContext<EventDeclsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public EventHeadContext eventHead() {
return GetRuleContext<EventHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public PropDeclsContext propDecls() {
return GetRuleContext<PropDeclsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public PropHeadContext propHead() {
return GetRuleContext<PropHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public FieldDeclContext fieldDecl() {
return GetRuleContext<FieldDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DataDeclContext dataDecl() {
return GetRuleContext<DataDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SecDeclContext secDecl() {
return GetRuleContext<SecDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ExtSourceSpecContext extSourceSpec() {
return GetRuleContext<ExtSourceSpecContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomAttrDeclContext[] customAttrDecl() {
return GetRuleContexts<CustomAttrDeclContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public CustomAttrDeclContext customAttrDecl(int i) {
return GetRuleContext<CustomAttrDeclContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ExportHeadContext exportHead() {
return GetRuleContext<ExportHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ExptypeDeclsContext exptypeDecls() {
return GetRuleContext<ExptypeDeclsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OVERRIDE() { return GetToken(CILParser.OVERRIDE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] DCOLON() { return GetTokens(CILParser.DCOLON); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DCOLON(int i) {
return GetToken(CILParser.DCOLON, i);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecOrScopeContext[] typeSpecOrScope() {
return GetRuleContexts<TypeSpecOrScopeContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecOrScopeContext typeSpecOrScope(int i) {
return GetRuleContext<TypeSpecOrScopeContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public MethodNameContext[] methodName() {
return GetRuleContexts<MethodNameContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public MethodNameContext methodName(int i) {
return GetRuleContext<MethodNameContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public CallConvContext[] callConv() {
return GetRuleContexts<CallConvContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public CallConvContext callConv(int i) {
return GetRuleContext<CallConvContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeContext[] type() {
return GetRuleContexts<TypeContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type(int i) {
return GetRuleContext<TypeContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public SigArgsContext[] sigArgs() {
return GetRuleContexts<SigArgsContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public SigArgsContext sigArgs(int i) {
return GetRuleContext<SigArgsContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] METHOD() { return GetTokens(CILParser.METHOD); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode METHOD(int i) {
return GetToken(CILParser.METHOD, i);
}
[System.Diagnostics.DebuggerNonUserCode] public GenArityContext[] genArity() {
return GetRuleContexts<GenArityContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public GenArityContext genArity(int i) {
return GetRuleContext<GenArityContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public LanguageDeclContext languageDecl() {
return GetRuleContext<LanguageDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CompControlContext compControl() {
return GetRuleContext<CompControlContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PARAM() { return GetToken(CILParser.PARAM, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TYPE() { return GetToken(CILParser.TYPE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CONSTRAINT() { return GetToken(CILParser.CONSTRAINT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec() {
return GetRuleContext<TypeSpecContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomDescrContext customDescr() {
return GetRuleContext<CustomDescrContext>(0);
}
public ClassDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_classDecl; } }
}
[RuleVersion(0)]
public ClassDeclContext classDecl() {
ClassDeclContext _localctx = new ClassDeclContext(Context, State);
EnterRule(_localctx, 202, RULE_classDecl);
try {
int _alt;
State = 2296;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,96,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2146;
methodHead();
State = 2147;
Match(T__16);
State = 2148;
methodDecls();
State = 2149;
Match(T__17);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2151;
classHead();
State = 2152;
Match(T__16);
State = 2153;
classDecls();
State = 2154;
Match(T__17);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2156;
_localctx.eventHeader = eventHead();
_localctx.EventBody = Actions.BeginEvent(_localctx.eventHeader.Value);
State = 2158;
Match(T__16);
State = 2159;
eventDecls(_localctx.EventBody);
State = 2160;
Match(T__17);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 2162;
_localctx.property = propHead();
_localctx.PropertyBody = Actions.BeginProperty(_localctx.property.Value);
State = 2164;
Match(T__16);
State = 2165;
propDecls(_localctx.PropertyBody);
State = 2166;
Match(T__17);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 2168;
fieldDecl();
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 2169;
_localctx.data = dataDecl();
Actions.ProcessClassDataDeclaration(_localctx.data);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 2172;
_localctx.security = secDecl();
Actions.ProcessClassSecurityDeclaration(_localctx.security);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 2175;
_localctx.source = extSourceSpec();
Actions.ProcessClassSourceDirective(_localctx.source);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 2178;
_localctx.attribute = customAttrDecl();
Actions.ProcessClassCustomAttribute(_localctx.attribute);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 2181;
Match(T__116);
State = 2182;
_localctx.size = int32();
Actions.SetClassSize((_localctx.size!=null?(_localctx.size.Start):null));
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 2185;
Match(T__117);
State = 2186;
_localctx.packing = int32();
Actions.SetClassPackingSize((_localctx.packing!=null?(_localctx.packing.Start):null));
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 2189;
_localctx.export = exportHead();
State = 2190;
Match(T__16);
State = 2191;
_localctx.exportDeclarations = exptypeDecls();
State = 2192;
Match(T__17);
Actions.ProcessClassExport(_localctx.export, _localctx.exportDeclarations);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 2195;
Match(OVERRIDE);
State = 2196;
_localctx.declarationOwner = typeSpecOrScope();
State = 2197;
Match(DCOLON);
State = 2198;
_localctx.declarationName = methodName();
State = 2199;
Match(T__118);
State = 2200;
_localctx.bodyConvention = callConv();
State = 2201;
_localctx.bodyReturnType = type();
State = 2202;
_localctx.bodyOwner = typeSpecOrScope();
State = 2203;
Match(DCOLON);
State = 2204;
_localctx.bodyName = methodName();
State = 2205;
_localctx.bodyArguments = sigArgs();
Actions.AddClassMethodOverride(
_localctx,
_localctx.declarationOwner.Value,
_localctx.declarationName.Value,
_localctx.bodyConvention.Value,
_localctx.bodyReturnType.Value,
_localctx.bodyOwner.Value,
_localctx.bodyName.Value,
_localctx.bodyArguments.Value);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 2208;
Match(OVERRIDE);
State = 2209;
Match(METHOD);
State = 2210;
_localctx.declarationConvention = callConv();
State = 2211;
_localctx.declarationReturnType = type();
State = 2212;
_localctx.declarationOwner = typeSpecOrScope();
State = 2213;
Match(DCOLON);
State = 2214;
_localctx.declarationName = methodName();
State = 2215;
_localctx.declarationArity = genArity();
State = 2216;
_localctx.declarationArguments = sigArgs();
State = 2217;
Match(T__118);
State = 2218;
Match(METHOD);
State = 2219;
_localctx.bodyConvention = callConv();
State = 2220;
_localctx.bodyReturnType = type();
State = 2221;
_localctx.bodyOwner = typeSpecOrScope();
State = 2222;
Match(DCOLON);
State = 2223;
_localctx.bodyName = methodName();
State = 2224;
_localctx.bodyArity = genArity();
State = 2225;
_localctx.bodyArguments = sigArgs();
Actions.AddClassMethodOverride(
_localctx,
_localctx.declarationConvention.Value,
_localctx.declarationReturnType.Value,
_localctx.declarationOwner.Value,
_localctx.declarationName.Value,
_localctx.declarationArity.Value,
_localctx.declarationArguments.Value,
_localctx.bodyConvention.Value,
_localctx.bodyReturnType.Value,
_localctx.bodyOwner.Value,
_localctx.bodyName.Value,
_localctx.bodyArity.Value,
_localctx.bodyArguments.Value);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 2228;
_localctx.language = languageDecl();
Actions.ProcessClassLanguageDirective(_localctx.language);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 2231;
compControl();
Actions.ProcessClassCompilerControl();
}
break;
case 17:
EnterOuterAlt(_localctx, 17);
{
State = 2234;
Match(PARAM);
State = 2235;
Match(TYPE);
State = 2236;
Match(T__41);
State = 2237;
_localctx.parameterIndex = int32();
State = 2238;
Match(T__42);
_localctx.AttributeOwner = Actions.BeginClassGenericParameterDirective(_localctx, (_localctx.parameterIndex!=null?(_localctx.parameterIndex.Start):null));
State = 2245;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,92,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 2240;
_localctx.attribute = customAttrDecl();
Actions.AddClassGenericDirectiveAttribute(_localctx.AttributeOwner, _localctx.attribute);
}
}
}
State = 2247;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,92,Context);
}
}
break;
case 18:
EnterOuterAlt(_localctx, 18);
{
State = 2248;
Match(PARAM);
State = 2249;
Match(TYPE);
State = 2250;
_localctx.parameterName = dottedName();
_localctx.AttributeOwner = Actions.BeginClassGenericParameterDirective(_localctx.parameterName.Value);
State = 2257;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,93,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 2252;
_localctx.attribute = customAttrDecl();
Actions.AddClassGenericDirectiveAttribute(_localctx.AttributeOwner, _localctx.attribute);
}
}
}
State = 2259;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,93,Context);
}
}
break;
case 19:
EnterOuterAlt(_localctx, 19);
{
State = 2260;
Match(PARAM);
State = 2261;
Match(CONSTRAINT);
State = 2262;
Match(T__41);
State = 2263;
_localctx.parameterIndex = int32();
State = 2264;
Match(T__42);
State = 2265;
Match(T__27);
State = 2266;
_localctx.constraintType = typeSpec();
_localctx.AttributeOwner = Actions.BeginClassGenericConstraintDirective(_localctx, (_localctx.parameterIndex!=null?(_localctx.parameterIndex.Start):null), _localctx.constraintType.Value);
State = 2273;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,94,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 2268;
_localctx.attribute = customAttrDecl();
Actions.AddClassGenericDirectiveAttribute(_localctx.AttributeOwner, _localctx.attribute);
}
}
}
State = 2275;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,94,Context);
}
}
break;
case 20:
EnterOuterAlt(_localctx, 20);
{
State = 2276;
Match(PARAM);
State = 2277;
Match(CONSTRAINT);
State = 2278;
_localctx.parameterName = dottedName();
State = 2279;
Match(T__27);
State = 2280;
_localctx.constraintType = typeSpec();
_localctx.AttributeOwner = Actions.BeginClassGenericConstraintDirective(_localctx.parameterName.Value, _localctx.constraintType.Value);
State = 2287;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,95,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 2282;
_localctx.attribute = customAttrDecl();
Actions.AddClassGenericDirectiveAttribute(_localctx.AttributeOwner, _localctx.attribute);
}
}
}
State = 2289;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,95,Context);
}
}
break;
case 21:
EnterOuterAlt(_localctx, 21);
{
State = 2290;
Match(T__119);
State = 2291;
Match(TYPE);
State = 2292;
_localctx.interfaceType = typeSpec();
State = 2293;
_localctx.interfaceAttribute = customDescr();
Actions.AddInterfaceImplementationAttribute(_localctx, _localctx.interfaceType.Value, _localctx.interfaceAttribute);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndClassDeclaration(_localctx);
ExitRule();
}
return _localctx;
}
public partial class FieldDeclContext : ParserRuleContext {
public CILParser.FieldDeclarationValue Value;
public int InitialSyntaxErrorCount;
public CILParser.FieldDeclarationBuilder Builder;
public RepeatOptContext offset;
public FieldAttrContext attribute;
public MarshalBlobContext marshalling;
public TypeContext fieldType;
public DottedNameContext name;
public AtOptContext data;
public InitOptContext initializer;
[System.Diagnostics.DebuggerNonUserCode] public RepeatOptContext repeatOpt() {
return GetRuleContext<RepeatOptContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type() {
return GetRuleContext<TypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public AtOptContext atOpt() {
return GetRuleContext<AtOptContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public InitOptContext initOpt() {
return GetRuleContext<InitOptContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public FieldAttrContext[] fieldAttr() {
return GetRuleContexts<FieldAttrContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public FieldAttrContext fieldAttr(int i) {
return GetRuleContext<FieldAttrContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public MarshalBlobContext[] marshalBlob() {
return GetRuleContexts<MarshalBlobContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public MarshalBlobContext marshalBlob(int i) {
return GetRuleContext<MarshalBlobContext>(i);
}
public FieldDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_fieldDecl; } }
}
[RuleVersion(0)]
public FieldDeclContext fieldDecl() {
FieldDeclContext _localctx = new FieldDeclContext(Context, State);
EnterRule(_localctx, 204, RULE_fieldDecl);
_localctx.Builder = Actions.PrepareFieldDeclaration();
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.FieldDeclarationValue.Error;
try {
int _alt;
EnterOuterAlt(_localctx, 1);
{
State = 2298;
Match(T__120);
State = 2299;
_localctx.offset = repeatOpt();
State = 2311;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,98,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
State = 2309;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__15:
case T__50:
case T__51:
case T__62:
case T__63:
case T__64:
case T__65:
case T__67:
case T__68:
case T__69:
case T__122:
case T__123:
case T__124:
case T__125:
case T__126:
{
State = 2300;
_localctx.attribute = fieldAttr();
Actions.AddFieldAttribute(_localctx.Builder, _localctx.attribute.Value);
}
break;
case T__121:
{
State = 2303;
Match(T__121);
State = 2304;
Match(T__29);
State = 2305;
_localctx.marshalling = marshalBlob();
State = 2306;
Match(T__30);
Actions.SetFieldMarshalling(_localctx.Builder, _localctx.marshalling.Value);
}
break;
default:
throw new NoViableAltException(this);
}
}
}
State = 2313;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,98,Context);
}
State = 2314;
_localctx.fieldType = type();
State = 2315;
_localctx.name = dottedName();
State = 2316;
_localctx.data = atOpt();
State = 2317;
_localctx.initializer = initOpt();
_localctx.Value = Actions.CreateFieldDeclaration(
_localctx,
_localctx.Builder,
_localctx.InitialSyntaxErrorCount,
_localctx.offset,
_localctx.fieldType.Value,
_localctx.name.Value,
_localctx.data.Value,
_localctx.initializer.Value);
}
Context.Stop = TokenStream.LT(-1);
Actions.DefineField(_localctx, _localctx.Value);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class FieldAttrContext : ParserRuleContext {
public CILParser.AttributeValue<System.Reflection.FieldAttributes> Value;
public IToken attribute;
public Int32Context flags;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public FieldAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_fieldAttr; } }
}
[RuleVersion(0)]
public FieldAttrContext fieldAttr() {
FieldAttrContext _localctx = new FieldAttrContext(Context, State);
EnterRule(_localctx, 206, RULE_fieldAttr);
_localctx.Value = CILParser.AttributeValue<System.Reflection.FieldAttributes>.Empty;
try {
State = 2354;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__122:
EnterOuterAlt(_localctx, 1);
{
State = 2320;
_localctx.attribute = Match(T__122);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__50:
EnterOuterAlt(_localctx, 2);
{
State = 2322;
_localctx.attribute = Match(T__50);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__51:
EnterOuterAlt(_localctx, 3);
{
State = 2324;
_localctx.attribute = Match(T__51);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__62:
EnterOuterAlt(_localctx, 4);
{
State = 2326;
_localctx.attribute = Match(T__62);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__123:
EnterOuterAlt(_localctx, 5);
{
State = 2328;
_localctx.attribute = Match(T__123);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__68:
EnterOuterAlt(_localctx, 6);
{
State = 2330;
_localctx.attribute = Match(T__68);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__67:
EnterOuterAlt(_localctx, 7);
{
State = 2332;
_localctx.attribute = Match(T__67);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__63:
EnterOuterAlt(_localctx, 8);
{
State = 2334;
_localctx.attribute = Match(T__63);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__64:
EnterOuterAlt(_localctx, 9);
{
State = 2336;
_localctx.attribute = Match(T__64);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__65:
EnterOuterAlt(_localctx, 10);
{
State = 2338;
_localctx.attribute = Match(T__65);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__124:
EnterOuterAlt(_localctx, 11);
{
State = 2340;
_localctx.attribute = Match(T__124);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__125:
EnterOuterAlt(_localctx, 12);
{
State = 2342;
_localctx.attribute = Match(T__125);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__126:
EnterOuterAlt(_localctx, 13);
{
State = 2344;
_localctx.attribute = Match(T__126);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__15:
EnterOuterAlt(_localctx, 14);
{
State = 2346;
_localctx.attribute = Match(T__15);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__69:
EnterOuterAlt(_localctx, 15);
{
State = 2348;
Match(T__69);
State = 2349;
Match(T__29);
State = 2350;
_localctx.flags = int32();
State = 2351;
Match(T__30);
_localctx.Value = Actions.CreateRawFieldAttribute((_localctx.flags!=null?(_localctx.flags.Start):null));
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class AtOptContext : ParserRuleContext {
public string? Value;
public IdContext name;
public Int32Context offset;
[System.Diagnostics.DebuggerNonUserCode] public IdContext id() {
return GetRuleContext<IdContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public AtOptContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_atOpt; } }
}
[RuleVersion(0)]
public AtOptContext atOpt() {
AtOptContext _localctx = new AtOptContext(Context, State);
EnterRule(_localctx, 208, RULE_atOpt);
_localctx.Value = null;
try {
State = 2365;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,100,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2357;
Match(T__43);
State = 2358;
_localctx.name = id();
_localctx.Value = Actions.GetFieldDataName((_localctx.name!=null?(_localctx.name.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2361;
Match(T__43);
State = 2362;
_localctx.offset = int32();
_localctx.Value = Actions.GetFieldDataOffset((_localctx.offset!=null?(_localctx.offset.Start):null));
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class InitOptContext : ParserRuleContext {
public CILParser.FieldInitializerValue Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public FieldInitContext initializer;
[System.Diagnostics.DebuggerNonUserCode] public FieldInitContext fieldInit() {
return GetRuleContext<FieldInitContext>(0);
}
public InitOptContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_initOpt; } }
}
[RuleVersion(0)]
public InitOptContext initOpt() {
InitOptContext _localctx = new InitOptContext(Context, State);
EnterRule(_localctx, 210, RULE_initOpt);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.FieldInitializerValue.Empty;
try {
State = 2372;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case Eof:
case T__0:
case T__1:
case T__2:
case T__3:
case T__4:
case T__5:
case T__6:
case T__7:
case T__8:
case T__9:
case T__10:
case T__11:
case T__12:
case T__13:
case T__14:
case T__15:
case T__16:
case T__17:
case T__18:
case T__19:
case T__20:
case T__22:
case T__23:
case T__24:
case T__25:
case T__26:
case T__28:
case T__31:
case T__32:
case T__34:
case T__40:
case T__47:
case T__48:
case T__49:
case T__72:
case T__73:
case T__116:
case T__117:
case T__119:
case T__120:
case T__127:
case T__132:
case T__138:
case T__157:
case T__164:
case MODULE:
case INSTANCE:
case UNMANAGED:
case PARAM:
case SQSTRING:
case PP_DEFINE:
case PP_UNDEF:
case PP_IFDEF:
case PP_IFNDEF:
case PP_ELSE:
case PP_ENDIF:
case PP_INCLUDE:
case MRESOURCE:
case INSTR_NONE:
case INSTR_VAR:
case INSTR_I:
case INSTR_I8:
case INSTR_R:
case INSTR_METHOD:
case INSTR_SIG:
case INSTR_BRTARGET:
case INSTR_SWITCH:
case INSTR_TYPE:
case INSTR_STRING:
case INSTR_FIELD:
case INSTR_TOK:
case DOTTEDNAME:
case ID:
case PERMISSION:
case PERMISSIONSET:
case EMITBYTE:
case MAXSTACK:
case ENTRYPOINT:
case ZEROINIT:
case LOCALS:
case EXPORT:
case OVERRIDE:
case VTENTRY:
EnterOuterAlt(_localctx, 1);
{
}
break;
case T__35:
EnterOuterAlt(_localctx, 2);
{
State = 2368;
Match(T__35);
State = 2369;
_localctx.initializer = fieldInit();
_localctx.Value = _localctx.initializer.Value;
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
ExitRule();
}
return _localctx;
}
public partial class RepeatOptContext : ParserRuleContext {
public int Value;
public bool HasValue;
public Int32Context offset;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public RepeatOptContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_repeatOpt; } }
}
[RuleVersion(0)]
public RepeatOptContext repeatOpt() {
RepeatOptContext _localctx = new RepeatOptContext(Context, State);
EnterRule(_localctx, 212, RULE_repeatOpt);
try {
State = 2380;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__0:
case T__15:
case T__38:
case T__50:
case T__51:
case T__62:
case T__63:
case T__64:
case T__65:
case T__67:
case T__68:
case T__69:
case T__89:
case T__121:
case T__122:
case T__123:
case T__124:
case T__125:
case T__126:
case ELLIPSIS:
case CHAR:
case STRING:
case BOOL:
case INT8:
case INT16:
case INT32_:
case INT64_:
case FLOAT32:
case FLOAT64_:
case UINT8:
case UINT16:
case UINT32:
case UINT64:
case OBJECT:
case VALUE:
case VALUETYPE:
case VOID:
case METHOD:
case INSTANCE:
case TYPE_PARAMETER:
case METHOD_TYPE_PARAMETER:
case TYPEDREF:
case SQSTRING:
case DOTTEDNAME:
case ID:
EnterOuterAlt(_localctx, 1);
{
}
break;
case T__41:
EnterOuterAlt(_localctx, 2);
{
State = 2375;
Match(T__41);
State = 2376;
_localctx.offset = int32();
State = 2377;
Match(T__42);
Actions.SetFieldOffset(_localctx, (_localctx.offset!=null?(_localctx.offset.Start):null));
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class EventHeadContext : ParserRuleContext {
public CILParser.EventHeaderValue Value;
public int InitialSyntaxErrorCount;
public CILParser.EventHeaderBuilder Builder;
public EventAttrContext attribute;
public TypeSpecContext eventType;
public DottedNameContext name;
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec() {
return GetRuleContext<TypeSpecContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public EventAttrContext[] eventAttr() {
return GetRuleContexts<EventAttrContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public EventAttrContext eventAttr(int i) {
return GetRuleContext<EventAttrContext>(i);
}
public EventHeadContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_eventHead; } }
}
[RuleVersion(0)]
public EventHeadContext eventHead() {
EventHeadContext _localctx = new EventHeadContext(Context, State);
EnterRule(_localctx, 214, RULE_eventHead);
_localctx.Builder = new CILParser.EventHeaderBuilder();
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.EventHeaderValue.Error;
int _la;
try {
State = 2407;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,105,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2382;
Match(T__127);
State = 2388;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__67 || _la==T__68) {
{
{
State = 2383;
_localctx.attribute = eventAttr();
Actions.AddEventAttribute(_localctx.Builder, _localctx.attribute.Value);
}
}
State = 2390;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 2391;
_localctx.eventType = typeSpec();
State = 2392;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateEventHeader(
_localctx,
_localctx.Builder,
_localctx.InitialSyntaxErrorCount,
_localctx.eventType.Value,
_localctx.name.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2395;
Match(T__127);
State = 2401;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__67 || _la==T__68) {
{
{
State = 2396;
_localctx.attribute = eventAttr();
Actions.AddEventAttribute(_localctx.Builder, _localctx.attribute.Value);
}
}
State = 2403;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 2404;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateEventHeader(
_localctx,
_localctx.Builder,
_localctx.InitialSyntaxErrorCount,
null,
_localctx.name.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class EventAttrContext : ParserRuleContext {
public CILParser.AttributeValue<System.Reflection.EventAttributes> Value;
public IToken attribute;
public EventAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_eventAttr; } }
}
[RuleVersion(0)]
public EventAttrContext eventAttr() {
EventAttrContext _localctx = new EventAttrContext(Context, State);
EnterRule(_localctx, 216, RULE_eventAttr);
_localctx.Value = CILParser.AttributeValue<System.Reflection.EventAttributes>.Empty;
try {
State = 2413;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__68:
EnterOuterAlt(_localctx, 1);
{
State = 2409;
_localctx.attribute = Match(T__68);
_localctx.Value = Actions.CreateEventAttribute(_localctx.attribute);
}
break;
case T__67:
EnterOuterAlt(_localctx, 2);
{
State = 2411;
_localctx.attribute = Match(T__67);
_localctx.Value = Actions.CreateEventAttribute(_localctx.attribute);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class EventDeclsContext : ParserRuleContext {
public CILParser.EventBodyValue Body;
[System.Diagnostics.DebuggerNonUserCode] public EventDeclContext[] eventDecl() {
return GetRuleContexts<EventDeclContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public EventDeclContext eventDecl(int i) {
return GetRuleContext<EventDeclContext>(i);
}
public EventDeclsContext(ParserRuleContext parent, int invokingState) : base(parent, invokingState) { }
public EventDeclsContext(ParserRuleContext parent, int invokingState, CILParser.EventBodyValue Body)
: base(parent, invokingState)
{
this.Body = Body;
}
public override int RuleIndex { get { return RULE_eventDecls; } }
}
[RuleVersion(0)]
public EventDeclsContext eventDecls(CILParser.EventBodyValue Body) {
EventDeclsContext _localctx = new EventDeclsContext(Context, State, Body);
EnterRule(_localctx, 218, RULE_eventDecls);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2418;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 38788988928L) != 0) || ((((_la - 73)) & ~0x3f) == 0 && ((1L << (_la - 73)) & 1080863910568919043L) != 0) || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 105555249070081L) != 0)) {
{
{
State = 2415;
eventDecl(_localctx.Body);
}
}
State = 2420;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class EventDeclContext : ParserRuleContext {
public CILParser.EventBodyValue Body;
public MethodRefContext accessor;
public ExtSourceSpecContext source;
public CustomAttrDeclContext attribute;
public LanguageDeclContext language;
[System.Diagnostics.DebuggerNonUserCode] public MethodRefContext methodRef() {
return GetRuleContext<MethodRefContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ExtSourceSpecContext extSourceSpec() {
return GetRuleContext<ExtSourceSpecContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomAttrDeclContext customAttrDecl() {
return GetRuleContext<CustomAttrDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public LanguageDeclContext languageDecl() {
return GetRuleContext<LanguageDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CompControlContext compControl() {
return GetRuleContext<CompControlContext>(0);
}
public EventDeclContext(ParserRuleContext parent, int invokingState) : base(parent, invokingState) { }
public EventDeclContext(ParserRuleContext parent, int invokingState, CILParser.EventBodyValue Body)
: base(parent, invokingState)
{
this.Body = Body;
}
public override int RuleIndex { get { return RULE_eventDecl; } }
}
[RuleVersion(0)]
public EventDeclContext eventDecl(CILParser.EventBodyValue Body) {
EventDeclContext _localctx = new EventDeclContext(Context, State, Body);
EnterRule(_localctx, 220, RULE_eventDecl);
try {
State = 2447;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__128:
EnterOuterAlt(_localctx, 1);
{
State = 2421;
Match(T__128);
State = 2422;
_localctx.accessor = methodRef();
Actions.AddEventAdder(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__129:
EnterOuterAlt(_localctx, 2);
{
State = 2425;
Match(T__129);
State = 2426;
_localctx.accessor = methodRef();
Actions.AddEventRemover(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__130:
EnterOuterAlt(_localctx, 3);
{
State = 2429;
Match(T__130);
State = 2430;
_localctx.accessor = methodRef();
Actions.AddEventRaiser(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__131:
EnterOuterAlt(_localctx, 4);
{
State = 2433;
Match(T__131);
State = 2434;
_localctx.accessor = methodRef();
Actions.AddEventOther(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__72:
case T__73:
EnterOuterAlt(_localctx, 5);
{
State = 2437;
_localctx.source = extSourceSpec();
Actions.ProcessEventSourceDirective(_localctx.Body, _localctx.source);
}
break;
case T__15:
case T__34:
case INSTANCE:
case SQSTRING:
case DOTTEDNAME:
case ID:
EnterOuterAlt(_localctx, 6);
{
State = 2440;
_localctx.attribute = customAttrDecl();
Actions.AddEventCustomAttribute(_localctx.Body, _localctx.attribute);
}
break;
case T__26:
EnterOuterAlt(_localctx, 7);
{
State = 2443;
_localctx.language = languageDecl();
Actions.ProcessEventLanguageDirective(_localctx.Body, _localctx.language);
}
break;
case T__31:
case PP_DEFINE:
case PP_UNDEF:
case PP_IFDEF:
case PP_IFNDEF:
case PP_ELSE:
case PP_ENDIF:
case PP_INCLUDE:
EnterOuterAlt(_localctx, 8);
{
State = 2446;
compControl();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class PropHeadContext : ParserRuleContext {
public CILParser.PropertyHeaderValue Value;
public int InitialSyntaxErrorCount;
public CILParser.PropertyHeaderBuilder Builder;
public PropAttrContext attribute;
public CallConvContext convention;
public TypeContext propertyType;
public DottedNameContext name;
public SigArgsContext arguments;
public InitOptContext initializer;
[System.Diagnostics.DebuggerNonUserCode] public CallConvContext callConv() {
return GetRuleContext<CallConvContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type() {
return GetRuleContext<TypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SigArgsContext sigArgs() {
return GetRuleContext<SigArgsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public InitOptContext initOpt() {
return GetRuleContext<InitOptContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public PropAttrContext[] propAttr() {
return GetRuleContexts<PropAttrContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public PropAttrContext propAttr(int i) {
return GetRuleContext<PropAttrContext>(i);
}
public PropHeadContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_propHead; } }
}
[RuleVersion(0)]
public PropHeadContext propHead() {
PropHeadContext _localctx = new PropHeadContext(Context, State);
EnterRule(_localctx, 222, RULE_propHead);
_localctx.Builder = new CILParser.PropertyHeaderBuilder();
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.PropertyHeaderValue.Error;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2449;
Match(T__132);
State = 2455;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__67 || _la==T__68) {
{
{
State = 2450;
_localctx.attribute = propAttr();
Actions.AddPropertyAttribute(_localctx.Builder, _localctx.attribute.Value);
}
}
State = 2457;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 2458;
_localctx.convention = callConv();
State = 2459;
_localctx.propertyType = type();
State = 2460;
_localctx.name = dottedName();
State = 2461;
_localctx.arguments = sigArgs();
State = 2462;
_localctx.initializer = initOpt();
_localctx.Value = Actions.CreatePropertyHeader(
_localctx,
_localctx.Builder,
_localctx.InitialSyntaxErrorCount,
_localctx.convention.Value,
_localctx.propertyType.Value,
_localctx.name.Value,
_localctx.arguments.Value,
_localctx.initializer.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class PropAttrContext : ParserRuleContext {
public CILParser.AttributeValue<System.Reflection.PropertyAttributes> Value;
public IToken attribute;
public PropAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_propAttr; } }
}
[RuleVersion(0)]
public PropAttrContext propAttr() {
PropAttrContext _localctx = new PropAttrContext(Context, State);
EnterRule(_localctx, 224, RULE_propAttr);
_localctx.Value = CILParser.AttributeValue<System.Reflection.PropertyAttributes>.Empty;
try {
State = 2469;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__68:
EnterOuterAlt(_localctx, 1);
{
State = 2465;
_localctx.attribute = Match(T__68);
_localctx.Value = Actions.CreatePropertyAttribute(_localctx.attribute);
}
break;
case T__67:
EnterOuterAlt(_localctx, 2);
{
State = 2467;
_localctx.attribute = Match(T__67);
_localctx.Value = Actions.CreatePropertyAttribute(_localctx.attribute);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class PropDeclsContext : ParserRuleContext {
public CILParser.PropertyBodyValue Body;
[System.Diagnostics.DebuggerNonUserCode] public PropDeclContext[] propDecl() {
return GetRuleContexts<PropDeclContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public PropDeclContext propDecl(int i) {
return GetRuleContext<PropDeclContext>(i);
}
public PropDeclsContext(ParserRuleContext parent, int invokingState) : base(parent, invokingState) { }
public PropDeclsContext(ParserRuleContext parent, int invokingState, CILParser.PropertyBodyValue Body)
: base(parent, invokingState)
{
this.Body = Body;
}
public override int RuleIndex { get { return RULE_propDecls; } }
}
[RuleVersion(0)]
public PropDeclsContext propDecls(CILParser.PropertyBodyValue Body) {
PropDeclsContext _localctx = new PropDeclsContext(Context, State, Body);
EnterRule(_localctx, 226, RULE_propDecls);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2474;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 38788988928L) != 0) || ((((_la - 73)) & ~0x3f) == 0 && ((1L << (_la - 73)) & 7493989779944505347L) != 0) || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 105555249070081L) != 0)) {
{
{
State = 2471;
propDecl(_localctx.Body);
}
}
State = 2476;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class PropDeclContext : ParserRuleContext {
public CILParser.PropertyBodyValue Body;
public MethodRefContext accessor;
public CustomAttrDeclContext attribute;
public ExtSourceSpecContext source;
public LanguageDeclContext language;
[System.Diagnostics.DebuggerNonUserCode] public MethodRefContext methodRef() {
return GetRuleContext<MethodRefContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomAttrDeclContext customAttrDecl() {
return GetRuleContext<CustomAttrDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ExtSourceSpecContext extSourceSpec() {
return GetRuleContext<ExtSourceSpecContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public LanguageDeclContext languageDecl() {
return GetRuleContext<LanguageDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CompControlContext compControl() {
return GetRuleContext<CompControlContext>(0);
}
public PropDeclContext(ParserRuleContext parent, int invokingState) : base(parent, invokingState) { }
public PropDeclContext(ParserRuleContext parent, int invokingState, CILParser.PropertyBodyValue Body)
: base(parent, invokingState)
{
this.Body = Body;
}
public override int RuleIndex { get { return RULE_propDecl; } }
}
[RuleVersion(0)]
public PropDeclContext propDecl(CILParser.PropertyBodyValue Body) {
PropDeclContext _localctx = new PropDeclContext(Context, State, Body);
EnterRule(_localctx, 228, RULE_propDecl);
try {
State = 2499;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__133:
EnterOuterAlt(_localctx, 1);
{
State = 2477;
Match(T__133);
State = 2478;
_localctx.accessor = methodRef();
Actions.AddPropertySetter(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__134:
EnterOuterAlt(_localctx, 2);
{
State = 2481;
Match(T__134);
State = 2482;
_localctx.accessor = methodRef();
Actions.AddPropertyGetter(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__131:
EnterOuterAlt(_localctx, 3);
{
State = 2485;
Match(T__131);
State = 2486;
_localctx.accessor = methodRef();
Actions.AddPropertyOther(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__15:
case T__34:
case INSTANCE:
case SQSTRING:
case DOTTEDNAME:
case ID:
EnterOuterAlt(_localctx, 4);
{
State = 2489;
_localctx.attribute = customAttrDecl();
Actions.AddPropertyCustomAttribute(_localctx.Body, _localctx.attribute);
}
break;
case T__72:
case T__73:
EnterOuterAlt(_localctx, 5);
{
State = 2492;
_localctx.source = extSourceSpec();
Actions.ProcessPropertySourceDirective(_localctx.Body, _localctx.source);
}
break;
case T__26:
EnterOuterAlt(_localctx, 6);
{
State = 2495;
_localctx.language = languageDecl();
Actions.ProcessPropertyLanguageDirective(_localctx.Body, _localctx.language);
}
break;
case T__31:
case PP_DEFINE:
case PP_UNDEF:
case PP_IFDEF:
case PP_IFNDEF:
case PP_ELSE:
case PP_ENDIF:
case PP_INCLUDE:
EnterOuterAlt(_localctx, 7);
{
State = 2498;
compControl();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class MarshalClauseContext : ParserRuleContext {
public CILParser.MarshallingDescriptorValue Value;
public MarshalBlobContext value;
[System.Diagnostics.DebuggerNonUserCode] public MarshalBlobContext marshalBlob() {
return GetRuleContext<MarshalBlobContext>(0);
}
public MarshalClauseContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_marshalClause; } }
}
[RuleVersion(0)]
public MarshalClauseContext marshalClause() {
MarshalClauseContext _localctx = new MarshalClauseContext(Context, State);
EnterRule(_localctx, 230, RULE_marshalClause);
_localctx.Value = CILParser.MarshallingDescriptorValue.Empty;
try {
State = 2508;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__0:
case T__1:
case T__2:
case T__3:
case T__4:
case T__5:
case T__6:
case T__7:
case T__8:
case T__9:
case T__10:
case T__11:
case T__12:
case T__13:
case T__14:
case T__15:
case T__27:
case T__30:
case T__115:
case T__154:
case INSTANCE:
case UNMANAGED:
case SQSTRING:
case DOTTEDNAME:
case ID:
EnterOuterAlt(_localctx, 1);
{
_localctx.Value = Actions.CreateEmptyMarshallingDescriptor();
}
break;
case T__121:
EnterOuterAlt(_localctx, 2);
{
State = 2502;
Match(T__121);
State = 2503;
Match(T__29);
State = 2504;
_localctx.value = marshalBlob();
State = 2505;
Match(T__30);
_localctx.Value = Actions.CompleteMarshalClause(_localctx.value.Value);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class MarshalBlobContext : ParserRuleContext {
public CILParser.MarshallingDescriptorValue Value;
public CILParser.MarshalBlobBuilder Builder;
public NativeTypeContext nativeValue;
public HexbyteContext rawByte;
[System.Diagnostics.DebuggerNonUserCode] public NativeTypeContext nativeType() {
return GetRuleContext<NativeTypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public HexbyteContext[] hexbyte() {
return GetRuleContexts<HexbyteContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public HexbyteContext hexbyte(int i) {
return GetRuleContext<HexbyteContext>(i);
}
public MarshalBlobContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_marshalBlob; } }
}
[RuleVersion(0)]
public MarshalBlobContext marshalBlob() {
MarshalBlobContext _localctx = new MarshalBlobContext(Context, State);
EnterRule(_localctx, 232, RULE_marshalBlob);
_localctx.Builder = new CILParser.MarshalBlobBuilder();
int _la;
try {
State = 2523;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__15:
case T__30:
case T__33:
case T__41:
case T__61:
case T__89:
case BOOL:
case INT8:
case INT16:
case INT32_:
case INT64_:
case FLOAT32:
case FLOAT64_:
case UINT8:
case UINT16:
case UINT32:
case UINT64:
case INT:
case UINT:
case VOID:
case CUSTOM:
case FIXED:
case VARIANT:
case CURRENCY:
case SYSCHAR:
case ERROR:
case DECIMAL:
case DATE:
case BSTR:
case LPSTR:
case LPWSTR:
case LPTSTR:
case OBJECTREF:
case IUNKNOWN:
case IDISPATCH:
case STRUCT:
case INTERFACE:
case SAFEARRAY:
case BYVALSTR:
case ANSI:
case TBSTR:
case METHOD:
case LPSTRUCT:
case INSTANCE:
case ARRAY_TYPE_NO_BOUNDS:
case PTR:
case SQSTRING:
case DOTTEDNAME:
case ID:
EnterOuterAlt(_localctx, 1);
{
State = 2510;
_localctx.nativeValue = nativeType();
Actions.SetMarshalBlobNativeType(_localctx.Builder, _localctx.nativeValue.Value);
}
break;
case T__16:
EnterOuterAlt(_localctx, 2);
{
State = 2513;
Match(T__16);
State = 2517;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
do {
{
{
State = 2514;
_localctx.rawByte = hexbyte();
Actions.AddMarshalBlobByte(_localctx.Builder, _localctx.rawByte.Value);
}
}
State = 2519;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
} while ( _la==INT32 || _la==ID || _la==HEXBYTE );
State = 2521;
Match(T__17);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = Actions.CreateMarshallingDescriptor(_localctx.Builder);
ExitRule();
}
return _localctx;
}
public partial class ParamAttrContext : ParserRuleContext {
public int Value;
public ParamAttrElementContext element;
[System.Diagnostics.DebuggerNonUserCode] public ParamAttrElementContext[] paramAttrElement() {
return GetRuleContexts<ParamAttrElementContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public ParamAttrElementContext paramAttrElement(int i) {
return GetRuleContext<ParamAttrElementContext>(i);
}
public ParamAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_paramAttr; } }
}
[RuleVersion(0)]
public ParamAttrContext paramAttr() {
ParamAttrContext _localctx = new ParamAttrContext(Context, State);
EnterRule(_localctx, 234, RULE_paramAttr);
_localctx.Value = 0;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2530;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__41) {
{
{
State = 2525;
_localctx.element = paramAttrElement();
_localctx.Value = Actions.AddParameterAttribute(
_localctx.Value,
_localctx.element.Value,
_localctx.element.ShouldAppend);
}
}
State = 2532;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ParamAttrElementContext : ParserRuleContext {
public int Value;
public bool ShouldAppend;
public IToken attribute;
public Int32Context raw;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public ParamAttrElementContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_paramAttrElement; } }
}
[RuleVersion(0)]
public ParamAttrElementContext paramAttrElement() {
ParamAttrElementContext _localctx = new ParamAttrElementContext(Context, State);
EnterRule(_localctx, 236, RULE_paramAttrElement);
try {
State = 2550;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,117,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2533;
Match(T__41);
State = 2534;
_localctx.attribute = Match(T__135);
State = 2535;
Match(T__42);
Actions.SetParameterAttributeElement(_localctx, _localctx.attribute);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2537;
Match(T__41);
State = 2538;
_localctx.attribute = Match(T__136);
State = 2539;
Match(T__42);
Actions.SetParameterAttributeElement(_localctx, _localctx.attribute);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2541;
Match(T__41);
State = 2542;
_localctx.attribute = Match(T__137);
State = 2543;
Match(T__42);
Actions.SetParameterAttributeElement(_localctx, _localctx.attribute);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 2545;
Match(T__41);
State = 2546;
_localctx.raw = int32();
State = 2547;
Match(T__42);
Actions.SetRawParameterAttributeElement(_localctx, (_localctx.raw!=null?(_localctx.raw.Start):null));
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class MethodHeadContext : ParserRuleContext {
public CILParser.MethodHeaderValue Value;
public int InitialSyntaxErrorCount;
public CILParser.MethodHeaderBuilder Builder;
public MethAttrContext attribute;
public PinvImplContext pInvoke;
public CallConvContext convention;
public ParamAttrContext returnAttributes;
public TypeContext returnType;
public MarshalClauseContext returnMarshalling;
public MethodNameContext name;
public TyparsClauseContext genericParameters;
public SigArgsContext arguments;
public ImplAttrContext implementation;
[System.Diagnostics.DebuggerNonUserCode] public CallConvContext callConv() {
return GetRuleContext<CallConvContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ParamAttrContext paramAttr() {
return GetRuleContext<ParamAttrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type() {
return GetRuleContext<TypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MarshalClauseContext marshalClause() {
return GetRuleContext<MarshalClauseContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MethodNameContext methodName() {
return GetRuleContext<MethodNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TyparsClauseContext typarsClause() {
return GetRuleContext<TyparsClauseContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SigArgsContext sigArgs() {
return GetRuleContext<SigArgsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MethAttrContext[] methAttr() {
return GetRuleContexts<MethAttrContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public MethAttrContext methAttr(int i) {
return GetRuleContext<MethAttrContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public PinvImplContext[] pinvImpl() {
return GetRuleContexts<PinvImplContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public PinvImplContext pinvImpl(int i) {
return GetRuleContext<PinvImplContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public ImplAttrContext[] implAttr() {
return GetRuleContexts<ImplAttrContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public ImplAttrContext implAttr(int i) {
return GetRuleContext<ImplAttrContext>(i);
}
public MethodHeadContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_methodHead; } }
}
[RuleVersion(0)]
public MethodHeadContext methodHead() {
MethodHeadContext _localctx = new MethodHeadContext(Context, State);
EnterRule(_localctx, 238, RULE_methodHead);
_localctx.Builder = Actions.PrepareMethodHeader();
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.MethodHeaderValue.Error;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2552;
Match(T__138);
State = 2561;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (((((_la - 51)) & ~0x3f) == 0 && ((1L << (_la - 51)) & 978955L) != 0) || ((((_la - 123)) & ~0x3f) == 0 && ((1L << (_la - 123)) & 33423365L) != 0)) {
{
State = 2559;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__50:
case T__51:
case T__53:
case T__62:
case T__63:
case T__64:
case T__65:
case T__67:
case T__68:
case T__69:
case T__122:
case T__124:
case T__139:
case T__140:
case T__141:
case T__142:
case T__143:
case T__144:
case T__145:
{
State = 2553;
_localctx.attribute = methAttr();
Actions.AddMethodAttribute(_localctx.Builder, _localctx.attribute.Value);
}
break;
case T__146:
{
State = 2556;
_localctx.pInvoke = pinvImpl();
Actions.AddPInvoke(_localctx.Builder, _localctx.pInvoke.Value);
}
break;
default:
throw new NoViableAltException(this);
}
}
State = 2563;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 2564;
_localctx.convention = callConv();
State = 2565;
_localctx.returnAttributes = paramAttr();
State = 2566;
_localctx.returnType = type();
State = 2567;
_localctx.returnMarshalling = marshalClause();
State = 2568;
_localctx.name = methodName();
State = 2569;
_localctx.genericParameters = typarsClause();
State = 2570;
_localctx.arguments = sigArgs();
State = 2576;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 32766L) != 0) || _la==T__69 || _la==T__155 || _la==UNMANAGED) {
{
{
State = 2571;
_localctx.implementation = implAttr();
Actions.AddMethodImplementationAttribute(_localctx.Builder, _localctx.implementation.Value);
}
}
State = 2578;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
_localctx.Value = Actions.CreateMethodHeader(
_localctx,
_localctx.Builder,
_localctx.InitialSyntaxErrorCount,
_localctx.convention.Value,
_localctx.returnAttributes.Value,
_localctx.returnType.Value,
_localctx.returnMarshalling.Value,
_localctx.name.Value,
_localctx.genericParameters.Value,
_localctx.arguments.Value);
}
Context.Stop = TokenStream.LT(-1);
Actions.BeginMethod(_localctx, _localctx.Value);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class MethAttrContext : ParserRuleContext {
public CILParser.AttributeValue<System.Reflection.MethodAttributes> Value;
public IToken attribute;
public Int32Context flags;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public MethAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_methAttr; } }
}
[RuleVersion(0)]
public MethAttrContext methAttr() {
MethAttrContext _localctx = new MethAttrContext(Context, State);
EnterRule(_localctx, 240, RULE_methAttr);
_localctx.Value = CILParser.AttributeValue<System.Reflection.MethodAttributes>.Empty;
try {
State = 2623;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__122:
EnterOuterAlt(_localctx, 1);
{
State = 2581;
_localctx.attribute = Match(T__122);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__50:
EnterOuterAlt(_localctx, 2);
{
State = 2583;
_localctx.attribute = Match(T__50);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__51:
EnterOuterAlt(_localctx, 3);
{
State = 2585;
_localctx.attribute = Match(T__51);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__62:
EnterOuterAlt(_localctx, 4);
{
State = 2587;
_localctx.attribute = Match(T__62);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__139:
EnterOuterAlt(_localctx, 5);
{
State = 2589;
_localctx.attribute = Match(T__139);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__67:
EnterOuterAlt(_localctx, 6);
{
State = 2591;
_localctx.attribute = Match(T__67);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__140:
EnterOuterAlt(_localctx, 7);
{
State = 2593;
_localctx.attribute = Match(T__140);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__141:
EnterOuterAlt(_localctx, 8);
{
State = 2595;
_localctx.attribute = Match(T__141);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__53:
EnterOuterAlt(_localctx, 9);
{
State = 2597;
_localctx.attribute = Match(T__53);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__63:
EnterOuterAlt(_localctx, 10);
{
State = 2599;
_localctx.attribute = Match(T__63);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__64:
EnterOuterAlt(_localctx, 11);
{
State = 2601;
_localctx.attribute = Match(T__64);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__65:
EnterOuterAlt(_localctx, 12);
{
State = 2603;
_localctx.attribute = Match(T__65);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__124:
EnterOuterAlt(_localctx, 13);
{
State = 2605;
_localctx.attribute = Match(T__124);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__142:
EnterOuterAlt(_localctx, 14);
{
State = 2607;
_localctx.attribute = Match(T__142);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__143:
EnterOuterAlt(_localctx, 15);
{
State = 2609;
_localctx.attribute = Match(T__143);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__68:
EnterOuterAlt(_localctx, 16);
{
State = 2611;
_localctx.attribute = Match(T__68);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__144:
EnterOuterAlt(_localctx, 17);
{
State = 2613;
_localctx.attribute = Match(T__144);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__145:
EnterOuterAlt(_localctx, 18);
{
State = 2615;
_localctx.attribute = Match(T__145);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__69:
EnterOuterAlt(_localctx, 19);
{
State = 2617;
Match(T__69);
State = 2618;
Match(T__29);
State = 2619;
_localctx.flags = int32();
State = 2620;
Match(T__30);
_localctx.Value = Actions.CreateRawMethodAttribute((_localctx.flags!=null?(_localctx.flags.Start):null));
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class PinvImplContext : ParserRuleContext {
public CILParser.PInvokeValue Value;
public CILParser.PInvokeBuilder Builder;
public CompQstringContext module;
public CompQstringContext entryPoint;
public PinvAttrContext attribute;
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext[] compQstring() {
return GetRuleContexts<CompQstringContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext compQstring(int i) {
return GetRuleContext<CompQstringContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public PinvAttrContext[] pinvAttr() {
return GetRuleContexts<PinvAttrContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public PinvAttrContext pinvAttr(int i) {
return GetRuleContext<PinvAttrContext>(i);
}
public PinvImplContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_pinvImpl; } }
}
[RuleVersion(0)]
public PinvImplContext pinvImpl() {
PinvImplContext _localctx = new PinvImplContext(Context, State);
EnterRule(_localctx, 242, RULE_pinvImpl);
_localctx.Builder = new CILParser.PInvokeBuilder();
int _la;
try {
State = 2648;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,125,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2625;
Match(T__146);
State = 2626;
Match(T__29);
State = 2635;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==QSTRING) {
{
State = 2627;
_localctx.module = compQstring();
Actions.SetPInvokeModule(_localctx.Builder, _localctx.module.Value);
State = 2633;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__33) {
{
State = 2629;
Match(T__33);
State = 2630;
_localctx.entryPoint = compQstring();
Actions.SetPInvokeEntryPoint(_localctx.Builder, _localctx.entryPoint.Value);
}
}
}
}
State = 2642;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (((((_la - 57)) & ~0x3f) == 0 && ((1L << (_la - 57)) & 8195L) != 0) || ((((_la - 148)) & ~0x3f) == 0 && ((1L << (_la - 148)) & 79L) != 0) || ((((_la - 223)) & ~0x3f) == 0 && ((1L << (_la - 223)) & 251658241L) != 0)) {
{
{
State = 2637;
_localctx.attribute = pinvAttr();
Actions.AddPInvokeAttribute(_localctx.Builder, _localctx.attribute.Value);
}
}
State = 2644;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 2645;
Match(T__30);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2646;
Match(T__146);
State = 2647;
Match(T__84);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = Actions.CreatePInvoke(_localctx.Builder);
ExitRule();
}
return _localctx;
}
public partial class PinvAttrContext : ParserRuleContext {
public CILParser.AttributeValue<System.Reflection.MethodImportAttributes> Value;
public IToken attribute;
public IToken setting;
public Int32Context flags;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ANSI() { return GetToken(CILParser.ANSI, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CDECL() { return GetToken(CILParser.CDECL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STDCALL() { return GetToken(CILParser.STDCALL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode THISCALL() { return GetToken(CILParser.THISCALL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FASTCALL() { return GetToken(CILParser.FASTCALL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public PinvAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_pinvAttr; } }
}
[RuleVersion(0)]
public PinvAttrContext pinvAttr() {
PinvAttrContext _localctx = new PinvAttrContext(Context, State);
EnterRule(_localctx, 244, RULE_pinvAttr);
_localctx.Value = CILParser.AttributeValue<System.Reflection.MethodImportAttributes>.Empty;
try {
State = 2692;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,126,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2650;
_localctx.attribute = Match(T__147);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2652;
_localctx.attribute = Match(ANSI);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2654;
_localctx.attribute = Match(T__56);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 2656;
_localctx.attribute = Match(T__57);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 2658;
_localctx.attribute = Match(T__148);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 2660;
_localctx.attribute = Match(T__149);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 2662;
_localctx.attribute = Match(CDECL);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 2664;
_localctx.attribute = Match(STDCALL);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 2666;
_localctx.attribute = Match(THISCALL);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 2668;
_localctx.attribute = Match(FASTCALL);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 2670;
Match(T__150);
State = 2671;
Match(T__74);
State = 2672;
_localctx.setting = Match(T__151);
_localctx.Value = Actions.CreateBestFitPInvokeAttribute(_localctx.setting);
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 2674;
Match(T__150);
State = 2675;
Match(T__74);
State = 2676;
_localctx.setting = Match(T__152);
_localctx.Value = Actions.CreateBestFitPInvokeAttribute(_localctx.setting);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 2678;
Match(T__153);
State = 2679;
Match(T__74);
State = 2680;
_localctx.setting = Match(T__151);
_localctx.Value = Actions.CreateCharMapErrorPInvokeAttribute(_localctx.setting);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 2682;
Match(T__153);
State = 2683;
Match(T__74);
State = 2684;
_localctx.setting = Match(T__152);
_localctx.Value = Actions.CreateCharMapErrorPInvokeAttribute(_localctx.setting);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 2686;
Match(T__69);
State = 2687;
Match(T__29);
State = 2688;
_localctx.flags = int32();
State = 2689;
Match(T__30);
_localctx.Value = Actions.CreateRawPInvokeAttribute((_localctx.flags!=null?(_localctx.flags.Start):null));
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class MethodNameContext : ParserRuleContext {
public string Value;
public IToken ctorName;
public IToken cctorName;
public DottedNameContext dotted;
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
public MethodNameContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_methodName; } }
}
[RuleVersion(0)]
public MethodNameContext methodName() {
MethodNameContext _localctx = new MethodNameContext(Context, State);
EnterRule(_localctx, 246, RULE_methodName);
_localctx.Value = string.Empty;
try {
State = 2701;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__115:
EnterOuterAlt(_localctx, 1);
{
State = 2694;
_localctx.ctorName = Match(T__115);
_localctx.Value = Actions.GetMethodName(_localctx.ctorName);
}
break;
case T__154:
EnterOuterAlt(_localctx, 2);
{
State = 2696;
_localctx.cctorName = Match(T__154);
_localctx.Value = Actions.GetMethodName(_localctx.cctorName);
}
break;
case T__15:
case INSTANCE:
case SQSTRING:
case DOTTEDNAME:
case ID:
EnterOuterAlt(_localctx, 3);
{
State = 2698;
_localctx.dotted = dottedName();
_localctx.Value = _localctx.dotted.Value;
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ImplAttrContext : ParserRuleContext {
public CILParser.AttributeValue<System.Reflection.MethodImplAttributes> Value;
public IToken attribute;
public Int32Context flags;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UNMANAGED() { return GetToken(CILParser.UNMANAGED, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public ImplAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_implAttr; } }
}
[RuleVersion(0)]
public ImplAttrContext implAttr() {
ImplAttrContext _localctx = new ImplAttrContext(Context, State);
EnterRule(_localctx, 248, RULE_implAttr);
_localctx.Value = CILParser.AttributeValue<System.Reflection.MethodImplAttributes>.Empty;
try {
State = 2741;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__0:
EnterOuterAlt(_localctx, 1);
{
State = 2703;
_localctx.attribute = Match(T__0);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__1:
EnterOuterAlt(_localctx, 2);
{
State = 2705;
_localctx.attribute = Match(T__1);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__155:
EnterOuterAlt(_localctx, 3);
{
State = 2707;
_localctx.attribute = Match(T__155);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__2:
EnterOuterAlt(_localctx, 4);
{
State = 2709;
_localctx.attribute = Match(T__2);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__3:
EnterOuterAlt(_localctx, 5);
{
State = 2711;
_localctx.attribute = Match(T__3);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case UNMANAGED:
EnterOuterAlt(_localctx, 6);
{
State = 2713;
_localctx.attribute = Match(UNMANAGED);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__4:
EnterOuterAlt(_localctx, 7);
{
State = 2715;
_localctx.attribute = Match(T__4);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__5:
EnterOuterAlt(_localctx, 8);
{
State = 2717;
_localctx.attribute = Match(T__5);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__6:
EnterOuterAlt(_localctx, 9);
{
State = 2719;
_localctx.attribute = Match(T__6);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__7:
EnterOuterAlt(_localctx, 10);
{
State = 2721;
_localctx.attribute = Match(T__7);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__8:
EnterOuterAlt(_localctx, 11);
{
State = 2723;
_localctx.attribute = Match(T__8);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__9:
EnterOuterAlt(_localctx, 12);
{
State = 2725;
_localctx.attribute = Match(T__9);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__10:
EnterOuterAlt(_localctx, 13);
{
State = 2727;
_localctx.attribute = Match(T__10);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__11:
EnterOuterAlt(_localctx, 14);
{
State = 2729;
_localctx.attribute = Match(T__11);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__12:
EnterOuterAlt(_localctx, 15);
{
State = 2731;
_localctx.attribute = Match(T__12);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__13:
EnterOuterAlt(_localctx, 16);
{
State = 2733;
_localctx.attribute = Match(T__13);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__69:
EnterOuterAlt(_localctx, 17);
{
State = 2735;
Match(T__69);
State = 2736;
Match(T__29);
State = 2737;
_localctx.flags = int32();
State = 2738;
Match(T__30);
_localctx.Value = Actions.CreateRawMethodImplementationAttribute((_localctx.flags!=null?(_localctx.flags.Start):null));
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class MethodDeclsContext : ParserRuleContext {
[System.Diagnostics.DebuggerNonUserCode] public MethodDeclContext[] methodDecl() {
return GetRuleContexts<MethodDeclContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public MethodDeclContext methodDecl(int i) {
return GetRuleContext<MethodDeclContext>(i);
}
public MethodDeclsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_methodDecls; } }
}
[RuleVersion(0)]
public MethodDeclsContext methodDecls() {
MethodDeclsContext _localctx = new MethodDeclsContext(Context, State);
EnterRule(_localctx, 250, RULE_methodDecls);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2746;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 38789119998L) != 0) || _la==T__72 || _la==T__73 || _la==T__157 || _la==T__164 || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 2303696760354115601L) != 0)) {
{
{
State = 2743;
methodDecl();
}
}
State = 2748;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class MethodDeclContext : ParserRuleContext {
public Int32Context value;
public IToken directive;
public DataDeclContext declaration;
public SecDeclContext security;
public ExtSourceSpecContext source;
public LanguageDeclContext language;
public CustomDescrInMethodBodyContext attribute;
[System.Diagnostics.DebuggerNonUserCode] public InstrContext instr() {
return GetRuleContext<InstrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode EMITBYTE() { return GetToken(CILParser.EMITBYTE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SehBlockContext sehBlock() {
return GetRuleContext<SehBlockContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode MAXSTACK() { return GetToken(CILParser.MAXSTACK, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ENTRYPOINT() { return GetToken(CILParser.ENTRYPOINT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ZEROINIT() { return GetToken(CILParser.ZEROINIT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public LabelDeclContext labelDecl() {
return GetRuleContext<LabelDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ScopeBlockContext scopeBlock() {
return GetRuleContext<ScopeBlockContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public LocalsDeclContext localsDecl() {
return GetRuleContext<LocalsDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DataDeclContext dataDecl() {
return GetRuleContext<DataDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SecDeclContext secDecl() {
return GetRuleContext<SecDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ExtSourceSpecContext extSourceSpec() {
return GetRuleContext<ExtSourceSpecContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public LanguageDeclContext languageDecl() {
return GetRuleContext<LanguageDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomDescrInMethodBodyContext customDescrInMethodBody() {
return GetRuleContext<CustomDescrInMethodBodyContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CompControlContext compControl() {
return GetRuleContext<CompControlContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ExportDeclContext exportDecl() {
return GetRuleContext<ExportDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public VtentryDeclContext vtentryDecl() {
return GetRuleContext<VtentryDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public OverrideDeclContext overrideDecl() {
return GetRuleContext<OverrideDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ParameterDeclContext parameterDecl() {
return GetRuleContext<ParameterDeclContext>(0);
}
public MethodDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_methodDecl; } }
}
[RuleVersion(0)]
public MethodDeclContext methodDecl() {
MethodDeclContext _localctx = new MethodDeclContext(Context, State);
EnterRule(_localctx, 252, RULE_methodDecl);
try {
State = 2786;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case INSTR_NONE:
case INSTR_VAR:
case INSTR_I:
case INSTR_I8:
case INSTR_R:
case INSTR_METHOD:
case INSTR_SIG:
case INSTR_BRTARGET:
case INSTR_SWITCH:
case INSTR_TYPE:
case INSTR_STRING:
case INSTR_FIELD:
case INSTR_TOK:
EnterOuterAlt(_localctx, 1);
{
State = 2749;
instr();
}
break;
case EMITBYTE:
EnterOuterAlt(_localctx, 2);
{
State = 2750;
Match(EMITBYTE);
State = 2751;
_localctx.value = int32();
Actions.EmitByte((_localctx.value!=null?(_localctx.value.Start):null));
}
break;
case T__157:
EnterOuterAlt(_localctx, 3);
{
State = 2754;
sehBlock();
}
break;
case MAXSTACK:
EnterOuterAlt(_localctx, 4);
{
State = 2755;
Match(MAXSTACK);
State = 2756;
_localctx.value = int32();
Actions.SetMaxStack((_localctx.value!=null?(_localctx.value.Start):null));
}
break;
case ENTRYPOINT:
EnterOuterAlt(_localctx, 5);
{
State = 2759;
_localctx.directive = Match(ENTRYPOINT);
Actions.SetEntryPoint(_localctx.directive);
}
break;
case ZEROINIT:
EnterOuterAlt(_localctx, 6);
{
State = 2761;
Match(ZEROINIT);
Actions.SetZeroInit();
}
break;
case T__0:
case T__1:
case T__2:
case T__3:
case T__4:
case T__5:
case T__6:
case T__7:
case T__8:
case T__9:
case T__10:
case T__11:
case T__12:
case T__13:
case T__14:
case INSTANCE:
case UNMANAGED:
case SQSTRING:
case ID:
EnterOuterAlt(_localctx, 7);
{
State = 2763;
labelDecl();
}
break;
case T__16:
EnterOuterAlt(_localctx, 8);
{
State = 2764;
scopeBlock();
}
break;
case LOCALS:
EnterOuterAlt(_localctx, 9);
{
State = 2765;
localsDecl();
}
break;
case T__164:
EnterOuterAlt(_localctx, 10);
{
State = 2766;
_localctx.declaration = dataDecl();
Actions.ProcessMethodDataDeclaration(_localctx.declaration);
}
break;
case PERMISSION:
case PERMISSIONSET:
EnterOuterAlt(_localctx, 11);
{
State = 2769;
_localctx.security = secDecl();
Actions.ProcessMethodSecurityDeclaration(_localctx.security);
}
break;
case T__72:
case T__73:
EnterOuterAlt(_localctx, 12);
{
State = 2772;
_localctx.source = extSourceSpec();
Actions.ProcessMethodSourceDirective(_localctx.source);
}
break;
case T__26:
EnterOuterAlt(_localctx, 13);
{
State = 2775;
_localctx.language = languageDecl();
Actions.ProcessMethodLanguageDirective(_localctx.language);
}
break;
case T__34:
EnterOuterAlt(_localctx, 14);
{
State = 2778;
_localctx.attribute = customDescrInMethodBody();
Actions.ProcessMethodCustomAttribute(_localctx.attribute);
}
break;
case T__31:
case PP_DEFINE:
case PP_UNDEF:
case PP_IFDEF:
case PP_IFNDEF:
case PP_ELSE:
case PP_ENDIF:
case PP_INCLUDE:
EnterOuterAlt(_localctx, 15);
{
State = 2781;
compControl();
}
break;
case EXPORT:
EnterOuterAlt(_localctx, 16);
{
State = 2782;
exportDecl();
}
break;
case VTENTRY:
EnterOuterAlt(_localctx, 17);
{
State = 2783;
vtentryDecl();
}
break;
case OVERRIDE:
EnterOuterAlt(_localctx, 18);
{
State = 2784;
overrideDecl();
}
break;
case PARAM:
EnterOuterAlt(_localctx, 19);
{
State = 2785;
parameterDecl();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class LocalsDeclContext : ParserRuleContext {
public int InitialSyntaxErrorCount;
public IToken initialize;
public SigArgsContext arguments;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode LOCALS() { return GetToken(CILParser.LOCALS, 0); }
[System.Diagnostics.DebuggerNonUserCode] public SigArgsContext sigArgs() {
return GetRuleContext<SigArgsContext>(0);
}
public LocalsDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_localsDecl; } }
}
[RuleVersion(0)]
public LocalsDeclContext localsDecl() {
LocalsDeclContext _localctx = new LocalsDeclContext(Context, State);
EnterRule(_localctx, 254, RULE_localsDecl);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2788;
Match(LOCALS);
State = 2790;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__156) {
{
State = 2789;
_localctx.initialize = Match(T__156);
}
}
State = 2792;
_localctx.arguments = sigArgs();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndLocalsDirective(_localctx, _localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class ExportDeclContext : ParserRuleContext {
public int InitialSyntaxErrorCount;
public Int32Context ordinal;
public IdContext alias;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode EXPORT() { return GetToken(CILParser.EXPORT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public IdContext id() {
return GetRuleContext<IdContext>(0);
}
public ExportDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_exportDecl; } }
}
[RuleVersion(0)]
public ExportDeclContext exportDecl() {
ExportDeclContext _localctx = new ExportDeclContext(Context, State);
EnterRule(_localctx, 256, RULE_exportDecl);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2794;
Match(EXPORT);
State = 2795;
Match(T__41);
State = 2796;
_localctx.ordinal = int32();
State = 2797;
Match(T__42);
State = 2800;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__33) {
{
State = 2798;
Match(T__33);
State = 2799;
_localctx.alias = id();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndExportDirective(_localctx, _localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class VtentryDeclContext : ParserRuleContext {
public int InitialSyntaxErrorCount;
public Int32Context table;
public Int32Context slot;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VTENTRY() { return GetToken(CILParser.VTENTRY, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context[] int32() {
return GetRuleContexts<Int32Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32(int i) {
return GetRuleContext<Int32Context>(i);
}
public VtentryDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_vtentryDecl; } }
}
[RuleVersion(0)]
public VtentryDeclContext vtentryDecl() {
VtentryDeclContext _localctx = new VtentryDeclContext(Context, State);
EnterRule(_localctx, 258, RULE_vtentryDecl);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2802;
Match(VTENTRY);
State = 2803;
_localctx.table = int32();
State = 2804;
Match(T__74);
State = 2805;
_localctx.slot = int32();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndVTableEntryDirective(_localctx, _localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class OverrideDeclContext : ParserRuleContext {
public int InitialSyntaxErrorCount;
public TypeSpecOrScopeContext owner;
public MethodNameContext name;
public CallConvContext convention;
public TypeContext returnType;
public GenArityContext arity;
public SigArgsContext arguments;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OVERRIDE() { return GetToken(CILParser.OVERRIDE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DCOLON() { return GetToken(CILParser.DCOLON, 0); }
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecOrScopeContext typeSpecOrScope() {
return GetRuleContext<TypeSpecOrScopeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MethodNameContext methodName() {
return GetRuleContext<MethodNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode METHOD() { return GetToken(CILParser.METHOD, 0); }
[System.Diagnostics.DebuggerNonUserCode] public CallConvContext callConv() {
return GetRuleContext<CallConvContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public TypeContext type() {
return GetRuleContext<TypeContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public GenArityContext genArity() {
return GetRuleContext<GenArityContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SigArgsContext sigArgs() {
return GetRuleContext<SigArgsContext>(0);
}
public OverrideDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_overrideDecl; } }
}
[RuleVersion(0)]
public OverrideDeclContext overrideDecl() {
OverrideDeclContext _localctx = new OverrideDeclContext(Context, State);
EnterRule(_localctx, 260, RULE_overrideDecl);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
try {
State = 2822;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,133,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2807;
Match(OVERRIDE);
State = 2808;
_localctx.owner = typeSpecOrScope();
State = 2809;
Match(DCOLON);
State = 2810;
_localctx.name = methodName();
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2812;
Match(OVERRIDE);
State = 2813;
Match(METHOD);
State = 2814;
_localctx.convention = callConv();
State = 2815;
_localctx.returnType = type();
State = 2816;
_localctx.owner = typeSpecOrScope();
State = 2817;
Match(DCOLON);
State = 2818;
_localctx.name = methodName();
State = 2819;
_localctx.arity = genArity();
State = 2820;
_localctx.arguments = sigArgs();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndOverrideDirective(_localctx, _localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class ParameterDeclContext : ParserRuleContext {
public int InitialSyntaxErrorCount;
public System.Collections.Immutable.ImmutableArray<CILParser.CustomAttributeApplicationValue>.Builder Attributes;
public Int32Context genericIndex;
public CustomAttrDeclContext attribute;
public DottedNameContext genericName;
public Int32Context constraintIndex;
public TypeSpecContext constraintType;
public DottedNameContext constraintName;
public Int32Context parameterIndex;
public InitOptContext initializer;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PARAM() { return GetToken(CILParser.PARAM, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TYPE() { return GetToken(CILParser.TYPE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomAttrDeclContext[] customAttrDecl() {
return GetRuleContexts<CustomAttrDeclContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public CustomAttrDeclContext customAttrDecl(int i) {
return GetRuleContext<CustomAttrDeclContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CONSTRAINT() { return GetToken(CILParser.CONSTRAINT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec() {
return GetRuleContext<TypeSpecContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public InitOptContext initOpt() {
return GetRuleContext<InitOptContext>(0);
}
public ParameterDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_parameterDecl; } }
}
[RuleVersion(0)]
public ParameterDeclContext parameterDecl() {
ParameterDeclContext _localctx = new ParameterDeclContext(Context, State);
EnterRule(_localctx, 262, RULE_parameterDecl);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Attributes = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.CustomAttributeApplicationValue>();
try {
int _alt;
State = 2889;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,139,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2824;
Match(PARAM);
State = 2825;
Match(TYPE);
State = 2826;
Match(T__41);
State = 2827;
_localctx.genericIndex = int32();
State = 2828;
Match(T__42);
State = 2834;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,134,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 2829;
_localctx.attribute = customAttrDecl();
Actions.AddCustomAttributeApplication(_localctx.Attributes, _localctx.attribute);
}
}
}
State = 2836;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,134,Context);
}
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2837;
Match(PARAM);
State = 2838;
Match(TYPE);
State = 2839;
_localctx.genericName = dottedName();
State = 2845;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,135,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 2840;
_localctx.attribute = customAttrDecl();
Actions.AddCustomAttributeApplication(_localctx.Attributes, _localctx.attribute);
}
}
}
State = 2847;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,135,Context);
}
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2848;
Match(PARAM);
State = 2849;
Match(CONSTRAINT);
State = 2850;
Match(T__41);
State = 2851;
_localctx.constraintIndex = int32();
State = 2852;
Match(T__42);
State = 2853;
Match(T__27);
State = 2854;
_localctx.constraintType = typeSpec();
State = 2860;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,136,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 2855;
_localctx.attribute = customAttrDecl();
Actions.AddCustomAttributeApplication(_localctx.Attributes, _localctx.attribute);
}
}
}
State = 2862;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,136,Context);
}
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 2863;
Match(PARAM);
State = 2864;
Match(CONSTRAINT);
State = 2865;
_localctx.constraintName = dottedName();
State = 2866;
Match(T__27);
State = 2867;
_localctx.constraintType = typeSpec();
State = 2873;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,137,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 2868;
_localctx.attribute = customAttrDecl();
Actions.AddCustomAttributeApplication(_localctx.Attributes, _localctx.attribute);
}
}
}
State = 2875;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,137,Context);
}
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 2876;
Match(PARAM);
State = 2877;
Match(T__41);
State = 2878;
_localctx.parameterIndex = int32();
State = 2879;
Match(T__42);
State = 2880;
_localctx.initializer = initOpt();
State = 2886;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,138,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 2881;
_localctx.attribute = customAttrDecl();
Actions.AddCustomAttributeApplication(_localctx.Attributes, _localctx.attribute);
}
}
}
State = 2888;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,138,Context);
}
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndParameterDirective(
_localctx,
_localctx.Attributes.ToImmutable(),
_localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class LabelDeclContext : ParserRuleContext {
public IdContext name;
[System.Diagnostics.DebuggerNonUserCode] public IdContext id() {
return GetRuleContext<IdContext>(0);
}
public LabelDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_labelDecl; } }
}
[RuleVersion(0)]
public LabelDeclContext labelDecl() {
LabelDeclContext _localctx = new LabelDeclContext(Context, State);
EnterRule(_localctx, 264, RULE_labelDecl);
try {
EnterOuterAlt(_localctx, 1);
{
State = 2891;
_localctx.name = id();
State = 2892;
Match(T__74);
Actions.DefineLabel((_localctx.name!=null?(_localctx.name.Start):null));
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class CustomDescrInMethodBodyContext : ParserRuleContext {
public CILParser.CustomAttributeDeclarationValue Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public CustomDescrContext directAttribute;
public CustomDescrWithOwnerContext ownedAttribute;
[System.Diagnostics.DebuggerNonUserCode] public CustomDescrContext customDescr() {
return GetRuleContext<CustomDescrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomDescrWithOwnerContext customDescrWithOwner() {
return GetRuleContext<CustomDescrWithOwnerContext>(0);
}
public CustomDescrInMethodBodyContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_customDescrInMethodBody; } }
}
[RuleVersion(0)]
public CustomDescrInMethodBodyContext customDescrInMethodBody() {
CustomDescrInMethodBodyContext _localctx = new CustomDescrInMethodBodyContext(Context, State);
EnterRule(_localctx, 266, RULE_customDescrInMethodBody);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.CustomAttributeDeclarationValue.Error;
try {
State = 2901;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,140,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2895;
_localctx.directAttribute = customDescr();
_localctx.Value = Actions.CreateCustomAttributeDeclaration(_localctx.directAttribute.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2898;
_localctx.ownedAttribute = customDescrWithOwner();
_localctx.Value = Actions.CreateCustomAttributeDeclaration(_localctx.ownedAttribute.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
ExitRule();
}
return _localctx;
}
public partial class ScopeBlockContext : ParserRuleContext {
[System.Diagnostics.DebuggerNonUserCode] public MethodDeclsContext methodDecls() {
return GetRuleContext<MethodDeclsContext>(0);
}
public ScopeBlockContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_scopeBlock; } }
}
[RuleVersion(0)]
public ScopeBlockContext scopeBlock() {
ScopeBlockContext _localctx = new ScopeBlockContext(Context, State);
EnterRule(_localctx, 268, RULE_scopeBlock);
Actions.BeginScope(_localctx);
try {
EnterOuterAlt(_localctx, 1);
{
State = 2903;
Match(T__16);
State = 2904;
methodDecls();
State = 2905;
Match(T__17);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndScope(_localctx);
ExitRule();
}
return _localctx;
}
public partial class SehBlockContext : ParserRuleContext {
public int InitialSyntaxErrorCount;
public TryBlockContext tryRange;
public SehClausesContext clauses;
[System.Diagnostics.DebuggerNonUserCode] public TryBlockContext tryBlock() {
return GetRuleContext<TryBlockContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SehClausesContext sehClauses() {
return GetRuleContext<SehClausesContext>(0);
}
public SehBlockContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_sehBlock; } }
}
[RuleVersion(0)]
public SehBlockContext sehBlock() {
SehBlockContext _localctx = new SehBlockContext(Context, State);
EnterRule(_localctx, 270, RULE_sehBlock);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2907;
_localctx.tryRange = tryBlock();
State = 2908;
_localctx.clauses = sehClauses();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndExceptionBlock(_localctx, _localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class SehClausesContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.ExceptionClauseValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.ExceptionClauseValue>.Builder Builder;
public SehClauseContext clause;
[System.Diagnostics.DebuggerNonUserCode] public SehClauseContext[] sehClause() {
return GetRuleContexts<SehClauseContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public SehClauseContext sehClause(int i) {
return GetRuleContext<SehClauseContext>(i);
}
public SehClausesContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_sehClauses; } }
}
[RuleVersion(0)]
public SehClausesContext sehClauses() {
SehClausesContext _localctx = new SehClausesContext(Context, State);
EnterRule(_localctx, 272, RULE_sehClauses);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.ExceptionClauseValue>();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2913;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
do {
{
{
State = 2910;
_localctx.clause = sehClause();
_localctx.Builder.Add(_localctx.clause.Value);
}
}
State = 2915;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
} while ( ((((_la - 160)) & ~0x3f) == 0 && ((1L << (_la - 160)) & 15L) != 0) );
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class TryBlockContext : ParserRuleContext {
public CILParser.ExceptionRangeValue Value;
public ScopeBlockContext body;
public IdContext startLabel;
public IdContext endLabel;
public Int32Context startOffset;
public Int32Context endOffset;
[System.Diagnostics.DebuggerNonUserCode] public ScopeBlockContext scopeBlock() {
return GetRuleContext<ScopeBlockContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public IdContext[] id() {
return GetRuleContexts<IdContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public IdContext id(int i) {
return GetRuleContext<IdContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context[] int32() {
return GetRuleContexts<Int32Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32(int i) {
return GetRuleContext<Int32Context>(i);
}
public TryBlockContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_tryBlock; } }
}
[RuleVersion(0)]
public TryBlockContext tryBlock() {
TryBlockContext _localctx = new TryBlockContext(Context, State);
EnterRule(_localctx, 274, RULE_tryBlock);
_localctx.Value = CILParser.ExceptionRangeValue.Invalid;
try {
State = 2933;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,142,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2917;
Match(T__157);
State = 2918;
_localctx.body = scopeBlock();
_localctx.Value = Actions.CreateScopeExceptionRange(_localctx.body);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2921;
Match(T__157);
State = 2922;
_localctx.startLabel = id();
State = 2923;
Match(T__158);
State = 2924;
_localctx.endLabel = id();
_localctx.Value = Actions.CreateLabelExceptionRange((_localctx.startLabel!=null?(_localctx.startLabel.Start):null), (_localctx.endLabel!=null?(_localctx.endLabel.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2927;
Match(T__157);
State = 2928;
_localctx.startOffset = int32();
State = 2929;
Match(T__158);
State = 2930;
_localctx.endOffset = int32();
_localctx.Value = Actions.CreateOffsetExceptionRange((_localctx.startOffset!=null?(_localctx.startOffset.Start):null), (_localctx.endOffset!=null?(_localctx.endOffset.Start):null));
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class SehClauseContext : ParserRuleContext {
public CILParser.ExceptionClauseValue Value;
public CatchClauseContext caught;
public HandlerBlockContext handler;
public FilterClauseContext filtered;
[System.Diagnostics.DebuggerNonUserCode] public CatchClauseContext catchClause() {
return GetRuleContext<CatchClauseContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public HandlerBlockContext handlerBlock() {
return GetRuleContext<HandlerBlockContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public FilterClauseContext filterClause() {
return GetRuleContext<FilterClauseContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public FinallyClauseContext finallyClause() {
return GetRuleContext<FinallyClauseContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public FaultClauseContext faultClause() {
return GetRuleContext<FaultClauseContext>(0);
}
public SehClauseContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_sehClause; } }
}
[RuleVersion(0)]
public SehClauseContext sehClause() {
SehClauseContext _localctx = new SehClauseContext(Context, State);
EnterRule(_localctx, 276, RULE_sehClause);
_localctx.Value = CILParser.ExceptionClauseValue.Invalid;
try {
State = 2951;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__160:
EnterOuterAlt(_localctx, 1);
{
State = 2935;
_localctx.caught = catchClause();
State = 2936;
_localctx.handler = handlerBlock();
_localctx.Value = Actions.CreateCatchExceptionClause(_localctx.caught.Value, _localctx.handler.Value);
}
break;
case T__159:
EnterOuterAlt(_localctx, 2);
{
State = 2939;
_localctx.filtered = filterClause();
State = 2940;
_localctx.handler = handlerBlock();
_localctx.Value = Actions.CreateFilterExceptionClause(_localctx.filtered.Value, _localctx.handler.Value);
}
break;
case T__161:
EnterOuterAlt(_localctx, 3);
{
State = 2943;
finallyClause();
State = 2944;
_localctx.handler = handlerBlock();
_localctx.Value = Actions.CreateFinallyExceptionClause(_localctx.handler.Value);
}
break;
case T__162:
EnterOuterAlt(_localctx, 4);
{
State = 2947;
faultClause();
State = 2948;
_localctx.handler = handlerBlock();
_localctx.Value = Actions.CreateFaultExceptionClause(_localctx.handler.Value);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class FilterClauseContext : ParserRuleContext {
public CILParser.ExceptionFilterValue Value;
public ScopeBlockContext body;
public IdContext label;
public Int32Context offset;
[System.Diagnostics.DebuggerNonUserCode] public ScopeBlockContext scopeBlock() {
return GetRuleContext<ScopeBlockContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public IdContext id() {
return GetRuleContext<IdContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public FilterClauseContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_filterClause; } }
}
[RuleVersion(0)]
public FilterClauseContext filterClause() {
FilterClauseContext _localctx = new FilterClauseContext(Context, State);
EnterRule(_localctx, 278, RULE_filterClause);
_localctx.Value = CILParser.ExceptionFilterValue.Invalid;
try {
State = 2965;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,144,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2953;
Match(T__159);
State = 2954;
_localctx.body = scopeBlock();
_localctx.Value = Actions.CreateScopeFilter(_localctx.body);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2957;
Match(T__159);
State = 2958;
_localctx.label = id();
_localctx.Value = Actions.CreateLabelFilter((_localctx.label!=null?(_localctx.label.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2961;
Match(T__159);
State = 2962;
_localctx.offset = int32();
_localctx.Value = Actions.CreateOffsetFilter((_localctx.offset!=null?(_localctx.offset.Start):null));
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class CatchClauseContext : ParserRuleContext {
public CILParser.CatchTypeValue Value;
public int InitialSyntaxErrorCount;
public TypeSpecContext catchType;
[System.Diagnostics.DebuggerNonUserCode] public TypeSpecContext typeSpec() {
return GetRuleContext<TypeSpecContext>(0);
}
public CatchClauseContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_catchClause; } }
}
[RuleVersion(0)]
public CatchClauseContext catchClause() {
CatchClauseContext _localctx = new CatchClauseContext(Context, State);
EnterRule(_localctx, 280, RULE_catchClause);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.CatchTypeValue.Invalid;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2967;
Match(T__160);
State = 2968;
_localctx.catchType = typeSpec();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = Actions.EndCatchClause(_localctx, _localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class FinallyClauseContext : ParserRuleContext {
public FinallyClauseContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_finallyClause; } }
}
[RuleVersion(0)]
public FinallyClauseContext finallyClause() {
FinallyClauseContext _localctx = new FinallyClauseContext(Context, State);
EnterRule(_localctx, 282, RULE_finallyClause);
try {
EnterOuterAlt(_localctx, 1);
{
State = 2970;
Match(T__161);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class FaultClauseContext : ParserRuleContext {
public FaultClauseContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_faultClause; } }
}
[RuleVersion(0)]
public FaultClauseContext faultClause() {
FaultClauseContext _localctx = new FaultClauseContext(Context, State);
EnterRule(_localctx, 284, RULE_faultClause);
try {
EnterOuterAlt(_localctx, 1);
{
State = 2972;
Match(T__162);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class HandlerBlockContext : ParserRuleContext {
public CILParser.ExceptionRangeValue Value;
public ScopeBlockContext body;
public IdContext startLabel;
public IdContext endLabel;
public Int32Context startOffset;
public Int32Context endOffset;
[System.Diagnostics.DebuggerNonUserCode] public ScopeBlockContext scopeBlock() {
return GetRuleContext<ScopeBlockContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public IdContext[] id() {
return GetRuleContexts<IdContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public IdContext id(int i) {
return GetRuleContext<IdContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context[] int32() {
return GetRuleContexts<Int32Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32(int i) {
return GetRuleContext<Int32Context>(i);
}
public HandlerBlockContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_handlerBlock; } }
}
[RuleVersion(0)]
public HandlerBlockContext handlerBlock() {
HandlerBlockContext _localctx = new HandlerBlockContext(Context, State);
EnterRule(_localctx, 286, RULE_handlerBlock);
_localctx.Value = CILParser.ExceptionRangeValue.Invalid;
try {
State = 2989;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,145,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2974;
_localctx.body = scopeBlock();
_localctx.Value = Actions.CreateScopeExceptionRange(_localctx.body);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2977;
Match(T__163);
State = 2978;
_localctx.startLabel = id();
State = 2979;
Match(T__158);
State = 2980;
_localctx.endLabel = id();
_localctx.Value = Actions.CreateLabelExceptionRange((_localctx.startLabel!=null?(_localctx.startLabel.Start):null), (_localctx.endLabel!=null?(_localctx.endLabel.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2983;
Match(T__163);
State = 2984;
_localctx.startOffset = int32();
State = 2985;
Match(T__158);
State = 2986;
_localctx.endOffset = int32();
_localctx.Value = Actions.CreateOffsetExceptionRange((_localctx.startOffset!=null?(_localctx.startOffset.Start):null), (_localctx.endOffset!=null?(_localctx.endOffset.Start):null));
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class DataDeclContext : ParserRuleContext {
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public CILParser.DataDeclarationBuilder Builder;
[System.Diagnostics.DebuggerNonUserCode] public DdHeadContext ddHead() {
return GetRuleContext<DdHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DdBodyContext ddBody() {
return GetRuleContext<DdBodyContext>(0);
}
public DataDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_dataDecl; } }
}
[RuleVersion(0)]
public DataDeclContext dataDecl() {
DataDeclContext _localctx = new DataDeclContext(Context, State);
EnterRule(_localctx, 288, RULE_dataDecl);
_localctx.Builder = Actions.CreateDataDeclaration(_localctx);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
try {
EnterOuterAlt(_localctx, 1);
{
State = 2991;
ddHead(_localctx.Builder);
State = 2992;
ddBody(_localctx.Builder);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
Actions.EndDataDeclaration(_localctx, _localctx.Builder, _localctx.InitialSyntaxErrorCount);
ExitRule();
}
return _localctx;
}
public partial class DdHeadContext : ParserRuleContext {
public CILParser.DataDeclarationBuilder Builder;
public TlsContext section;
public IdContext name;
[System.Diagnostics.DebuggerNonUserCode] public TlsContext tls() {
return GetRuleContext<TlsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public IdContext id() {
return GetRuleContext<IdContext>(0);
}
public DdHeadContext(ParserRuleContext parent, int invokingState) : base(parent, invokingState) { }
public DdHeadContext(ParserRuleContext parent, int invokingState, CILParser.DataDeclarationBuilder Builder)
: base(parent, invokingState)
{
this.Builder = Builder;
}
public override int RuleIndex { get { return RULE_ddHead; } }
}
[RuleVersion(0)]
public DdHeadContext ddHead(CILParser.DataDeclarationBuilder Builder) {
DdHeadContext _localctx = new DdHeadContext(Context, State, Builder);
EnterRule(_localctx, 290, RULE_ddHead);
try {
State = 3004;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,146,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2994;
Match(T__164);
State = 2995;
_localctx.section = tls();
State = 2996;
_localctx.name = id();
State = 2997;
Match(T__35);
Actions.SetDataDeclarationHeader(_localctx.Builder, _localctx.section.Value, (_localctx.name!=null?(_localctx.name.Start):null));
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3000;
Match(T__164);
State = 3001;
_localctx.section = tls();
Actions.SetAnonymousDataDeclarationHeader(_localctx.Builder, _localctx.section.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class TlsContext : ParserRuleContext {
public byte Value;
public TlsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_tls; } }
}
[RuleVersion(0)]
public TlsContext tls() {
TlsContext _localctx = new TlsContext(Context, State);
EnterRule(_localctx, 292, RULE_tls);
_localctx.Value = Actions.GetMappedDataSection();
try {
State = 3011;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,147,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3007;
Match(T__165);
_localctx.Value = Actions.GetTlsDataSection(_localctx);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3009;
Match(T__1);
_localctx.Value = Actions.GetCilDataSection();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class DdBodyContext : ParserRuleContext {
public CILParser.DataDeclarationBuilder Builder;
[System.Diagnostics.DebuggerNonUserCode] public DdItemListContext ddItemList() {
return GetRuleContext<DdItemListContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DdItemContext[] ddItem() {
return GetRuleContexts<DdItemContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public DdItemContext ddItem(int i) {
return GetRuleContext<DdItemContext>(i);
}
public DdBodyContext(ParserRuleContext parent, int invokingState) : base(parent, invokingState) { }
public DdBodyContext(ParserRuleContext parent, int invokingState, CILParser.DataDeclarationBuilder Builder)
: base(parent, invokingState)
{
this.Builder = Builder;
}
public override int RuleIndex { get { return RULE_ddBody; } }
}
[RuleVersion(0)]
public DdBodyContext ddBody(CILParser.DataDeclarationBuilder Builder) {
DdBodyContext _localctx = new DdBodyContext(Context, State, Builder);
EnterRule(_localctx, 294, RULE_ddBody);
int _la;
try {
State = 3022;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__16:
EnterOuterAlt(_localctx, 1);
{
State = 3013;
Match(T__16);
State = 3014;
ddItemList(_localctx.Builder);
State = 3015;
Match(T__17);
}
break;
case T__83:
case CHAR:
case INT8:
case INT16:
case INT32_:
case INT64_:
case FLOAT32:
case FLOAT64_:
case REF:
EnterOuterAlt(_localctx, 2);
{
State = 3018;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
do {
{
{
State = 3017;
ddItem(_localctx.Builder);
}
}
State = 3020;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
} while ( _la==T__83 || ((((_la - 180)) & ~0x3f) == 0 && ((1L << (_la - 180)) & 505L) != 0) || _la==REF );
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class DdItemListContext : ParserRuleContext {
public CILParser.DataDeclarationBuilder Builder;
[System.Diagnostics.DebuggerNonUserCode] public DdItemContext[] ddItem() {
return GetRuleContexts<DdItemContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public DdItemContext ddItem(int i) {
return GetRuleContext<DdItemContext>(i);
}
public DdItemListContext(ParserRuleContext parent, int invokingState) : base(parent, invokingState) { }
public DdItemListContext(ParserRuleContext parent, int invokingState, CILParser.DataDeclarationBuilder Builder)
: base(parent, invokingState)
{
this.Builder = Builder;
}
public override int RuleIndex { get { return RULE_ddItemList; } }
}
[RuleVersion(0)]
public DdItemListContext ddItemList(CILParser.DataDeclarationBuilder Builder) {
DdItemListContext _localctx = new DdItemListContext(Context, State, Builder);
EnterRule(_localctx, 296, RULE_ddItemList);
try {
int _alt;
EnterOuterAlt(_localctx, 1);
{
State = 3029;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,150,Context);
while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
State = 3024;
ddItem(_localctx.Builder);
State = 3025;
Match(T__27);
}
}
}
State = 3031;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,150,Context);
}
State = 3032;
ddItem(_localctx.Builder);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class DdItemCountContext : ParserRuleContext {
public CILParser.DataDeclarationBuilder Builder;
public int Value;
public Int32Context count;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
public DdItemCountContext(ParserRuleContext parent, int invokingState) : base(parent, invokingState) { }
public DdItemCountContext(ParserRuleContext parent, int invokingState, CILParser.DataDeclarationBuilder Builder)
: base(parent, invokingState)
{
this.Builder = Builder;
}
public override int RuleIndex { get { return RULE_ddItemCount; } }
}
[RuleVersion(0)]
public DdItemCountContext ddItemCount(CILParser.DataDeclarationBuilder Builder) {
DdItemCountContext _localctx = new DdItemCountContext(Context, State, Builder);
EnterRule(_localctx, 298, RULE_ddItemCount);
_localctx.Value = 1;
try {
State = 3040;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case Eof:
case T__0:
case T__1:
case T__2:
case T__3:
case T__4:
case T__5:
case T__6:
case T__7:
case T__8:
case T__9:
case T__10:
case T__11:
case T__12:
case T__13:
case T__14:
case T__15:
case T__16:
case T__17:
case T__18:
case T__19:
case T__20:
case T__22:
case T__23:
case T__24:
case T__25:
case T__26:
case T__27:
case T__28:
case T__31:
case T__32:
case T__34:
case T__40:
case T__47:
case T__48:
case T__49:
case T__72:
case T__73:
case T__83:
case T__116:
case T__117:
case T__119:
case T__120:
case T__127:
case T__132:
case T__138:
case T__157:
case T__164:
case CHAR:
case INT8:
case INT16:
case INT32_:
case INT64_:
case FLOAT32:
case FLOAT64_:
case MODULE:
case INSTANCE:
case UNMANAGED:
case PARAM:
case REF:
case SQSTRING:
case PP_DEFINE:
case PP_UNDEF:
case PP_IFDEF:
case PP_IFNDEF:
case PP_ELSE:
case PP_ENDIF:
case PP_INCLUDE:
case MRESOURCE:
case INSTR_NONE:
case INSTR_VAR:
case INSTR_I:
case INSTR_I8:
case INSTR_R:
case INSTR_METHOD:
case INSTR_SIG:
case INSTR_BRTARGET:
case INSTR_SWITCH:
case INSTR_TYPE:
case INSTR_STRING:
case INSTR_FIELD:
case INSTR_TOK:
case DOTTEDNAME:
case ID:
case PERMISSION:
case PERMISSIONSET:
case EMITBYTE:
case MAXSTACK:
case ENTRYPOINT:
case ZEROINIT:
case LOCALS:
case EXPORT:
case OVERRIDE:
case VTENTRY:
EnterOuterAlt(_localctx, 1);
{
}
break;
case T__41:
EnterOuterAlt(_localctx, 2);
{
State = 3035;
Match(T__41);
State = 3036;
_localctx.count = int32();
State = 3037;
Match(T__42);
_localctx.Value = Actions.ParseDataItemCount(_localctx.Builder, (_localctx.count!=null?(_localctx.count.Start):null));
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class DdItemContext : ParserRuleContext {
public CILParser.DataDeclarationBuilder Builder;
public CompQstringContext stringValue;
public IdContext target;
public BytesContext byteValue;
public IToken kind;
public Float64Context floatingValue;
public DdItemCountContext count;
public Int64Context int64Value;
public Int32Context integerValue;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CHAR() { return GetToken(CILParser.CHAR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PTR() { return GetToken(CILParser.PTR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext compQstring() {
return GetRuleContext<CompQstringContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode REF() { return GetToken(CILParser.REF, 0); }
[System.Diagnostics.DebuggerNonUserCode] public IdContext id() {
return GetRuleContext<IdContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public BytesContext bytes() {
return GetRuleContext<BytesContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public Float64Context float64() {
return GetRuleContext<Float64Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DdItemCountContext ddItemCount() {
return GetRuleContext<DdItemCountContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT32() { return GetToken(CILParser.FLOAT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT64_() { return GetToken(CILParser.FLOAT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT64_() { return GetToken(CILParser.INT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int64Context int64() {
return GetRuleContext<Int64Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT32_() { return GetToken(CILParser.INT32_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT16() { return GetToken(CILParser.INT16, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT8() { return GetToken(CILParser.INT8, 0); }
public DdItemContext(ParserRuleContext parent, int invokingState) : base(parent, invokingState) { }
public DdItemContext(ParserRuleContext parent, int invokingState, CILParser.DataDeclarationBuilder Builder)
: base(parent, invokingState)
{
this.Builder = Builder;
}
public override int RuleIndex { get { return RULE_ddItem; } }
}
[RuleVersion(0)]
public DdItemContext ddItem(CILParser.DataDeclarationBuilder Builder) {
DdItemContext _localctx = new DdItemContext(Context, State, Builder);
EnterRule(_localctx, 300, RULE_ddItem);
int _la;
try {
State = 3090;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,152,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3042;
Match(CHAR);
State = 3043;
Match(PTR);
State = 3044;
Match(T__29);
State = 3045;
_localctx.stringValue = compQstring();
State = 3046;
Match(T__30);
Actions.AddDataString(_localctx.Builder, _localctx.stringValue.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3049;
Match(REF);
State = 3050;
Match(T__29);
State = 3051;
_localctx.target = id();
State = 3052;
Match(T__30);
Actions.AddDataReference(_localctx.Builder, (_localctx.target!=null?(_localctx.target.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3055;
Match(REF);
State = 3056;
_localctx.target = id();
Actions.AddDataReference(_localctx.Builder, (_localctx.target!=null?(_localctx.target.Start):null));
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 3059;
Match(T__83);
State = 3060;
Match(T__29);
State = 3061;
_localctx.byteValue = bytes();
State = 3062;
Match(T__30);
Actions.AddDataBytes(_localctx.Builder, _localctx.byteValue.Value);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 3065;
_localctx.kind = TokenStream.LT(1);
_la = TokenStream.LA(1);
if ( !(_la==FLOAT32 || _la==FLOAT64_) ) {
_localctx.kind = ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
State = 3066;
Match(T__29);
State = 3067;
_localctx.floatingValue = float64();
State = 3068;
Match(T__30);
State = 3069;
_localctx.count = ddItemCount(_localctx.Builder);
Actions.AddFloatingPointData(_localctx.Builder, _localctx.kind, _localctx.floatingValue.Value, _localctx.count.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 3072;
_localctx.kind = Match(INT64_);
State = 3073;
Match(T__29);
State = 3074;
_localctx.int64Value = int64();
State = 3075;
Match(T__30);
State = 3076;
_localctx.count = ddItemCount(_localctx.Builder);
Actions.AddInt64Data(_localctx.Builder, _localctx.kind, (_localctx.int64Value!=null?(_localctx.int64Value.Start):null), _localctx.count.Value);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 3079;
_localctx.kind = TokenStream.LT(1);
_la = TokenStream.LA(1);
if ( !(((((_la - 183)) & ~0x3f) == 0 && ((1L << (_la - 183)) & 7L) != 0)) ) {
_localctx.kind = ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
State = 3080;
Match(T__29);
State = 3081;
_localctx.integerValue = int32();
State = 3082;
Match(T__30);
State = 3083;
_localctx.count = ddItemCount(_localctx.Builder);
Actions.AddIntegerData(_localctx.Builder, _localctx.kind, (_localctx.integerValue!=null?(_localctx.integerValue.Start):null), _localctx.count.Value);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 3086;
_localctx.kind = TokenStream.LT(1);
_la = TokenStream.LA(1);
if ( !(((((_la - 183)) & ~0x3f) == 0 && ((1L << (_la - 183)) & 63L) != 0)) ) {
_localctx.kind = ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
State = 3087;
_localctx.count = ddItemCount(_localctx.Builder);
Actions.AddZeroData(_localctx.Builder, _localctx.kind, _localctx.count.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class FieldSerInitContext : ParserRuleContext {
public System.Reflection.Metadata.BlobBuilder Value;
public Float64Context float32Value;
public Float64Context float64Value;
public Int32Context float32Bits;
public Int64Context float64Bits;
public IToken int64Type;
public Int64Context int64Value;
public IToken int32Type;
public Int32Context int32Value;
public IToken int16Type;
public Int32Context int16Value;
public IToken int8Type;
public Int32Context int8Value;
public IToken uint64Type;
public Int64Context uint64Value;
public IToken uint32Type;
public Int32Context uint32Value;
public IToken uint16Type;
public Int32Context uint16Value;
public IToken uint8Type;
public Int32Context uint8Value;
public IToken charType;
public Int32Context charValue;
public IToken boolType;
public TruefalseContext boolValue;
public BytesContext byteArrayValue;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT32() { return GetToken(CILParser.FLOAT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Float64Context float64() {
return GetRuleContext<Float64Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT64_() { return GetToken(CILParser.FLOAT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public Int64Context int64() {
return GetRuleContext<Int64Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT64_() { return GetToken(CILParser.INT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT32_() { return GetToken(CILParser.INT32_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT16() { return GetToken(CILParser.INT16, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT8() { return GetToken(CILParser.INT8, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT64() { return GetToken(CILParser.UINT64, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT32() { return GetToken(CILParser.UINT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT16() { return GetToken(CILParser.UINT16, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT8() { return GetToken(CILParser.UINT8, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CHAR() { return GetToken(CILParser.CHAR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BOOL() { return GetToken(CILParser.BOOL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public TruefalseContext truefalse() {
return GetRuleContext<TruefalseContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public BytesContext bytes() {
return GetRuleContext<BytesContext>(0);
}
public FieldSerInitContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_fieldSerInit; } }
}
[RuleVersion(0)]
public FieldSerInitContext fieldSerInit() {
FieldSerInitContext _localctx = new FieldSerInitContext(Context, State);
EnterRule(_localctx, 302, RULE_fieldSerInit);
try {
State = 3182;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,153,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3092;
Match(FLOAT32);
State = 3093;
Match(T__29);
State = 3094;
_localctx.float32Value = float64();
State = 3095;
Match(T__30);
_localctx.Value = Actions.CreateFloat32SerializedInitializer(_localctx.float32Value, _localctx.float32Value.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3098;
Match(FLOAT64_);
State = 3099;
Match(T__29);
State = 3100;
_localctx.float64Value = float64();
State = 3101;
Match(T__30);
_localctx.Value = Actions.CreateFloat64SerializedInitializer(_localctx.float64Value, _localctx.float64Value.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3104;
Match(FLOAT32);
State = 3105;
Match(T__29);
State = 3106;
_localctx.float32Bits = int32();
State = 3107;
Match(T__30);
_localctx.Value = Actions.CreateFloat32BitsSerializedInitializer((_localctx.float32Bits!=null?(_localctx.float32Bits.Start):null));
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 3110;
Match(FLOAT64_);
State = 3111;
Match(T__29);
State = 3112;
_localctx.float64Bits = int64();
State = 3113;
Match(T__30);
_localctx.Value = Actions.CreateFloat64BitsSerializedInitializer((_localctx.float64Bits!=null?(_localctx.float64Bits.Start):null));
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 3116;
_localctx.int64Type = Match(INT64_);
State = 3117;
Match(T__29);
State = 3118;
_localctx.int64Value = int64();
State = 3119;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.int64Type, (_localctx.int64Value!=null?(_localctx.int64Value.Start):null));
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 3122;
_localctx.int32Type = Match(INT32_);
State = 3123;
Match(T__29);
State = 3124;
_localctx.int32Value = int32();
State = 3125;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.int32Type, (_localctx.int32Value!=null?(_localctx.int32Value.Start):null));
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 3128;
_localctx.int16Type = Match(INT16);
State = 3129;
Match(T__29);
State = 3130;
_localctx.int16Value = int32();
State = 3131;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.int16Type, (_localctx.int16Value!=null?(_localctx.int16Value.Start):null));
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 3134;
_localctx.int8Type = Match(INT8);
State = 3135;
Match(T__29);
State = 3136;
_localctx.int8Value = int32();
State = 3137;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.int8Type, (_localctx.int8Value!=null?(_localctx.int8Value.Start):null));
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 3140;
_localctx.uint64Type = Match(UINT64);
State = 3141;
Match(T__29);
State = 3142;
_localctx.uint64Value = int64();
State = 3143;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.uint64Type, (_localctx.uint64Value!=null?(_localctx.uint64Value.Start):null));
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 3146;
_localctx.uint32Type = Match(UINT32);
State = 3147;
Match(T__29);
State = 3148;
_localctx.uint32Value = int32();
State = 3149;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.uint32Type, (_localctx.uint32Value!=null?(_localctx.uint32Value.Start):null));
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 3152;
_localctx.uint16Type = Match(UINT16);
State = 3153;
Match(T__29);
State = 3154;
_localctx.uint16Value = int32();
State = 3155;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.uint16Type, (_localctx.uint16Value!=null?(_localctx.uint16Value.Start):null));
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 3158;
_localctx.uint8Type = Match(UINT8);
State = 3159;
Match(T__29);
State = 3160;
_localctx.uint8Value = int32();
State = 3161;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.uint8Type, (_localctx.uint8Value!=null?(_localctx.uint8Value.Start):null));
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 3164;
_localctx.charType = Match(CHAR);
State = 3165;
Match(T__29);
State = 3166;
_localctx.charValue = int32();
State = 3167;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.charType, (_localctx.charValue!=null?(_localctx.charValue.Start):null));
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 3170;
_localctx.boolType = Match(BOOL);
State = 3171;
Match(T__29);
State = 3172;
_localctx.boolValue = truefalse();
State = 3173;
Match(T__30);
_localctx.Value = Actions.CreateBooleanSerializedInitializer(_localctx.boolType, _localctx.boolValue.Value);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 3176;
Match(T__83);
State = 3177;
Match(T__29);
State = 3178;
_localctx.byteArrayValue = bytes();
State = 3179;
Match(T__30);
_localctx.Value = Actions.CreateByteArraySerializedInitializer(_localctx.byteArrayValue.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value ??= new System.Reflection.Metadata.BlobBuilder();
ExitRule();
}
return _localctx;
}
public partial class BytesContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<byte> Value;
public System.Collections.Immutable.ImmutableArray<byte>.Builder Builder;
public HexbyteContext b;
[System.Diagnostics.DebuggerNonUserCode] public HexbyteContext[] hexbyte() {
return GetRuleContexts<HexbyteContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public HexbyteContext hexbyte(int i) {
return GetRuleContext<HexbyteContext>(i);
}
public BytesContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_bytes; } }
}
[RuleVersion(0)]
public BytesContext bytes() {
BytesContext _localctx = new BytesContext(Context, State);
EnterRule(_localctx, 304, RULE_bytes);
_localctx.Builder = Actions.CreateByteAccumulator();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3189;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==INT32 || _la==ID || _la==HEXBYTE) {
{
{
State = 3184;
_localctx.b = hexbyte();
Actions.AddByte(_localctx.Builder, _localctx.b.Value);
}
}
State = 3191;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = Actions.EndBytes(_localctx.Builder);
ExitRule();
}
return _localctx;
}
public partial class HexbyteContext : ParserRuleContext {
public byte Value;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT32() { return GetToken(CILParser.INT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ID() { return GetToken(CILParser.ID, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode HEXBYTE() { return GetToken(CILParser.HEXBYTE, 0); }
public HexbyteContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_hexbyte; } }
}
[RuleVersion(0)]
public HexbyteContext hexbyte() {
HexbyteContext _localctx = new HexbyteContext(Context, State);
EnterRule(_localctx, 306, RULE_hexbyte);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3192;
_la = TokenStream.LA(1);
if ( !(_la==INT32 || _la==ID || _la==HEXBYTE) ) {
ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
}
Context.Stop = TokenStream.LT(-1);
_localctx.Value = GrammarActions.ParseHexbyte(_localctx.Start);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class FieldInitContext : ParserRuleContext {
public CILParser.FieldInitializerValue Value;
public FieldSerInitContext serializedValue;
public CompQstringContext stringValue;
[System.Diagnostics.DebuggerNonUserCode] public FieldSerInitContext fieldSerInit() {
return GetRuleContext<FieldSerInitContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext compQstring() {
return GetRuleContext<CompQstringContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode NULLREF() { return GetToken(CILParser.NULLREF, 0); }
public FieldInitContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_fieldInit; } }
}
[RuleVersion(0)]
public FieldInitContext fieldInit() {
FieldInitContext _localctx = new FieldInitContext(Context, State);
EnterRule(_localctx, 308, RULE_fieldInit);
_localctx.Value = CILParser.FieldInitializerValue.Empty;
try {
State = 3202;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__83:
case CHAR:
case BOOL:
case INT8:
case INT16:
case INT32_:
case INT64_:
case FLOAT32:
case FLOAT64_:
case UINT8:
case UINT16:
case UINT32:
case UINT64:
EnterOuterAlt(_localctx, 1);
{
State = 3194;
_localctx.serializedValue = fieldSerInit();
_localctx.Value = Actions.CreateFieldInitializer(_localctx.serializedValue.Value);
}
break;
case QSTRING:
EnterOuterAlt(_localctx, 2);
{
State = 3197;
_localctx.stringValue = compQstring();
_localctx.Value = Actions.CreateFieldInitializer(_localctx.stringValue.Value);
}
break;
case NULLREF:
EnterOuterAlt(_localctx, 3);
{
State = 3200;
Match(NULLREF);
_localctx.Value = Actions.CreateNullFieldInitializer();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class SerInitContext : ParserRuleContext {
public CILParser.SerializedInitializerValue Value;
public FieldSerInitContext scalarValue;
public IToken stringToken;
public IToken typeToken;
public ClassNameContext typeName;
public SerInitContext objectValue;
public IToken f32ElementToken;
public Int32Context f32Length;
public F32seqContext f32Values;
public IToken f64ElementToken;
public Int32Context f64Length;
public F64seqContext f64Values;
public IToken i64ElementToken;
public Int32Context i64Length;
public I64seqContext i64Values;
public IToken i32ElementToken;
public Int32Context i32Length;
public I32seqContext i32Values;
public IToken i16ElementToken;
public Int32Context i16Length;
public I16seqContext i16Values;
public IToken i8ElementToken;
public Int32Context i8Length;
public I8seqContext i8Values;
public IToken u64ElementToken;
public Int32Context u64Length;
public I64seqContext u64Values;
public IToken u32ElementToken;
public Int32Context u32Length;
public I32seqContext u32Values;
public IToken u16ElementToken;
public Int32Context u16Length;
public I16seqContext u16Values;
public IToken u8ElementToken;
public Int32Context u8Length;
public I8seqContext u8Values;
public IToken charElementToken;
public Int32Context charLength;
public I16seqContext charValues;
public IToken boolElementToken;
public Int32Context boolLength;
public BoolSeqContext boolValues;
public IToken stringElementToken;
public Int32Context stringLength;
public SqstringSeqContext stringValues;
public IToken typeElementToken;
public Int32Context typeLength;
public ClassSeqContext typeValues;
public IToken objectElementToken;
public Int32Context objectLength;
public ObjSeqContext objectValues;
[System.Diagnostics.DebuggerNonUserCode] public FieldSerInitContext fieldSerInit() {
return GetRuleContext<FieldSerInitContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STRING() { return GetToken(CILParser.STRING, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode NULLREF() { return GetToken(CILParser.NULLREF, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SQSTRING() { return GetToken(CILParser.SQSTRING, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TYPE() { return GetToken(CILParser.TYPE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ClassNameContext className() {
return GetRuleContext<ClassNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OBJECT() { return GetToken(CILParser.OBJECT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public SerInitContext serInit() {
return GetRuleContext<SerInitContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT32() { return GetToken(CILParser.FLOAT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public F32seqContext f32seq() {
return GetRuleContext<F32seqContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FLOAT64_() { return GetToken(CILParser.FLOAT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public F64seqContext f64seq() {
return GetRuleContext<F64seqContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT64_() { return GetToken(CILParser.INT64_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public I64seqContext i64seq() {
return GetRuleContext<I64seqContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT32_() { return GetToken(CILParser.INT32_, 0); }
[System.Diagnostics.DebuggerNonUserCode] public I32seqContext i32seq() {
return GetRuleContext<I32seqContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT16() { return GetToken(CILParser.INT16, 0); }
[System.Diagnostics.DebuggerNonUserCode] public I16seqContext i16seq() {
return GetRuleContext<I16seqContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INT8() { return GetToken(CILParser.INT8, 0); }
[System.Diagnostics.DebuggerNonUserCode] public I8seqContext i8seq() {
return GetRuleContext<I8seqContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT64() { return GetToken(CILParser.UINT64, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT32() { return GetToken(CILParser.UINT32, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT16() { return GetToken(CILParser.UINT16, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UINT8() { return GetToken(CILParser.UINT8, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CHAR() { return GetToken(CILParser.CHAR, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BOOL() { return GetToken(CILParser.BOOL, 0); }
[System.Diagnostics.DebuggerNonUserCode] public BoolSeqContext boolSeq() {
return GetRuleContext<BoolSeqContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SqstringSeqContext sqstringSeq() {
return GetRuleContext<SqstringSeqContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ClassSeqContext classSeq() {
return GetRuleContext<ClassSeqContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ObjSeqContext objSeq() {
return GetRuleContext<ObjSeqContext>(0);
}
public SerInitContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_serInit; } }
}
[RuleVersion(0)]
public SerInitContext serInit() {
SerInitContext _localctx = new SerInitContext(Context, State);
EnterRule(_localctx, 310, RULE_serInit);
_localctx.Value = CILParser.SerializedInitializerValue.Error;
try {
State = 3375;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,156,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3204;
_localctx.scalarValue = fieldSerInit();
_localctx.Value = Actions.CreateScalarSerializedValue(_localctx, _localctx.scalarValue, _localctx.scalarValue.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3207;
Match(STRING);
State = 3208;
Match(T__29);
State = 3209;
Match(NULLREF);
State = 3210;
Match(T__30);
_localctx.Value = Actions.CreateStringSerializedValue();
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3212;
Match(STRING);
State = 3213;
Match(T__29);
State = 3214;
_localctx.stringToken = Match(SQSTRING);
State = 3215;
Match(T__30);
_localctx.Value = Actions.CreateStringSerializedValue(_localctx.stringToken);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 3217;
Match(TYPE);
State = 3218;
Match(T__29);
State = 3219;
Match(T__38);
State = 3220;
_localctx.typeToken = Match(SQSTRING);
State = 3221;
Match(T__30);
_localctx.Value = Actions.CreateTypeSerializedValue(_localctx.typeToken);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 3223;
Match(TYPE);
State = 3224;
Match(T__29);
State = 3225;
_localctx.typeName = className();
State = 3226;
Match(T__30);
_localctx.Value = Actions.CreateTypeSerializedValue(_localctx.typeName.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 3229;
Match(TYPE);
State = 3230;
Match(T__29);
State = 3231;
Match(NULLREF);
State = 3232;
Match(T__30);
_localctx.Value = Actions.CreateNullTypeSerializedValue();
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 3234;
Match(OBJECT);
State = 3235;
Match(T__29);
State = 3236;
_localctx.objectValue = serInit();
State = 3237;
Match(T__30);
_localctx.Value = Actions.CreateObjectSerializedValue(_localctx.objectValue.Value);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 3240;
_localctx.f32ElementToken = Match(FLOAT32);
State = 3241;
Match(T__41);
State = 3242;
_localctx.f32Length = int32();
State = 3243;
Match(T__42);
State = 3244;
Match(T__29);
State = 3245;
_localctx.f32Values = f32seq();
State = 3246;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.f32ElementToken, (_localctx.f32Length!=null?(_localctx.f32Length.Start):null), _localctx.f32Values.Value);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 3249;
_localctx.f64ElementToken = Match(FLOAT64_);
State = 3250;
Match(T__41);
State = 3251;
_localctx.f64Length = int32();
State = 3252;
Match(T__42);
State = 3253;
Match(T__29);
State = 3254;
_localctx.f64Values = f64seq();
State = 3255;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.f64ElementToken, (_localctx.f64Length!=null?(_localctx.f64Length.Start):null), _localctx.f64Values.Value);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 3258;
_localctx.i64ElementToken = Match(INT64_);
State = 3259;
Match(T__41);
State = 3260;
_localctx.i64Length = int32();
State = 3261;
Match(T__42);
State = 3262;
Match(T__29);
State = 3263;
_localctx.i64Values = i64seq();
State = 3264;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.i64ElementToken, (_localctx.i64Length!=null?(_localctx.i64Length.Start):null), _localctx.i64Values.Value);
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 3267;
_localctx.i32ElementToken = Match(INT32_);
State = 3268;
Match(T__41);
State = 3269;
_localctx.i32Length = int32();
State = 3270;
Match(T__42);
State = 3271;
Match(T__29);
State = 3272;
_localctx.i32Values = i32seq();
State = 3273;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.i32ElementToken, (_localctx.i32Length!=null?(_localctx.i32Length.Start):null), _localctx.i32Values.Value);
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 3276;
_localctx.i16ElementToken = Match(INT16);
State = 3277;
Match(T__41);
State = 3278;
_localctx.i16Length = int32();
State = 3279;
Match(T__42);
State = 3280;
Match(T__29);
State = 3281;
_localctx.i16Values = i16seq();
State = 3282;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.i16ElementToken, (_localctx.i16Length!=null?(_localctx.i16Length.Start):null), _localctx.i16Values.Value);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 3285;
_localctx.i8ElementToken = Match(INT8);
State = 3286;
Match(T__41);
State = 3287;
_localctx.i8Length = int32();
State = 3288;
Match(T__42);
State = 3289;
Match(T__29);
State = 3290;
_localctx.i8Values = i8seq();
State = 3291;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.i8ElementToken, (_localctx.i8Length!=null?(_localctx.i8Length.Start):null), _localctx.i8Values.Value);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 3294;
_localctx.u64ElementToken = Match(UINT64);
State = 3295;
Match(T__41);
State = 3296;
_localctx.u64Length = int32();
State = 3297;
Match(T__42);
State = 3298;
Match(T__29);
State = 3299;
_localctx.u64Values = i64seq();
State = 3300;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.u64ElementToken, (_localctx.u64Length!=null?(_localctx.u64Length.Start):null), _localctx.u64Values.Value);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 3303;
_localctx.u32ElementToken = Match(UINT32);
State = 3304;
Match(T__41);
State = 3305;
_localctx.u32Length = int32();
State = 3306;
Match(T__42);
State = 3307;
Match(T__29);
State = 3308;
_localctx.u32Values = i32seq();
State = 3309;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.u32ElementToken, (_localctx.u32Length!=null?(_localctx.u32Length.Start):null), _localctx.u32Values.Value);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 3312;
_localctx.u16ElementToken = Match(UINT16);
State = 3313;
Match(T__41);
State = 3314;
_localctx.u16Length = int32();
State = 3315;
Match(T__42);
State = 3316;
Match(T__29);
State = 3317;
_localctx.u16Values = i16seq();
State = 3318;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.u16ElementToken, (_localctx.u16Length!=null?(_localctx.u16Length.Start):null), _localctx.u16Values.Value);
}
break;
case 17:
EnterOuterAlt(_localctx, 17);
{
State = 3321;
_localctx.u8ElementToken = Match(UINT8);
State = 3322;
Match(T__41);
State = 3323;
_localctx.u8Length = int32();
State = 3324;
Match(T__42);
State = 3325;
Match(T__29);
State = 3326;
_localctx.u8Values = i8seq();
State = 3327;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.u8ElementToken, (_localctx.u8Length!=null?(_localctx.u8Length.Start):null), _localctx.u8Values.Value);
}
break;
case 18:
EnterOuterAlt(_localctx, 18);
{
State = 3330;
_localctx.charElementToken = Match(CHAR);
State = 3331;
Match(T__41);
State = 3332;
_localctx.charLength = int32();
State = 3333;
Match(T__42);
State = 3334;
Match(T__29);
State = 3335;
_localctx.charValues = i16seq();
State = 3336;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.charElementToken, (_localctx.charLength!=null?(_localctx.charLength.Start):null), _localctx.charValues.Value);
}
break;
case 19:
EnterOuterAlt(_localctx, 19);
{
State = 3339;
_localctx.boolElementToken = Match(BOOL);
State = 3340;
Match(T__41);
State = 3341;
_localctx.boolLength = int32();
State = 3342;
Match(T__42);
State = 3343;
Match(T__29);
State = 3344;
_localctx.boolValues = boolSeq();
State = 3345;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.boolElementToken, (_localctx.boolLength!=null?(_localctx.boolLength.Start):null), _localctx.boolValues.Value);
}
break;
case 20:
EnterOuterAlt(_localctx, 20);
{
State = 3348;
_localctx.stringElementToken = Match(STRING);
State = 3349;
Match(T__41);
State = 3350;
_localctx.stringLength = int32();
State = 3351;
Match(T__42);
State = 3352;
Match(T__29);
State = 3353;
_localctx.stringValues = sqstringSeq();
State = 3354;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.stringElementToken, (_localctx.stringLength!=null?(_localctx.stringLength.Start):null), _localctx.stringValues.Value);
}
break;
case 21:
EnterOuterAlt(_localctx, 21);
{
State = 3357;
_localctx.typeElementToken = Match(TYPE);
State = 3358;
Match(T__41);
State = 3359;
_localctx.typeLength = int32();
State = 3360;
Match(T__42);
State = 3361;
Match(T__29);
State = 3362;
_localctx.typeValues = classSeq();
State = 3363;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.typeElementToken, (_localctx.typeLength!=null?(_localctx.typeLength.Start):null), _localctx.typeValues.Value);
}
break;
case 22:
EnterOuterAlt(_localctx, 22);
{
State = 3366;
_localctx.objectElementToken = Match(OBJECT);
State = 3367;
Match(T__41);
State = 3368;
_localctx.objectLength = int32();
State = 3369;
Match(T__42);
State = 3370;
Match(T__29);
State = 3371;
_localctx.objectValues = objSeq();
State = 3372;
Match(T__30);
_localctx.Value = Actions.CreateArraySerializedValue(_localctx.objectElementToken, (_localctx.objectLength!=null?(_localctx.objectLength.Start):null), _localctx.objectValues.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class F32seqContext : ParserRuleContext {
public System.Reflection.Metadata.BlobBuilder Value;
public System.Reflection.Metadata.BlobBuilder Builder;
public Float64Context floatingValue;
public Int32Context integerValue;
[System.Diagnostics.DebuggerNonUserCode] public Float64Context[] float64() {
return GetRuleContexts<Float64Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Float64Context float64(int i) {
return GetRuleContext<Float64Context>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context[] int32() {
return GetRuleContexts<Int32Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32(int i) {
return GetRuleContext<Int32Context>(i);
}
public F32seqContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_f32seq; } }
}
[RuleVersion(0)]
public F32seqContext f32seq() {
F32seqContext _localctx = new F32seqContext(Context, State);
EnterRule(_localctx, 312, RULE_f32seq);
_localctx.Builder = new System.Reflection.Metadata.BlobBuilder();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3385;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (((((_la - 172)) & ~0x3f) == 0 && ((1L << (_la - 172)) & 98309L) != 0)) {
{
State = 3383;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,157,Context) ) {
case 1:
{
State = 3377;
_localctx.floatingValue = float64();
Actions.AddFloat32SequenceValue(_localctx.Builder, _localctx.floatingValue.Value);
}
break;
case 2:
{
State = 3380;
_localctx.integerValue = int32();
Actions.AddFloat32SequenceValue(_localctx.Builder, (_localctx.integerValue!=null?(_localctx.integerValue.Start):null));
}
break;
}
}
State = 3387;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder;
ExitRule();
}
return _localctx;
}
public partial class F64seqContext : ParserRuleContext {
public System.Reflection.Metadata.BlobBuilder Value;
public System.Reflection.Metadata.BlobBuilder Builder;
public Float64Context floatingValue;
public Int64Context integerValue;
[System.Diagnostics.DebuggerNonUserCode] public Float64Context[] float64() {
return GetRuleContexts<Float64Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Float64Context float64(int i) {
return GetRuleContext<Float64Context>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public Int64Context[] int64() {
return GetRuleContexts<Int64Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int64Context int64(int i) {
return GetRuleContext<Int64Context>(i);
}
public F64seqContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_f64seq; } }
}
[RuleVersion(0)]
public F64seqContext f64seq() {
F64seqContext _localctx = new F64seqContext(Context, State);
EnterRule(_localctx, 314, RULE_f64seq);
_localctx.Builder = new System.Reflection.Metadata.BlobBuilder();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3396;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (((((_la - 172)) & ~0x3f) == 0 && ((1L << (_la - 172)) & 98311L) != 0)) {
{
State = 3394;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,159,Context) ) {
case 1:
{
State = 3388;
_localctx.floatingValue = float64();
Actions.AddFloat64SequenceValue(_localctx.Builder, _localctx.floatingValue.Value);
}
break;
case 2:
{
State = 3391;
_localctx.integerValue = int64();
Actions.AddFloat64SequenceValue(_localctx.Builder, (_localctx.integerValue!=null?(_localctx.integerValue.Start):null));
}
break;
}
}
State = 3398;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder;
ExitRule();
}
return _localctx;
}
public partial class I64seqContext : ParserRuleContext {
public System.Reflection.Metadata.BlobBuilder Value;
public System.Reflection.Metadata.BlobBuilder Builder;
public Int64Context value;
[System.Diagnostics.DebuggerNonUserCode] public Int64Context[] int64() {
return GetRuleContexts<Int64Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int64Context int64(int i) {
return GetRuleContext<Int64Context>(i);
}
public I64seqContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_i64seq; } }
}
[RuleVersion(0)]
public I64seqContext i64seq() {
I64seqContext _localctx = new I64seqContext(Context, State);
EnterRule(_localctx, 316, RULE_i64seq);
_localctx.Builder = new System.Reflection.Metadata.BlobBuilder();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3404;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==INT32 || _la==INT64) {
{
{
State = 3399;
_localctx.value = int64();
Actions.AddInt64SequenceValue(_localctx.Builder, (_localctx.value!=null?(_localctx.value.Start):null));
}
}
State = 3406;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder;
ExitRule();
}
return _localctx;
}
public partial class I32seqContext : ParserRuleContext {
public System.Reflection.Metadata.BlobBuilder Value;
public System.Reflection.Metadata.BlobBuilder Builder;
public Int32Context value;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context[] int32() {
return GetRuleContexts<Int32Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32(int i) {
return GetRuleContext<Int32Context>(i);
}
public I32seqContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_i32seq; } }
}
[RuleVersion(0)]
public I32seqContext i32seq() {
I32seqContext _localctx = new I32seqContext(Context, State);
EnterRule(_localctx, 318, RULE_i32seq);
_localctx.Builder = new System.Reflection.Metadata.BlobBuilder();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3412;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==INT32) {
{
{
State = 3407;
_localctx.value = int32();
Actions.AddInt32SequenceValue(_localctx.Builder, (_localctx.value!=null?(_localctx.value.Start):null));
}
}
State = 3414;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder;
ExitRule();
}
return _localctx;
}
public partial class I16seqContext : ParserRuleContext {
public System.Reflection.Metadata.BlobBuilder Value;
public System.Reflection.Metadata.BlobBuilder Builder;
public Int32Context value;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context[] int32() {
return GetRuleContexts<Int32Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32(int i) {
return GetRuleContext<Int32Context>(i);
}
public I16seqContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_i16seq; } }
}
[RuleVersion(0)]
public I16seqContext i16seq() {
I16seqContext _localctx = new I16seqContext(Context, State);
EnterRule(_localctx, 320, RULE_i16seq);
_localctx.Builder = new System.Reflection.Metadata.BlobBuilder();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3420;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==INT32) {
{
{
State = 3415;
_localctx.value = int32();
Actions.AddInt16SequenceValue(_localctx.Builder, (_localctx.value!=null?(_localctx.value.Start):null));
}
}
State = 3422;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder;
ExitRule();
}
return _localctx;
}
public partial class I8seqContext : ParserRuleContext {
public System.Reflection.Metadata.BlobBuilder Value;
public System.Reflection.Metadata.BlobBuilder Builder;
public Int32Context value;
[System.Diagnostics.DebuggerNonUserCode] public Int32Context[] int32() {
return GetRuleContexts<Int32Context>();
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32(int i) {
return GetRuleContext<Int32Context>(i);
}
public I8seqContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_i8seq; } }
}
[RuleVersion(0)]
public I8seqContext i8seq() {
I8seqContext _localctx = new I8seqContext(Context, State);
EnterRule(_localctx, 322, RULE_i8seq);
_localctx.Builder = new System.Reflection.Metadata.BlobBuilder();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3428;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==INT32) {
{
{
State = 3423;
_localctx.value = int32();
Actions.AddInt8SequenceValue(_localctx.Builder, (_localctx.value!=null?(_localctx.value.Start):null));
}
}
State = 3430;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder;
ExitRule();
}
return _localctx;
}
public partial class BoolSeqContext : ParserRuleContext {
public System.Reflection.Metadata.BlobBuilder Value;
public System.Reflection.Metadata.BlobBuilder Builder;
public TruefalseContext value;
[System.Diagnostics.DebuggerNonUserCode] public TruefalseContext[] truefalse() {
return GetRuleContexts<TruefalseContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public TruefalseContext truefalse(int i) {
return GetRuleContext<TruefalseContext>(i);
}
public BoolSeqContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_boolSeq; } }
}
[RuleVersion(0)]
public BoolSeqContext boolSeq() {
BoolSeqContext _localctx = new BoolSeqContext(Context, State);
EnterRule(_localctx, 324, RULE_boolSeq);
_localctx.Builder = new System.Reflection.Metadata.BlobBuilder();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3436;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__94 || _la==T__95) {
{
{
State = 3431;
_localctx.value = truefalse();
Actions.AddBooleanSequenceValue(_localctx.Builder, _localctx.value.Value);
}
}
State = 3438;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder;
ExitRule();
}
return _localctx;
}
public partial class SqstringSeqContext : ParserRuleContext {
public System.Reflection.Metadata.BlobBuilder Value;
public System.Reflection.Metadata.BlobBuilder Builder;
public IToken nullValue;
public IToken stringValue;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] NULLREF() { return GetTokens(CILParser.NULLREF); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode NULLREF(int i) {
return GetToken(CILParser.NULLREF, i);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] SQSTRING() { return GetTokens(CILParser.SQSTRING); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SQSTRING(int i) {
return GetToken(CILParser.SQSTRING, i);
}
public SqstringSeqContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_sqstringSeq; } }
}
[RuleVersion(0)]
public SqstringSeqContext sqstringSeq() {
SqstringSeqContext _localctx = new SqstringSeqContext(Context, State);
EnterRule(_localctx, 326, RULE_sqstringSeq);
_localctx.Builder = new System.Reflection.Metadata.BlobBuilder();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3445;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==NULLREF || _la==SQSTRING) {
{
State = 3443;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case NULLREF:
{
State = 3439;
_localctx.nullValue = Match(NULLREF);
Actions.AddStringSequenceValue(_localctx.Builder, _localctx.nullValue);
}
break;
case SQSTRING:
{
State = 3441;
_localctx.stringValue = Match(SQSTRING);
Actions.AddStringSequenceValue(_localctx.Builder, _localctx.stringValue);
}
break;
default:
throw new NoViableAltException(this);
}
}
State = 3447;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder;
ExitRule();
}
return _localctx;
}
public partial class ClassSeqContext : ParserRuleContext {
public CILParser.SerializedSequenceValue Value;
public System.Collections.Immutable.ImmutableArray<CILParser.ClassSequenceElementValue>.Builder Builder;
public ClassSeqElementContext value;
[System.Diagnostics.DebuggerNonUserCode] public ClassSeqElementContext[] classSeqElement() {
return GetRuleContexts<ClassSeqElementContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public ClassSeqElementContext classSeqElement(int i) {
return GetRuleContext<ClassSeqElementContext>(i);
}
public ClassSeqContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_classSeq; } }
}
[RuleVersion(0)]
public ClassSeqContext classSeq() {
ClassSeqContext _localctx = new ClassSeqContext(Context, State);
EnterRule(_localctx, 328, RULE_classSeq);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.ClassSequenceElementValue>();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3453;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 4947802390528L) != 0) || _la==T__112 || _la==NULLREF || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 105553118478337L) != 0)) {
{
{
State = 3448;
_localctx.value = classSeqElement();
_localctx.Builder.Add(_localctx.value.Value);
}
}
State = 3455;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = new CILParser.ClassSerializedSequenceValue(_localctx.Builder.ToImmutable());
ExitRule();
}
return _localctx;
}
public partial class ClassSeqElementContext : ParserRuleContext {
public CILParser.ClassSequenceElementValue Value;
public IToken quotedValue;
public ClassNameContext typeValue;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode NULLREF() { return GetToken(CILParser.NULLREF, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SQSTRING() { return GetToken(CILParser.SQSTRING, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ClassNameContext className() {
return GetRuleContext<ClassNameContext>(0);
}
public ClassSeqElementContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_classSeqElement; } }
}
[RuleVersion(0)]
public ClassSeqElementContext classSeqElement() {
ClassSeqElementContext _localctx = new ClassSeqElementContext(Context, State);
EnterRule(_localctx, 330, RULE_classSeqElement);
_localctx.Value = CILParser.ClassSequenceElementValue.Error;
try {
State = 3464;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case NULLREF:
EnterOuterAlt(_localctx, 1);
{
State = 3456;
Match(NULLREF);
_localctx.Value = Actions.CreateNullClassSequenceValue();
}
break;
case T__38:
EnterOuterAlt(_localctx, 2);
{
State = 3458;
Match(T__38);
State = 3459;
_localctx.quotedValue = Match(SQSTRING);
_localctx.Value = Actions.CreateQuotedClassSequenceValue(_localctx.quotedValue);
}
break;
case T__15:
case T__41:
case T__112:
case INSTANCE:
case THIS:
case BASE:
case NESTER:
case SQSTRING:
case DOTTEDNAME:
case ID:
EnterOuterAlt(_localctx, 3);
{
State = 3461;
_localctx.typeValue = className();
_localctx.Value = Actions.CreateClassSequenceValue(_localctx.typeValue.Value);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ObjSeqContext : ParserRuleContext {
public CILParser.SerializedSequenceValue Value;
public System.Collections.Immutable.ImmutableArray<CILParser.SerializedInitializerValue>.Builder Builder;
public SerInitContext value;
[System.Diagnostics.DebuggerNonUserCode] public SerInitContext[] serInit() {
return GetRuleContexts<SerInitContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public SerInitContext serInit(int i) {
return GetRuleContext<SerInitContext>(i);
}
public ObjSeqContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_objSeq; } }
}
[RuleVersion(0)]
public ObjSeqContext objSeq() {
ObjSeqContext _localctx = new ObjSeqContext(Context, State);
EnterRule(_localctx, 332, RULE_objSeq);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.SerializedInitializerValue>();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3471;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__83 || ((((_la - 180)) & ~0x3f) == 0 && ((1L << (_la - 180)) & 106495L) != 0)) {
{
{
State = 3466;
_localctx.value = serInit();
_localctx.Builder.Add(_localctx.value.Value);
}
}
State = 3473;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = new CILParser.ObjectSerializedSequenceValue(_localctx.Builder.ToImmutable());
ExitRule();
}
return _localctx;
}
public partial class CustomAttrDeclContext : ParserRuleContext {
public CILParser.CustomAttributeDeclarationValue Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public CustomDescrContext directAttribute;
public CustomDescrWithOwnerContext ownedAttribute;
public DottedNameContext alias;
[System.Diagnostics.DebuggerNonUserCode] public CustomDescrContext customDescr() {
return GetRuleContext<CustomDescrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomDescrWithOwnerContext customDescrWithOwner() {
return GetRuleContext<CustomDescrWithOwnerContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
public CustomAttrDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_customAttrDecl; } }
}
[RuleVersion(0)]
public CustomAttrDeclContext customAttrDecl() {
CustomAttrDeclContext _localctx = new CustomAttrDeclContext(Context, State);
EnterRule(_localctx, 334, RULE_customAttrDecl);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
_localctx.Value = CILParser.CustomAttributeDeclarationValue.Error;
try {
State = 3483;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,171,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3474;
_localctx.directAttribute = customDescr();
_localctx.Value = Actions.CreateCustomAttributeDeclaration(_localctx.directAttribute.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3477;
_localctx.ownedAttribute = customDescrWithOwner();
_localctx.Value = Actions.CreateCustomAttributeDeclaration(_localctx.ownedAttribute.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3480;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateCustomAttributeTypedef(_localctx.alias.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
ExitRule();
}
return _localctx;
}
public partial class AsmOrRefDeclContext : ParserRuleContext {
public CILParser.AssemblyDeclarationValue? Value;
public BytesContext key;
public IntOrWildcardContext major;
public IntOrWildcardContext minor;
public IntOrWildcardContext build;
public IntOrWildcardContext revision;
public CompQstringContext locale;
public BytesContext localeBytes;
public CustomAttrDeclContext attribute;
[System.Diagnostics.DebuggerNonUserCode] public BytesContext bytes() {
return GetRuleContext<BytesContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public IntOrWildcardContext[] intOrWildcard() {
return GetRuleContexts<IntOrWildcardContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public IntOrWildcardContext intOrWildcard(int i) {
return GetRuleContext<IntOrWildcardContext>(i);
}
[System.Diagnostics.DebuggerNonUserCode] public CompQstringContext compQstring() {
return GetRuleContext<CompQstringContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomAttrDeclContext customAttrDecl() {
return GetRuleContext<CustomAttrDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CompControlContext compControl() {
return GetRuleContext<CompControlContext>(0);
}
public AsmOrRefDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_asmOrRefDecl; } }
}
[RuleVersion(0)]
public AsmOrRefDeclContext asmOrRefDecl() {
AsmOrRefDeclContext _localctx = new AsmOrRefDeclContext(Context, State);
EnterRule(_localctx, 336, RULE_asmOrRefDecl);
try {
State = 3517;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,172,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3485;
Match(T__166);
State = 3486;
Match(T__35);
State = 3487;
Match(T__29);
State = 3488;
_localctx.key = bytes();
State = 3489;
Match(T__30);
_localctx.Value = Actions.CreateAssemblyPublicKeyDeclaration(_localctx.key.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3492;
Match(T__167);
State = 3493;
_localctx.major = intOrWildcard();
State = 3494;
Match(T__74);
State = 3495;
_localctx.minor = intOrWildcard();
State = 3496;
Match(T__74);
State = 3497;
_localctx.build = intOrWildcard();
State = 3498;
Match(T__74);
State = 3499;
_localctx.revision = intOrWildcard();
_localctx.Value = Actions.CreateAssemblyVersionDeclaration(
_localctx.major.Value,
_localctx.minor.Value,
_localctx.build.Value,
_localctx.revision.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3502;
Match(T__168);
State = 3503;
_localctx.locale = compQstring();
_localctx.Value = Actions.CreateAssemblyLocaleDeclaration(_localctx.locale.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 3506;
Match(T__168);
State = 3507;
Match(T__35);
State = 3508;
Match(T__29);
State = 3509;
_localctx.localeBytes = bytes();
State = 3510;
Match(T__30);
_localctx.Value = Actions.CreateAssemblyLocaleDeclaration(_localctx.localeBytes.Value);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 3513;
_localctx.attribute = customAttrDecl();
_localctx.Value = Actions.CreateAssemblyCustomAttributeDeclaration(
_localctx.attribute.Value,
(_localctx.attribute!=null?(_localctx.attribute.Start):null));
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 3516;
compControl();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class AssemblyRefBlockContext : ParserRuleContext {
public CILParser.AssemblyReferenceValue? Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public AssemblyRefHeadContext header;
public AssemblyRefDeclsContext declarations;
[System.Diagnostics.DebuggerNonUserCode] public AssemblyRefHeadContext assemblyRefHead() {
return GetRuleContext<AssemblyRefHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public AssemblyRefDeclsContext assemblyRefDecls() {
return GetRuleContext<AssemblyRefDeclsContext>(0);
}
public AssemblyRefBlockContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_assemblyRefBlock; } }
}
[RuleVersion(0)]
public AssemblyRefBlockContext assemblyRefBlock() {
AssemblyRefBlockContext _localctx = new AssemblyRefBlockContext(Context, State);
EnterRule(_localctx, 338, RULE_assemblyRefBlock);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3519;
_localctx.header = assemblyRefHead();
State = 3520;
Match(T__16);
State = 3521;
_localctx.declarations = assemblyRefDecls();
State = 3522;
Match(T__17);
_localctx.Value = Actions.CreateAssemblyReference(
_localctx.header.Value,
_localctx.declarations.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
if (_localctx.HasSyntaxError)
{
_localctx.Value = null;
}
ExitRule();
}
return _localctx;
}
public partial class AssemblyRefHeadContext : ParserRuleContext {
public CILParser.AssemblyReferenceHeaderValue Value;
public AsmAttrContext attributes;
public DottedNameContext name;
public DottedNameContext alias;
[System.Diagnostics.DebuggerNonUserCode] public AsmAttrContext asmAttr() {
return GetRuleContext<AsmAttrContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext[] dottedName() {
return GetRuleContexts<DottedNameContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName(int i) {
return GetRuleContext<DottedNameContext>(i);
}
public AssemblyRefHeadContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_assemblyRefHead; } }
}
[RuleVersion(0)]
public AssemblyRefHeadContext assemblyRefHead() {
AssemblyRefHeadContext _localctx = new AssemblyRefHeadContext(Context, State);
EnterRule(_localctx, 340, RULE_assemblyRefHead);
_localctx.Value = CILParser.AssemblyReferenceHeaderValue.Error;
try {
State = 3539;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,173,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3525;
Match(T__24);
State = 3526;
Match(T__39);
State = 3527;
_localctx.attributes = asmAttr();
State = 3528;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateAssemblyReferenceHeader(
_localctx.attributes.Value,
_localctx.name.Value,
_localctx.name.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3531;
Match(T__24);
State = 3532;
Match(T__39);
State = 3533;
_localctx.attributes = asmAttr();
State = 3534;
_localctx.name = dottedName();
State = 3535;
Match(T__33);
State = 3536;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateAssemblyReferenceHeader(
_localctx.attributes.Value,
_localctx.name.Value,
_localctx.alias.Value);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class AssemblyRefDeclsContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.AssemblyDeclarationValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.AssemblyDeclarationValue>.Builder Builder;
public AssemblyRefDeclContext declaration;
[System.Diagnostics.DebuggerNonUserCode] public AssemblyRefDeclContext[] assemblyRefDecl() {
return GetRuleContexts<AssemblyRefDeclContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public AssemblyRefDeclContext assemblyRefDecl(int i) {
return GetRuleContext<AssemblyRefDeclContext>(i);
}
public AssemblyRefDeclsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_assemblyRefDecls; } }
}
[RuleVersion(0)]
public AssemblyRefDeclsContext assemblyRefDecls() {
AssemblyRefDeclsContext _localctx = new AssemblyRefDeclsContext(Context, State);
EnterRule(_localctx, 342, RULE_assemblyRefDecls);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.AssemblyDeclarationValue>();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3546;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 36028835673735168L) != 0) || ((((_la - 167)) & ~0x3f) == 0 && ((1L << (_la - 167)) & 4111L) != 0) || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 105555249070081L) != 0)) {
{
{
State = 3541;
_localctx.declaration = assemblyRefDecl();
if (_localctx.declaration.Value is not null) _localctx.Builder.Add(_localctx.declaration.Value);
}
}
State = 3548;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class AssemblyRefDeclContext : ParserRuleContext {
public CILParser.AssemblyDeclarationValue? Value;
public BytesContext hash;
public AsmOrRefDeclContext shared;
public BytesContext token;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode HASH() { return GetToken(CILParser.HASH, 0); }
[System.Diagnostics.DebuggerNonUserCode] public BytesContext bytes() {
return GetRuleContext<BytesContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public AsmOrRefDeclContext asmOrRefDecl() {
return GetRuleContext<AsmOrRefDeclContext>(0);
}
public AssemblyRefDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_assemblyRefDecl; } }
}
[RuleVersion(0)]
public AssemblyRefDeclContext assemblyRefDecl() {
AssemblyRefDeclContext _localctx = new AssemblyRefDeclContext(Context, State);
EnterRule(_localctx, 344, RULE_assemblyRefDecl);
try {
State = 3568;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case HASH:
EnterOuterAlt(_localctx, 1);
{
State = 3549;
Match(HASH);
State = 3550;
Match(T__35);
State = 3551;
Match(T__29);
State = 3552;
_localctx.hash = bytes();
State = 3553;
Match(T__30);
_localctx.Value = Actions.CreateAssemblyReferenceHashDeclaration(_localctx.hash.Value);
}
break;
case T__15:
case T__31:
case T__34:
case T__166:
case T__167:
case T__168:
case INSTANCE:
case SQSTRING:
case PP_DEFINE:
case PP_UNDEF:
case PP_IFDEF:
case PP_IFNDEF:
case PP_ELSE:
case PP_ENDIF:
case PP_INCLUDE:
case DOTTEDNAME:
case ID:
EnterOuterAlt(_localctx, 2);
{
State = 3556;
_localctx.shared = asmOrRefDecl();
_localctx.Value = _localctx.shared.Value;
}
break;
case T__169:
EnterOuterAlt(_localctx, 3);
{
State = 3559;
Match(T__169);
State = 3560;
Match(T__35);
State = 3561;
Match(T__29);
State = 3562;
_localctx.token = bytes();
State = 3563;
Match(T__30);
_localctx.Value = Actions.CreateAssemblyReferencePublicKeyTokenDeclaration(_localctx.token.Value);
}
break;
case T__54:
EnterOuterAlt(_localctx, 4);
{
State = 3566;
Match(T__54);
_localctx.Value = Actions.CreateAssemblyReferenceAutoDeclaration();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ExptypeBlockContext : ParserRuleContext {
public CILParser.ExportedTypeValue? Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public ExptypeHeadContext header;
public ExptypeDeclsContext declarations;
[System.Diagnostics.DebuggerNonUserCode] public ExptypeHeadContext exptypeHead() {
return GetRuleContext<ExptypeHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ExptypeDeclsContext exptypeDecls() {
return GetRuleContext<ExptypeDeclsContext>(0);
}
public ExptypeBlockContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_exptypeBlock; } }
}
[RuleVersion(0)]
public ExptypeBlockContext exptypeBlock() {
ExptypeBlockContext _localctx = new ExptypeBlockContext(Context, State);
EnterRule(_localctx, 346, RULE_exptypeBlock);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3570;
_localctx.header = exptypeHead();
State = 3571;
Match(T__16);
State = 3572;
_localctx.declarations = exptypeDecls();
State = 3573;
Match(T__17);
_localctx.Value = Actions.CreateExportedType(
_localctx.header.Value,
_localctx.declarations.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
if (_localctx.HasSyntaxError)
{
_localctx.Value = null;
}
ExitRule();
}
return _localctx;
}
public partial class ExptypeHeadContext : ParserRuleContext {
public CILParser.ExportedTypeHeaderValue Value;
public IToken head;
public ExptAttrsContext attributes;
public DottedNameContext name;
[System.Diagnostics.DebuggerNonUserCode] public ExptAttrsContext exptAttrs() {
return GetRuleContext<ExptAttrsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
public ExptypeHeadContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_exptypeHead; } }
}
[RuleVersion(0)]
public ExptypeHeadContext exptypeHead() {
ExptypeHeadContext _localctx = new ExptypeHeadContext(Context, State);
EnterRule(_localctx, 348, RULE_exptypeHead);
_localctx.Value = CILParser.ExportedTypeHeaderValue.Error;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3576;
_localctx.head = Match(T__49);
State = 3577;
Match(T__39);
State = 3578;
_localctx.attributes = exptAttrs();
State = 3579;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateExportedTypeHeader(
_localctx.attributes.Value,
_localctx.name.Value,
_localctx.head);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ExportHeadContext : ParserRuleContext {
public CILParser.ExportedTypeHeaderValue Value;
public IToken head;
public ExptAttrsContext attributes;
public DottedNameContext name;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode EXPORT() { return GetToken(CILParser.EXPORT, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ExptAttrsContext exptAttrs() {
return GetRuleContext<ExptAttrsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
public ExportHeadContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_exportHead; } }
}
[RuleVersion(0)]
public ExportHeadContext exportHead() {
ExportHeadContext _localctx = new ExportHeadContext(Context, State);
EnterRule(_localctx, 350, RULE_exportHead);
_localctx.Value = CILParser.ExportedTypeHeaderValue.Error;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3582;
_localctx.head = Match(EXPORT);
State = 3583;
_localctx.attributes = exptAttrs();
State = 3584;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateExportedTypeHeader(
_localctx.attributes.Value,
_localctx.name.Value,
_localctx.head);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ExptAttrsContext : ParserRuleContext {
public System.Reflection.TypeAttributes Value;
public ExptAttrContext attribute;
[System.Diagnostics.DebuggerNonUserCode] public ExptAttrContext[] exptAttr() {
return GetRuleContexts<ExptAttrContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public ExptAttrContext exptAttr(int i) {
return GetRuleContext<ExptAttrContext>(i);
}
public ExptAttrsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_exptAttrs; } }
}
[RuleVersion(0)]
public ExptAttrsContext exptAttrs() {
ExptAttrsContext _localctx = new ExptAttrsContext(Context, State);
EnterRule(_localctx, 352, RULE_exptAttrs);
_localctx.Value = 0;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3592;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 4618441417868443648L) != 0) || _la==T__170) {
{
{
State = 3587;
_localctx.attribute = exptAttr();
_localctx.Value = Actions.AddExportedTypeAttribute(
_localctx.Value,
_localctx.attribute.Value,
_localctx.attribute.Mask);
}
}
State = 3594;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ExptAttrContext : ParserRuleContext {
public System.Reflection.TypeAttributes Value;
public System.Reflection.TypeAttributes Mask;
public ExptAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_exptAttr; } }
}
[RuleVersion(0)]
public ExptAttrContext exptAttr() {
ExptAttrContext _localctx = new ExptAttrContext(Context, State);
EnterRule(_localctx, 354, RULE_exptAttr);
try {
State = 3610;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,177,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3595;
Match(T__51);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3596;
Match(T__50);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3597;
Match(T__170);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 3598;
Match(T__61);
State = 3599;
Match(T__50);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 3600;
Match(T__61);
State = 3601;
Match(T__51);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 3602;
Match(T__61);
State = 3603;
Match(T__62);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 3604;
Match(T__61);
State = 3605;
Match(T__63);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 3606;
Match(T__61);
State = 3607;
Match(T__64);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 3608;
Match(T__61);
State = 3609;
Match(T__65);
}
break;
}
Context.Stop = TokenStream.LT(-1);
Actions.SetExportedTypeAttribute(_localctx);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ExptypeDeclsContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.ExportedTypeDeclarationValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.ExportedTypeDeclarationValue>.Builder Builder;
public ExptypeDeclContext declaration;
[System.Diagnostics.DebuggerNonUserCode] public ExptypeDeclContext[] exptypeDecl() {
return GetRuleContexts<ExptypeDeclContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public ExptypeDeclContext exptypeDecl(int i) {
return GetRuleContext<ExptypeDeclContext>(i);
}
public ExptypeDeclsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_exptypeDecls; } }
}
[RuleVersion(0)]
public ExptypeDeclsContext exptypeDecls() {
ExptypeDeclsContext _localctx = new ExptypeDeclsContext(Context, State);
EnterRule(_localctx, 356, RULE_exptypeDecls);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.ExportedTypeDeclarationValue>();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3617;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 1125938597265408L) != 0) || _la==T__112 || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 105555249070081L) != 0)) {
{
{
State = 3612;
_localctx.declaration = exptypeDecl();
if (_localctx.declaration.Value is not null) _localctx.Builder.Add(_localctx.declaration.Value);
}
}
State = 3619;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class ExptypeDeclContext : ParserRuleContext {
public CILParser.ExportedTypeDeclarationValue? Value;
public IToken location;
public DottedNameContext name;
public SlashedNameContext nestedName;
public DottedNameContext assemblyName;
public MdtokenContext token;
public Int32Context typeDefinitionId;
public CustomAttrDeclContext attribute;
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public SlashedNameContext slashedName() {
return GetRuleContext<SlashedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public MdtokenContext mdtoken() {
return GetRuleContext<MdtokenContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomAttrDeclContext customAttrDecl() {
return GetRuleContext<CustomAttrDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CompControlContext compControl() {
return GetRuleContext<CompControlContext>(0);
}
public ExptypeDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_exptypeDecl; } }
}
[RuleVersion(0)]
public ExptypeDeclContext exptypeDecl() {
ExptypeDeclContext _localctx = new ExptypeDeclContext(Context, State);
EnterRule(_localctx, 358, RULE_exptypeDecl);
try {
State = 3645;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,179,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3620;
_localctx.location = Match(T__20);
State = 3621;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateExportedTypeFileDeclaration(
_localctx.name.Value,
_localctx.location);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3624;
_localctx.location = Match(T__49);
State = 3625;
Match(T__39);
State = 3626;
_localctx.nestedName = slashedName();
_localctx.Value = Actions.CreateNestedExportedTypeDeclaration(
_localctx.nestedName.Value,
_localctx.location);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3629;
_localctx.location = Match(T__24);
State = 3630;
Match(T__39);
State = 3631;
_localctx.assemblyName = dottedName();
_localctx.Value = Actions.CreateExportedTypeAssemblyDeclaration(
_localctx.assemblyName.Value,
_localctx.location);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 3634;
_localctx.token = mdtoken();
_localctx.Value = Actions.CreateExportedTypeMetadataTokenDeclaration(
_localctx.token.Value,
(_localctx.token!=null?(_localctx.token.Start):null));
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 3637;
Match(T__49);
State = 3638;
_localctx.typeDefinitionId = int32();
_localctx.Value = Actions.CreateExportedTypeDefinitionIdDeclaration(
(_localctx.typeDefinitionId!=null?(_localctx.typeDefinitionId.Start):null));
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 3641;
_localctx.attribute = customAttrDecl();
_localctx.Value = Actions.CreateExportedTypeCustomAttributeDeclaration(
_localctx.attribute.Value,
(_localctx.attribute!=null?(_localctx.attribute.Start):null));
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 3644;
compControl();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ManifestResBlockContext : ParserRuleContext {
public CILParser.ManifestResourceValue? Value;
public bool HasSyntaxError;
public int InitialSyntaxErrorCount;
public ManifestResHeadContext header;
public ManifestResDeclsContext declarations;
[System.Diagnostics.DebuggerNonUserCode] public ManifestResHeadContext manifestResHead() {
return GetRuleContext<ManifestResHeadContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ManifestResDeclsContext manifestResDecls() {
return GetRuleContext<ManifestResDeclsContext>(0);
}
public ManifestResBlockContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_manifestResBlock; } }
}
[RuleVersion(0)]
public ManifestResBlockContext manifestResBlock() {
ManifestResBlockContext _localctx = new ManifestResBlockContext(Context, State);
EnterRule(_localctx, 360, RULE_manifestResBlock);
_localctx.InitialSyntaxErrorCount = Actions.SyntaxErrorCount;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3647;
_localctx.header = manifestResHead();
State = 3648;
Match(T__16);
State = 3649;
_localctx.declarations = manifestResDecls();
State = 3650;
Match(T__17);
_localctx.Value = Actions.CreateManifestResource(
_localctx.header.Value,
_localctx.declarations.Value);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.HasSyntaxError =
Actions.HasSyntaxErrorsSince(_localctx.InitialSyntaxErrorCount) ||
_localctx.exception is not null;
if (_localctx.HasSyntaxError)
{
_localctx.Value = null;
}
ExitRule();
}
return _localctx;
}
public partial class ManifestResHeadContext : ParserRuleContext {
public CILParser.ManifestResourceHeaderValue Value;
public IToken head;
public ManresAttrsContext attributes;
public DottedNameContext name;
public DottedNameContext alias;
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode MRESOURCE() { return GetToken(CILParser.MRESOURCE, 0); }
[System.Diagnostics.DebuggerNonUserCode] public ManresAttrsContext manresAttrs() {
return GetRuleContext<ManresAttrsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext[] dottedName() {
return GetRuleContexts<DottedNameContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName(int i) {
return GetRuleContext<DottedNameContext>(i);
}
public ManifestResHeadContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_manifestResHead; } }
}
[RuleVersion(0)]
public ManifestResHeadContext manifestResHead() {
ManifestResHeadContext _localctx = new ManifestResHeadContext(Context, State);
EnterRule(_localctx, 362, RULE_manifestResHead);
_localctx.Value = CILParser.ManifestResourceHeaderValue.Error;
try {
State = 3665;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,180,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3653;
_localctx.head = Match(MRESOURCE);
State = 3654;
_localctx.attributes = manresAttrs();
State = 3655;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateManifestResourceHeader(
_localctx.attributes.Value,
_localctx.name.Value,
_localctx.name.Value,
_localctx.head);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3658;
_localctx.head = Match(MRESOURCE);
State = 3659;
_localctx.attributes = manresAttrs();
State = 3660;
_localctx.name = dottedName();
State = 3661;
Match(T__33);
State = 3662;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateManifestResourceHeader(
_localctx.attributes.Value,
_localctx.name.Value,
_localctx.alias.Value,
_localctx.head);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ManresAttrsContext : ParserRuleContext {
public System.Reflection.ManifestResourceAttributes Value;
public ManresAttrContext attribute;
[System.Diagnostics.DebuggerNonUserCode] public ManresAttrContext[] manresAttr() {
return GetRuleContexts<ManresAttrContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public ManresAttrContext manresAttr(int i) {
return GetRuleContext<ManresAttrContext>(i);
}
public ManresAttrsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_manresAttrs; } }
}
[RuleVersion(0)]
public ManresAttrsContext manresAttrs() {
ManresAttrsContext _localctx = new ManresAttrsContext(Context, State);
EnterRule(_localctx, 364, RULE_manresAttrs);
_localctx.Value = 0;
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3672;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__50 || _la==T__51) {
{
{
State = 3667;
_localctx.attribute = manresAttr();
_localctx.Value = Actions.AddManifestResourceAttribute(
_localctx.Value,
_localctx.attribute.Value);
}
}
State = 3674;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ManresAttrContext : ParserRuleContext {
public System.Reflection.ManifestResourceAttributes Value;
public ManresAttrContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_manresAttr; } }
}
[RuleVersion(0)]
public ManresAttrContext manresAttr() {
ManresAttrContext _localctx = new ManresAttrContext(Context, State);
EnterRule(_localctx, 366, RULE_manresAttr);
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3675;
_la = TokenStream.LA(1);
if ( !(_la==T__50 || _la==T__51) ) {
ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
}
Context.Stop = TokenStream.LT(-1);
_localctx.Value = Actions.ParseManifestResourceAttribute(_localctx.Start);
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class ManifestResDeclsContext : ParserRuleContext {
public System.Collections.Immutable.ImmutableArray<CILParser.ManifestResourceDeclarationValue> Value;
public System.Collections.Immutable.ImmutableArray<CILParser.ManifestResourceDeclarationValue>.Builder Builder;
public ManifestResDeclContext declaration;
[System.Diagnostics.DebuggerNonUserCode] public ManifestResDeclContext[] manifestResDecl() {
return GetRuleContexts<ManifestResDeclContext>();
}
[System.Diagnostics.DebuggerNonUserCode] public ManifestResDeclContext manifestResDecl(int i) {
return GetRuleContext<ManifestResDeclContext>(i);
}
public ManifestResDeclsContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_manifestResDecls; } }
}
[RuleVersion(0)]
public ManifestResDeclsContext manifestResDecls() {
ManifestResDeclsContext _localctx = new ManifestResDeclsContext(Context, State);
EnterRule(_localctx, 368, RULE_manifestResDecls);
_localctx.Builder = System.Collections.Immutable.ImmutableArray.CreateBuilder<CILParser.ManifestResourceDeclarationValue>();
int _la;
try {
EnterOuterAlt(_localctx, 1);
{
State = 3682;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 38690422784L) != 0) || ((((_la - 242)) & ~0x3f) == 0 && ((1L << (_la - 242)) & 105555249070081L) != 0)) {
{
{
State = 3677;
_localctx.declaration = manifestResDecl();
if (_localctx.declaration.Value is not null) _localctx.Builder.Add(_localctx.declaration.Value);
}
}
State = 3684;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
_localctx.Value = _localctx.Builder.ToImmutable();
ExitRule();
}
return _localctx;
}
public partial class ManifestResDeclContext : ParserRuleContext {
public CILParser.ManifestResourceDeclarationValue? Value;
public IToken location;
public DottedNameContext name;
public Int32Context offset;
public CustomAttrDeclContext attribute;
[System.Diagnostics.DebuggerNonUserCode] public DottedNameContext dottedName() {
return GetRuleContext<DottedNameContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public Int32Context int32() {
return GetRuleContext<Int32Context>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CustomAttrDeclContext customAttrDecl() {
return GetRuleContext<CustomAttrDeclContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public CompControlContext compControl() {
return GetRuleContext<CompControlContext>(0);
}
public ManifestResDeclContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_manifestResDecl; } }
}
[RuleVersion(0)]
public ManifestResDeclContext manifestResDecl() {
ManifestResDeclContext _localctx = new ManifestResDeclContext(Context, State);
EnterRule(_localctx, 370, RULE_manifestResDecl);
try {
State = 3700;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__20:
EnterOuterAlt(_localctx, 1);
{
State = 3685;
_localctx.location = Match(T__20);
State = 3686;
_localctx.name = dottedName();
State = 3687;
Match(T__43);
State = 3688;
_localctx.offset = int32();
_localctx.Value = Actions.CreateManifestResourceFileDeclaration(
_localctx.name.Value,
(_localctx.offset!=null?(_localctx.offset.Start):null),
_localctx.location);
}
break;
case T__24:
EnterOuterAlt(_localctx, 2);
{
State = 3691;
Match(T__24);
State = 3692;
Match(T__39);
State = 3693;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateManifestResourceAssemblyDeclaration(_localctx.name.Value);
}
break;
case T__15:
case T__34:
case INSTANCE:
case SQSTRING:
case DOTTEDNAME:
case ID:
EnterOuterAlt(_localctx, 3);
{
State = 3696;
_localctx.attribute = customAttrDecl();
_localctx.Value = Actions.CreateManifestResourceCustomAttributeDeclaration(
_localctx.attribute.Value,
(_localctx.attribute!=null?(_localctx.attribute.Start):null));
}
break;
case T__31:
case PP_DEFINE:
case PP_UNDEF:
case PP_IFDEF:
case PP_IFNDEF:
case PP_ELSE:
case PP_ENDIF:
case PP_INCLUDE:
EnterOuterAlt(_localctx, 4);
{
State = 3699;
compControl();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
public partial class DocumentContext : ParserRuleContext {
[System.Diagnostics.DebuggerNonUserCode] public DeclsContext decls() {
return GetRuleContext<DeclsContext>(0);
}
[System.Diagnostics.DebuggerNonUserCode] public ITerminalNode Eof() { return GetToken(CILParser.Eof, 0); }
public DocumentContext(ParserRuleContext parent, int invokingState)
: base(parent, invokingState)
{
}
public override int RuleIndex { get { return RULE_document; } }
}
[RuleVersion(0)]
public DocumentContext document() {
DocumentContext _localctx = new DocumentContext(Context, State);
EnterRule(_localctx, 372, RULE_document);
try {
EnterOuterAlt(_localctx, 1);
{
State = 3702;
decls();
State = 3703;
Match(Eof);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
ErrorHandler.ReportError(this, re);
ErrorHandler.Recover(this, re);
}
finally {
ExitRule();
}
return _localctx;
}
private static int[] _serializedATN = {
4,1,304,3706,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,
7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,
2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,
2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,
2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,
2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,
2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,
2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,
2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,
2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,
2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,
2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,
2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,
2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,
2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,
2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,
2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,
2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,
2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,
2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,
2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,
2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,
2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,
2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,
2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,
2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,
2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,
2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,
2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,1,0,1,0,1,1,1,1,1,1,1,
1,1,1,1,1,5,1,383,8,1,10,1,12,1,386,9,1,1,1,1,1,1,1,1,1,1,1,3,1,393,8,
1,1,2,1,2,1,3,1,3,1,3,5,3,400,8,3,10,3,12,3,403,9,3,1,3,1,3,1,3,1,4,5,
4,409,8,4,10,4,12,4,412,9,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,
5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,
1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,
5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,
1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,
5,1,5,1,5,1,5,1,5,1,5,3,5,500,8,5,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,8,
1,8,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,11,
1,11,1,11,1,11,1,11,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,
1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,3,13,551,8,13,1,14,1,
14,1,15,1,15,1,15,1,15,1,15,5,15,560,8,15,10,15,12,15,563,9,15,1,15,1,
15,1,16,1,16,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,
18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,592,8,18,
1,19,1,19,1,19,1,19,1,19,3,19,599,8,19,1,20,1,20,1,20,1,20,1,20,1,20,1,
20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,3,20,617,8,20,1,21,1,21,
1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,
1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,
3,21,649,8,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,
22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,
22,3,22,677,8,22,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,
1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,
1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,3,23,
717,8,23,1,24,1,24,1,24,1,25,1,25,1,25,1,25,1,25,1,25,3,25,728,8,25,1,
26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,5,27,738,8,27,10,27,12,27,741,9,
27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,5,28,751,8,28,10,28,12,28,754,
9,28,1,29,1,29,1,29,1,30,1,30,3,30,761,8,30,1,30,1,30,1,31,1,31,1,31,1,
31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,
31,3,31,783,8,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,
3,32,796,8,32,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,
34,5,34,810,8,34,10,34,12,34,813,9,34,1,34,1,34,1,35,1,35,1,36,1,36,1,
36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,5,38,834,
8,38,10,38,12,38,837,9,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,
1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,
1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,
1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,
1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,
1,39,1,39,1,39,1,39,1,39,3,39,909,8,39,1,40,1,40,1,40,1,40,1,40,3,40,916,
8,40,1,41,1,41,1,41,1,41,1,41,3,41,923,8,41,1,42,5,42,926,8,42,10,42,12,
42,929,9,42,1,43,1,43,1,43,1,43,5,43,935,8,43,10,43,12,43,938,9,43,1,43,
1,43,1,43,1,44,1,44,1,45,1,45,1,45,3,45,948,8,45,1,45,1,45,1,45,1,45,1,
45,1,45,1,45,3,45,957,8,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,
3,45,968,8,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,3,45,979,8,
45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,3,45,992,8,45,
1,45,1,45,3,45,996,8,45,1,46,1,46,1,46,1,46,5,46,1002,8,46,10,46,12,46,
1005,9,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,
1,46,3,46,1020,8,46,1,47,1,47,1,48,1,48,1,48,3,48,1027,8,48,1,49,1,49,
1,50,1,50,1,50,5,50,1034,8,50,10,50,12,50,1037,9,50,1,51,1,51,1,51,1,51,
1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,
1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,1064,8,51,1,52,1,52,1,52,1,52,
1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,
1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,
1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,
1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,
1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,
1,52,1,52,3,52,1142,8,52,3,52,1144,8,52,1,53,1,53,1,53,1,53,1,53,1,54,
1,54,1,54,1,54,1,54,1,54,1,54,3,54,1158,8,54,1,54,1,54,5,54,1162,8,54,
10,54,12,54,1165,9,54,1,54,1,54,1,54,1,54,1,54,1,54,3,54,1173,8,54,3,54,
1175,8,54,1,55,1,55,1,55,1,55,1,55,5,55,1182,8,55,10,55,12,55,1185,9,55,
1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,5,56,1196,8,56,10,56,12,56,
1199,9,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,57,5,57,1210,8,57,
10,57,12,57,1213,9,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,3,57,1222,8,57,
1,58,1,58,1,58,1,58,1,58,1,58,3,58,1230,8,58,1,58,1,58,3,58,1234,8,58,
1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,
1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,
1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,3,59,1273,8,59,1,60,1,60,
1,60,1,60,5,60,1279,8,60,10,60,12,60,1282,9,60,1,60,1,60,1,60,1,61,1,61,
1,61,5,61,1290,8,61,10,61,12,61,1293,9,61,1,62,1,62,1,62,1,62,1,62,1,62,
1,62,1,62,1,62,1,62,1,62,3,62,1306,8,62,1,63,1,63,1,63,1,63,1,63,1,63,
3,63,1314,8,63,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,
1,64,1,64,1,64,3,64,1330,8,64,1,65,1,65,1,65,1,65,1,65,1,65,5,65,1338,
8,65,10,65,12,65,1341,9,65,3,65,1343,8,65,1,66,1,66,1,66,1,66,1,66,1,66,
1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,66,
1,66,1,66,3,66,1367,8,66,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,
1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,
1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,
1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,
1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,
1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,
1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,
1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,
1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,
1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,
1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,3,67,1514,8,67,1,68,
1,68,1,68,1,68,1,68,1,68,1,68,1,68,3,68,1524,8,68,1,69,1,69,1,69,1,69,
1,69,5,69,1531,8,69,10,69,12,69,1534,9,69,3,69,1536,8,69,1,70,1,70,1,70,
1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,
1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,
1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,
1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,
1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,
1,70,1,70,1,70,1,70,1,70,1,70,1,70,3,70,1618,8,70,1,71,1,71,1,71,1,71,
1,71,5,71,1625,8,71,10,71,12,71,1628,9,71,1,72,1,72,1,72,1,72,1,72,1,72,
1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,
1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,3,72,1659,8,72,1,73,1,73,
1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,
1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,
1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,
1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,
3,73,1719,8,73,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,
1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,
1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,3,74,
1759,8,74,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,
1,75,1,75,3,75,1775,8,75,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,3,77,
1785,8,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
1,78,1,78,3,78,1815,8,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
1,78,1,78,1,78,3,78,1843,8,78,1,79,1,79,1,79,1,79,1,79,5,79,1850,8,79,
10,79,12,79,1853,9,79,1,79,1,79,1,79,3,79,1858,8,79,1,80,1,80,1,80,1,80,
1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,80,3,80,1875,8,80,
1,81,1,81,1,81,1,81,5,81,1881,8,81,10,81,12,81,1884,9,81,1,81,1,81,1,81,
1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,84,
1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,
1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,
1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,3,84,1941,8,84,1,85,
1,85,1,86,1,86,1,86,1,86,1,86,1,86,3,86,1951,8,86,1,86,1,86,1,86,1,86,
1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,3,86,1969,
8,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,
1,86,1,86,1,86,3,86,1987,8,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,
1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,3,87,2006,8,87,1,88,1,88,
1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,
1,88,1,88,1,88,3,88,2027,8,88,1,89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,
1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,3,90,2046,8,90,1,91,1,91,
1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,3,91,2061,8,91,
1,92,1,92,1,92,1,92,5,92,2067,8,92,10,92,12,92,2070,9,92,1,92,1,92,1,92,
1,93,1,93,1,93,1,93,1,93,1,93,3,93,2081,8,93,1,94,1,94,1,94,1,94,1,94,
1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,3,94,
2101,8,94,1,95,1,95,1,95,5,95,2106,8,95,10,95,12,95,2109,9,95,1,96,1,96,
3,96,2113,8,96,1,96,1,96,1,96,1,97,1,97,1,97,1,97,5,97,2122,8,97,10,97,
12,97,2125,9,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,99,3,99,2136,
8,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,
101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,
1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,
1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,
1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,
1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,
1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,
1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,
1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,5,101,
2244,8,101,10,101,12,101,2247,9,101,1,101,1,101,1,101,1,101,1,101,1,101,
1,101,5,101,2256,8,101,10,101,12,101,2259,9,101,1,101,1,101,1,101,1,101,
1,101,1,101,1,101,1,101,1,101,1,101,1,101,5,101,2272,8,101,10,101,12,101,
2275,9,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,5,101,
2286,8,101,10,101,12,101,2289,9,101,1,101,1,101,1,101,1,101,1,101,1,101,
3,101,2297,8,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,
1,102,1,102,5,102,2310,8,102,10,102,12,102,2313,9,102,1,102,1,102,1,102,
1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,
1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,
1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,
1,103,3,103,2355,8,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,
1,104,3,104,2366,8,104,1,105,1,105,1,105,1,105,1,105,3,105,2373,8,105,
1,106,1,106,1,106,1,106,1,106,1,106,3,106,2381,8,106,1,107,1,107,1,107,
1,107,5,107,2387,8,107,10,107,12,107,2390,9,107,1,107,1,107,1,107,1,107,
1,107,1,107,1,107,1,107,5,107,2400,8,107,10,107,12,107,2403,9,107,1,107,
1,107,1,107,3,107,2408,8,107,1,108,1,108,1,108,1,108,3,108,2414,8,108,
1,109,5,109,2417,8,109,10,109,12,109,2420,9,109,1,110,1,110,1,110,1,110,
1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,
1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,3,110,2448,
8,110,1,111,1,111,1,111,1,111,5,111,2454,8,111,10,111,12,111,2457,9,111,
1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,112,1,112,1,112,1,112,3,112,
2470,8,112,1,113,5,113,2473,8,113,10,113,12,113,2476,9,113,1,114,1,114,
1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,
1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,3,114,2500,8,114,1,115,
1,115,1,115,1,115,1,115,1,115,1,115,3,115,2509,8,115,1,116,1,116,1,116,
1,116,1,116,1,116,1,116,4,116,2518,8,116,11,116,12,116,2519,1,116,1,116,
3,116,2524,8,116,1,117,1,117,1,117,5,117,2529,8,117,10,117,12,117,2532,
9,117,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,
1,118,1,118,1,118,1,118,1,118,1,118,3,118,2551,8,118,1,119,1,119,1,119,
1,119,1,119,1,119,1,119,5,119,2560,8,119,10,119,12,119,2563,9,119,1,119,
1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,5,119,2575,8,119,
10,119,12,119,2578,9,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,
1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,
1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,
1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,
3,120,2624,8,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,3,121,
2634,8,121,3,121,2636,8,121,1,121,1,121,1,121,5,121,2641,8,121,10,121,
12,121,2644,9,121,1,121,1,121,1,121,3,121,2649,8,121,1,122,1,122,1,122,
1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,
1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,
1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,
1,122,1,122,1,122,3,122,2693,8,122,1,123,1,123,1,123,1,123,1,123,1,123,
1,123,3,123,2702,8,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,
1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,
1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,
1,124,1,124,1,124,1,124,1,124,1,124,3,124,2742,8,124,1,125,5,125,2745,
8,125,10,125,12,125,2748,9,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,
1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,
1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,
1,126,1,126,1,126,1,126,1,126,1,126,3,126,2787,8,126,1,127,1,127,3,127,
2791,8,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,3,128,2801,
8,128,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,
1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,3,130,2823,8,130,
1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,5,131,2833,8,131,10,131,
12,131,2836,9,131,1,131,1,131,1,131,1,131,1,131,1,131,5,131,2844,8,131,
10,131,12,131,2847,9,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,
1,131,1,131,5,131,2859,8,131,10,131,12,131,2862,9,131,1,131,1,131,1,131,
1,131,1,131,1,131,1,131,1,131,5,131,2872,8,131,10,131,12,131,2875,9,131,
1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,5,131,2885,8,131,10,131,
12,131,2888,9,131,3,131,2890,8,131,1,132,1,132,1,132,1,132,1,133,1,133,
1,133,1,133,1,133,1,133,3,133,2902,8,133,1,134,1,134,1,134,1,134,1,135,
1,135,1,135,1,136,1,136,1,136,4,136,2914,8,136,11,136,12,136,2915,1,137,
1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,
1,137,1,137,1,137,3,137,2934,8,137,1,138,1,138,1,138,1,138,1,138,1,138,
1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138,3,138,2952,
8,138,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,
1,139,3,139,2966,8,139,1,140,1,140,1,140,1,141,1,141,1,142,1,142,1,143,
1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,143,
1,143,1,143,3,143,2990,8,143,1,144,1,144,1,144,1,145,1,145,1,145,1,145,
1,145,1,145,1,145,1,145,1,145,1,145,3,145,3005,8,145,1,146,1,146,1,146,
1,146,1,146,3,146,3012,8,146,1,147,1,147,1,147,1,147,1,147,4,147,3019,
8,147,11,147,12,147,3020,3,147,3023,8,147,1,148,1,148,1,148,5,148,3028,
8,148,10,148,12,148,3031,9,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,
1,149,3,149,3041,8,149,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,
1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,
1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,
1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,
1,150,1,150,1,150,1,150,3,150,3091,8,150,1,151,1,151,1,151,1,151,1,151,
1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,
1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,
1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,
1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,
1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,
1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,
1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,
1,151,3,151,3183,8,151,1,152,1,152,1,152,5,152,3188,8,152,10,152,12,152,
3191,9,152,1,153,1,153,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,154,
3,154,3203,8,154,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,
1,155,1,155,1,155,1,155,1,155,1,155,3,155,3376,8,155,1,156,1,156,1,156,
1,156,1,156,1,156,5,156,3384,8,156,10,156,12,156,3387,9,156,1,157,1,157,
1,157,1,157,1,157,1,157,5,157,3395,8,157,10,157,12,157,3398,9,157,1,158,
1,158,1,158,5,158,3403,8,158,10,158,12,158,3406,9,158,1,159,1,159,1,159,
5,159,3411,8,159,10,159,12,159,3414,9,159,1,160,1,160,1,160,5,160,3419,
8,160,10,160,12,160,3422,9,160,1,161,1,161,1,161,5,161,3427,8,161,10,161,
12,161,3430,9,161,1,162,1,162,1,162,5,162,3435,8,162,10,162,12,162,3438,
9,162,1,163,1,163,1,163,1,163,5,163,3444,8,163,10,163,12,163,3447,9,163,
1,164,1,164,1,164,5,164,3452,8,164,10,164,12,164,3455,9,164,1,165,1,165,
1,165,1,165,1,165,1,165,1,165,1,165,3,165,3465,8,165,1,166,1,166,1,166,
5,166,3470,8,166,10,166,12,166,3473,9,166,1,167,1,167,1,167,1,167,1,167,
1,167,1,167,1,167,1,167,3,167,3484,8,167,1,168,1,168,1,168,1,168,1,168,
1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,
1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,
1,168,1,168,1,168,3,168,3518,8,168,1,169,1,169,1,169,1,169,1,169,1,169,
1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,
1,170,1,170,3,170,3540,8,170,1,171,1,171,1,171,5,171,3545,8,171,10,171,
12,171,3548,9,171,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,
1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,3,172,3569,
8,172,1,173,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174,1,174,1,174,
1,174,1,175,1,175,1,175,1,175,1,175,1,176,1,176,1,176,5,176,3591,8,176,
10,176,12,176,3594,9,176,1,177,1,177,1,177,1,177,1,177,1,177,1,177,1,177,
1,177,1,177,1,177,1,177,1,177,1,177,1,177,3,177,3611,8,177,1,178,1,178,
1,178,5,178,3616,8,178,10,178,12,178,3619,9,178,1,179,1,179,1,179,1,179,
1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,
1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,3,179,3646,8,179,
1,180,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,181,1,181,1,181,1,181,
1,181,1,181,1,181,1,181,1,181,1,181,3,181,3666,8,181,1,182,1,182,1,182,
5,182,3671,8,182,10,182,12,182,3674,9,182,1,183,1,183,1,184,1,184,1,184,
5,184,3681,8,184,10,184,12,184,3684,9,184,1,185,1,185,1,185,1,185,1,185,
1,185,1,185,1,185,1,185,1,185,1,185,1,185,1,185,1,185,1,185,3,185,3701,
8,185,1,186,1,186,1,186,1,186,0,0,187,0,2,4,6,8,10,12,14,16,18,20,22,24,
26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,
74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,
116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,
152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,
188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,
224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,
260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,
296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,
332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,
368,370,372,0,16,5,0,1,15,242,242,246,246,263,263,288,288,4,0,16,16,242,
242,263,263,287,288,1,0,172,173,1,0,37,38,2,0,45,47,185,186,1,0,73,74,
1,0,262,263,3,0,2,2,61,61,77,83,2,0,228,228,259,260,1,0,95,96,1,0,97,111,
1,0,187,188,1,0,183,185,1,0,183,188,2,0,172,172,288,289,1,0,51,52,4144,
0,374,1,0,0,0,2,392,1,0,0,0,4,394,1,0,0,0,6,401,1,0,0,0,8,410,1,0,0,0,
10,499,1,0,0,0,12,501,1,0,0,0,14,505,1,0,0,0,16,509,1,0,0,0,18,514,1,0,
0,0,20,518,1,0,0,0,22,522,1,0,0,0,24,530,1,0,0,0,26,550,1,0,0,0,28,552,
1,0,0,0,30,554,1,0,0,0,32,566,1,0,0,0,34,568,1,0,0,0,36,591,1,0,0,0,38,
598,1,0,0,0,40,616,1,0,0,0,42,648,1,0,0,0,44,676,1,0,0,0,46,716,1,0,0,
0,48,718,1,0,0,0,50,727,1,0,0,0,52,729,1,0,0,0,54,739,1,0,0,0,56,752,1,
0,0,0,58,755,1,0,0,0,60,758,1,0,0,0,62,782,1,0,0,0,64,795,1,0,0,0,66,797,
1,0,0,0,68,811,1,0,0,0,70,816,1,0,0,0,72,818,1,0,0,0,74,825,1,0,0,0,76,
829,1,0,0,0,78,908,1,0,0,0,80,915,1,0,0,0,82,922,1,0,0,0,84,927,1,0,0,
0,86,936,1,0,0,0,88,942,1,0,0,0,90,995,1,0,0,0,92,997,1,0,0,0,94,1021,
1,0,0,0,96,1026,1,0,0,0,98,1028,1,0,0,0,100,1035,1,0,0,0,102,1063,1,0,
0,0,104,1143,1,0,0,0,106,1145,1,0,0,0,108,1174,1,0,0,0,110,1176,1,0,0,
0,112,1190,1,0,0,0,114,1221,1,0,0,0,116,1233,1,0,0,0,118,1272,1,0,0,0,
120,1280,1,0,0,0,122,1291,1,0,0,0,124,1305,1,0,0,0,126,1313,1,0,0,0,128,
1329,1,0,0,0,130,1342,1,0,0,0,132,1366,1,0,0,0,134,1513,1,0,0,0,136,1523,
1,0,0,0,138,1535,1,0,0,0,140,1617,1,0,0,0,142,1619,1,0,0,0,144,1658,1,
0,0,0,146,1718,1,0,0,0,148,1758,1,0,0,0,150,1774,1,0,0,0,152,1776,1,0,
0,0,154,1780,1,0,0,0,156,1842,1,0,0,0,158,1857,1,0,0,0,160,1874,1,0,0,
0,162,1882,1,0,0,0,164,1888,1,0,0,0,166,1893,1,0,0,0,168,1940,1,0,0,0,
170,1942,1,0,0,0,172,1986,1,0,0,0,174,2005,1,0,0,0,176,2026,1,0,0,0,178,
2028,1,0,0,0,180,2045,1,0,0,0,182,2060,1,0,0,0,184,2068,1,0,0,0,186,2080,
1,0,0,0,188,2100,1,0,0,0,190,2107,1,0,0,0,192,2110,1,0,0,0,194,2123,1,
0,0,0,196,2129,1,0,0,0,198,2135,1,0,0,0,200,2139,1,0,0,0,202,2296,1,0,
0,0,204,2298,1,0,0,0,206,2354,1,0,0,0,208,2365,1,0,0,0,210,2372,1,0,0,
0,212,2380,1,0,0,0,214,2407,1,0,0,0,216,2413,1,0,0,0,218,2418,1,0,0,0,
220,2447,1,0,0,0,222,2449,1,0,0,0,224,2469,1,0,0,0,226,2474,1,0,0,0,228,
2499,1,0,0,0,230,2508,1,0,0,0,232,2523,1,0,0,0,234,2530,1,0,0,0,236,2550,
1,0,0,0,238,2552,1,0,0,0,240,2623,1,0,0,0,242,2648,1,0,0,0,244,2692,1,
0,0,0,246,2701,1,0,0,0,248,2741,1,0,0,0,250,2746,1,0,0,0,252,2786,1,0,
0,0,254,2788,1,0,0,0,256,2794,1,0,0,0,258,2802,1,0,0,0,260,2822,1,0,0,
0,262,2889,1,0,0,0,264,2891,1,0,0,0,266,2901,1,0,0,0,268,2903,1,0,0,0,
270,2907,1,0,0,0,272,2913,1,0,0,0,274,2933,1,0,0,0,276,2951,1,0,0,0,278,
2965,1,0,0,0,280,2967,1,0,0,0,282,2970,1,0,0,0,284,2972,1,0,0,0,286,2989,
1,0,0,0,288,2991,1,0,0,0,290,3004,1,0,0,0,292,3011,1,0,0,0,294,3022,1,
0,0,0,296,3029,1,0,0,0,298,3040,1,0,0,0,300,3090,1,0,0,0,302,3182,1,0,
0,0,304,3189,1,0,0,0,306,3192,1,0,0,0,308,3202,1,0,0,0,310,3375,1,0,0,
0,312,3385,1,0,0,0,314,3396,1,0,0,0,316,3404,1,0,0,0,318,3412,1,0,0,0,
320,3420,1,0,0,0,322,3428,1,0,0,0,324,3436,1,0,0,0,326,3445,1,0,0,0,328,
3453,1,0,0,0,330,3464,1,0,0,0,332,3471,1,0,0,0,334,3483,1,0,0,0,336,3517,
1,0,0,0,338,3519,1,0,0,0,340,3539,1,0,0,0,342,3546,1,0,0,0,344,3568,1,
0,0,0,346,3570,1,0,0,0,348,3576,1,0,0,0,350,3582,1,0,0,0,352,3592,1,0,
0,0,354,3610,1,0,0,0,356,3617,1,0,0,0,358,3645,1,0,0,0,360,3647,1,0,0,
0,362,3665,1,0,0,0,364,3672,1,0,0,0,366,3675,1,0,0,0,368,3682,1,0,0,0,
370,3700,1,0,0,0,372,3702,1,0,0,0,374,375,7,0,0,0,375,1,1,0,0,0,376,377,
5,287,0,0,377,393,6,1,-1,0,378,379,3,4,2,0,379,380,6,1,-1,0,380,381,5,
264,0,0,381,383,1,0,0,0,382,378,1,0,0,0,383,386,1,0,0,0,384,382,1,0,0,
0,384,385,1,0,0,0,385,387,1,0,0,0,386,384,1,0,0,0,387,388,3,4,2,0,388,
389,6,1,-1,0,389,393,1,0,0,0,390,391,5,263,0,0,391,393,6,1,-1,0,392,376,
1,0,0,0,392,384,1,0,0,0,392,390,1,0,0,0,393,3,1,0,0,0,394,395,7,1,0,0,
395,5,1,0,0,0,396,397,5,262,0,0,397,398,6,3,-1,0,398,400,5,265,0,0,399,
396,1,0,0,0,400,403,1,0,0,0,401,399,1,0,0,0,401,402,1,0,0,0,402,404,1,
0,0,0,403,401,1,0,0,0,404,405,5,262,0,0,405,406,6,3,-1,0,406,7,1,0,0,0,
407,409,3,10,5,0,408,407,1,0,0,0,409,412,1,0,0,0,410,408,1,0,0,0,410,411,
1,0,0,0,411,9,1,0,0,0,412,410,1,0,0,0,413,414,3,76,38,0,414,415,5,17,0,
0,415,416,3,84,42,0,416,417,5,18,0,0,417,500,1,0,0,0,418,419,3,74,37,0,
419,420,5,17,0,0,420,421,3,8,4,0,421,422,5,18,0,0,422,500,1,0,0,0,423,
424,3,238,119,0,424,425,5,17,0,0,425,426,3,250,125,0,426,427,5,18,0,0,
427,500,1,0,0,0,428,500,3,204,102,0,429,430,6,5,-1,0,430,431,3,288,144,
0,431,432,6,5,-1,0,432,500,1,0,0,0,433,434,6,5,-1,0,434,435,3,72,36,0,
435,436,6,5,-1,0,436,500,1,0,0,0,437,438,6,5,-1,0,438,439,3,66,33,0,439,
440,6,5,-1,0,440,500,1,0,0,0,441,442,6,5,-1,0,442,443,3,90,45,0,443,444,
6,5,-1,0,444,500,1,0,0,0,445,446,6,5,-1,0,446,447,3,92,46,0,447,448,6,
5,-1,0,448,500,1,0,0,0,449,450,6,5,-1,0,450,451,3,22,11,0,451,452,6,5,
-1,0,452,500,1,0,0,0,453,454,6,5,-1,0,454,455,3,338,169,0,455,456,6,5,
-1,0,456,500,1,0,0,0,457,458,6,5,-1,0,458,459,3,346,173,0,459,460,6,5,
-1,0,460,500,1,0,0,0,461,462,6,5,-1,0,462,463,3,360,180,0,463,464,6,5,
-1,0,464,500,1,0,0,0,465,466,6,5,-1,0,466,467,3,64,32,0,467,468,6,5,-1,
0,468,500,1,0,0,0,469,470,6,5,-1,0,470,471,3,156,78,0,471,472,6,5,-1,0,
472,500,1,0,0,0,473,474,3,334,167,0,474,475,6,5,-1,0,475,500,1,0,0,0,476,
477,6,5,-1,0,477,500,3,12,6,0,478,479,6,5,-1,0,479,500,3,14,7,0,480,481,
6,5,-1,0,481,500,3,16,8,0,482,483,6,5,-1,0,483,500,3,18,9,0,484,485,6,
5,-1,0,485,500,3,20,10,0,486,487,6,5,-1,0,487,488,3,26,13,0,488,489,6,
5,-1,0,489,500,1,0,0,0,490,491,6,5,-1,0,491,492,3,42,21,0,492,493,6,5,
-1,0,493,500,1,0,0,0,494,495,6,5,-1,0,495,500,3,40,20,0,496,500,3,30,15,
0,497,498,6,5,-1,0,498,500,3,24,12,0,499,413,1,0,0,0,499,418,1,0,0,0,499,
423,1,0,0,0,499,428,1,0,0,0,499,429,1,0,0,0,499,433,1,0,0,0,499,437,1,
0,0,0,499,441,1,0,0,0,499,445,1,0,0,0,499,449,1,0,0,0,499,453,1,0,0,0,
499,457,1,0,0,0,499,461,1,0,0,0,499,465,1,0,0,0,499,469,1,0,0,0,499,473,
1,0,0,0,499,476,1,0,0,0,499,478,1,0,0,0,499,480,1,0,0,0,499,482,1,0,0,
0,499,484,1,0,0,0,499,486,1,0,0,0,499,490,1,0,0,0,499,494,1,0,0,0,499,
496,1,0,0,0,499,497,1,0,0,0,500,11,1,0,0,0,501,502,5,19,0,0,502,503,3,
32,16,0,503,504,6,6,-1,0,504,13,1,0,0,0,505,506,5,20,0,0,506,507,3,32,
16,0,507,508,6,7,-1,0,508,15,1,0,0,0,509,510,5,21,0,0,510,511,5,22,0,0,
511,512,3,32,16,0,512,513,6,8,-1,0,513,17,1,0,0,0,514,515,5,23,0,0,515,
516,3,34,17,0,516,517,6,9,-1,0,517,19,1,0,0,0,518,519,5,24,0,0,519,520,
3,34,17,0,520,521,6,10,-1,0,521,21,1,0,0,0,522,523,5,25,0,0,523,524,3,
100,50,0,524,525,3,2,1,0,525,526,5,17,0,0,526,527,3,122,61,0,527,528,5,
18,0,0,528,529,6,11,-1,0,529,23,1,0,0,0,530,531,5,26,0,0,531,25,1,0,0,
0,532,533,5,27,0,0,533,534,3,28,14,0,534,535,6,13,-1,0,535,551,1,0,0,0,
536,537,5,27,0,0,537,538,3,28,14,0,538,539,5,28,0,0,539,540,3,28,14,0,
540,541,6,13,-1,0,541,551,1,0,0,0,542,543,5,27,0,0,543,544,3,28,14,0,544,
545,5,28,0,0,545,546,3,28,14,0,546,547,5,28,0,0,547,548,3,28,14,0,548,
549,6,13,-1,0,549,551,1,0,0,0,550,532,1,0,0,0,550,536,1,0,0,0,550,542,
1,0,0,0,551,27,1,0,0,0,552,553,5,263,0,0,553,29,1,0,0,0,554,555,5,29,0,
0,555,561,5,17,0,0,556,557,3,118,59,0,557,558,6,15,-1,0,558,560,1,0,0,
0,559,556,1,0,0,0,560,563,1,0,0,0,561,559,1,0,0,0,561,562,1,0,0,0,562,
564,1,0,0,0,563,561,1,0,0,0,564,565,5,18,0,0,565,31,1,0,0,0,566,567,5,
172,0,0,567,33,1,0,0,0,568,569,7,2,0,0,569,35,1,0,0,0,570,571,5,174,0,
0,571,592,6,18,-1,0,572,573,3,32,16,0,573,574,5,264,0,0,574,575,6,18,-1,
0,575,592,1,0,0,0,576,577,3,32,16,0,577,578,6,18,-1,0,578,592,1,0,0,0,
579,580,5,187,0,0,580,581,5,30,0,0,581,582,3,32,16,0,582,583,5,31,0,0,
583,584,6,18,-1,0,584,592,1,0,0,0,585,586,5,188,0,0,586,587,5,30,0,0,587,
588,3,34,17,0,588,589,5,31,0,0,589,590,6,18,-1,0,590,592,1,0,0,0,591,570,
1,0,0,0,591,572,1,0,0,0,591,576,1,0,0,0,591,579,1,0,0,0,591,585,1,0,0,
0,592,37,1,0,0,0,593,594,3,32,16,0,594,595,6,19,-1,0,595,599,1,0,0,0,596,
597,5,261,0,0,597,599,6,19,-1,0,598,593,1,0,0,0,598,596,1,0,0,0,599,39,
1,0,0,0,600,601,5,266,0,0,601,617,5,288,0,0,602,603,5,266,0,0,603,604,
5,288,0,0,604,617,5,262,0,0,605,606,5,267,0,0,606,617,5,288,0,0,607,608,
5,268,0,0,608,617,5,288,0,0,609,610,5,269,0,0,610,617,5,288,0,0,611,617,
5,270,0,0,612,617,5,271,0,0,613,614,5,272,0,0,614,617,5,262,0,0,615,617,
5,32,0,0,616,600,1,0,0,0,616,602,1,0,0,0,616,605,1,0,0,0,616,607,1,0,0,
0,616,609,1,0,0,0,616,611,1,0,0,0,616,612,1,0,0,0,616,613,1,0,0,0,616,
615,1,0,0,0,617,41,1,0,0,0,618,619,5,33,0,0,619,620,3,142,71,0,620,621,
5,34,0,0,621,622,3,2,1,0,622,623,6,21,-1,0,623,649,1,0,0,0,624,625,5,33,
0,0,625,626,3,118,59,0,626,627,5,34,0,0,627,628,3,2,1,0,628,629,6,21,-1,
0,629,649,1,0,0,0,630,631,5,33,0,0,631,632,3,180,90,0,632,633,5,34,0,0,
633,634,3,2,1,0,634,635,6,21,-1,0,635,649,1,0,0,0,636,637,5,33,0,0,637,
638,3,44,22,0,638,639,5,34,0,0,639,640,3,2,1,0,640,641,6,21,-1,0,641,649,
1,0,0,0,642,643,5,33,0,0,643,644,3,46,23,0,644,645,5,34,0,0,645,646,3,
2,1,0,646,647,6,21,-1,0,647,649,1,0,0,0,648,618,1,0,0,0,648,624,1,0,0,
0,648,630,1,0,0,0,648,636,1,0,0,0,648,642,1,0,0,0,649,43,1,0,0,0,650,651,
5,35,0,0,651,652,3,48,24,0,652,653,6,22,-1,0,653,677,1,0,0,0,654,655,5,
35,0,0,655,656,3,48,24,0,656,657,5,36,0,0,657,658,3,6,3,0,658,659,6,22,
-1,0,659,677,1,0,0,0,660,661,5,35,0,0,661,662,3,48,24,0,662,663,5,36,0,
0,663,664,5,17,0,0,664,665,3,52,26,0,665,666,5,18,0,0,666,667,6,22,-1,
0,667,677,1,0,0,0,668,669,5,35,0,0,669,670,3,48,24,0,670,671,5,36,0,0,
671,672,5,30,0,0,672,673,3,304,152,0,673,674,5,31,0,0,674,675,6,22,-1,
0,675,677,1,0,0,0,676,650,1,0,0,0,676,654,1,0,0,0,676,660,1,0,0,0,676,
668,1,0,0,0,677,45,1,0,0,0,678,679,5,35,0,0,679,680,5,30,0,0,680,681,3,
50,25,0,681,682,5,31,0,0,682,683,3,48,24,0,683,684,6,23,-1,0,684,717,1,
0,0,0,685,686,5,35,0,0,686,687,5,30,0,0,687,688,3,50,25,0,688,689,5,31,
0,0,689,690,3,48,24,0,690,691,5,36,0,0,691,692,3,6,3,0,692,693,6,23,-1,
0,693,717,1,0,0,0,694,695,5,35,0,0,695,696,5,30,0,0,696,697,3,50,25,0,
697,698,5,31,0,0,698,699,3,48,24,0,699,700,5,36,0,0,700,701,5,17,0,0,701,
702,3,52,26,0,702,703,5,18,0,0,703,704,6,23,-1,0,704,717,1,0,0,0,705,706,
5,35,0,0,706,707,5,30,0,0,707,708,3,50,25,0,708,709,5,31,0,0,709,710,3,
48,24,0,710,711,5,36,0,0,711,712,5,30,0,0,712,713,3,304,152,0,713,714,
5,31,0,0,714,715,6,23,-1,0,715,717,1,0,0,0,716,678,1,0,0,0,716,685,1,0,
0,0,716,694,1,0,0,0,716,705,1,0,0,0,717,47,1,0,0,0,718,719,3,172,86,0,
719,720,6,24,-1,0,720,49,1,0,0,0,721,722,3,128,64,0,722,723,6,25,-1,0,
723,728,1,0,0,0,724,725,3,180,90,0,725,726,6,25,-1,0,726,728,1,0,0,0,727,
721,1,0,0,0,727,724,1,0,0,0,728,51,1,0,0,0,729,730,3,54,27,0,730,731,3,
56,28,0,731,732,6,26,-1,0,732,53,1,0,0,0,733,734,3,310,155,0,734,735,6,
27,-1,0,735,738,1,0,0,0,736,738,3,40,20,0,737,733,1,0,0,0,737,736,1,0,
0,0,738,741,1,0,0,0,739,737,1,0,0,0,739,740,1,0,0,0,740,55,1,0,0,0,741,
739,1,0,0,0,742,743,3,58,29,0,743,744,3,60,30,0,744,745,3,2,1,0,745,746,
5,36,0,0,746,747,3,310,155,0,747,748,6,28,-1,0,748,751,1,0,0,0,749,751,
3,40,20,0,750,742,1,0,0,0,750,749,1,0,0,0,751,754,1,0,0,0,752,750,1,0,
0,0,752,753,1,0,0,0,753,57,1,0,0,0,754,752,1,0,0,0,755,756,7,3,0,0,756,
757,6,29,-1,0,757,59,1,0,0,0,758,760,3,62,31,0,759,761,5,260,0,0,760,759,
1,0,0,0,760,761,1,0,0,0,761,762,1,0,0,0,762,763,6,30,-1,0,763,61,1,0,0,
0,764,765,3,148,74,0,765,766,6,31,-1,0,766,783,1,0,0,0,767,768,3,2,1,0,
768,769,6,31,-1,0,769,783,1,0,0,0,770,771,5,195,0,0,771,783,6,31,-1,0,
772,773,5,196,0,0,773,783,6,31,-1,0,774,775,5,201,0,0,775,776,5,39,0,0,
776,777,5,263,0,0,777,783,6,31,-1,0,778,779,5,201,0,0,779,780,3,118,59,
0,780,781,6,31,-1,0,781,783,1,0,0,0,782,764,1,0,0,0,782,767,1,0,0,0,782,
770,1,0,0,0,782,772,1,0,0,0,782,774,1,0,0,0,782,778,1,0,0,0,783,63,1,0,
0,0,784,785,5,197,0,0,785,786,5,40,0,0,786,787,3,2,1,0,787,788,6,32,-1,
0,788,796,1,0,0,0,789,790,5,197,0,0,790,791,3,2,1,0,791,792,6,32,-1,0,
792,796,1,0,0,0,793,794,5,197,0,0,794,796,6,32,-1,0,795,784,1,0,0,0,795,
789,1,0,0,0,795,793,1,0,0,0,796,65,1,0,0,0,797,798,5,41,0,0,798,799,5,
42,0,0,799,800,3,32,16,0,800,801,5,43,0,0,801,802,3,68,34,0,802,803,5,
44,0,0,803,804,3,0,0,0,804,805,6,33,-1,0,805,67,1,0,0,0,806,807,3,70,35,
0,807,808,6,34,-1,0,808,810,1,0,0,0,809,806,1,0,0,0,810,813,1,0,0,0,811,
809,1,0,0,0,811,812,1,0,0,0,812,814,1,0,0,0,813,811,1,0,0,0,814,815,6,
34,-1,0,815,69,1,0,0,0,816,817,7,4,0,0,817,71,1,0,0,0,818,819,5,48,0,0,
819,820,5,36,0,0,820,821,5,30,0,0,821,822,3,304,152,0,822,823,5,31,0,0,
823,824,6,36,-1,0,824,73,1,0,0,0,825,826,5,49,0,0,826,827,3,2,1,0,827,
828,6,37,-1,0,828,75,1,0,0,0,829,835,5,50,0,0,830,831,3,78,39,0,831,832,
6,38,-1,0,832,834,1,0,0,0,833,830,1,0,0,0,834,837,1,0,0,0,835,833,1,0,
0,0,835,836,1,0,0,0,836,838,1,0,0,0,837,835,1,0,0,0,838,839,3,2,1,0,839,
840,3,186,93,0,840,841,3,80,40,0,841,842,3,82,41,0,842,843,6,38,-1,0,843,
77,1,0,0,0,844,845,5,51,0,0,845,909,6,39,-1,0,846,847,5,52,0,0,847,909,
6,39,-1,0,848,849,5,198,0,0,849,909,6,39,-1,0,850,851,5,201,0,0,851,909,
6,39,-1,0,852,853,5,220,0,0,853,909,6,39,-1,0,854,855,5,53,0,0,855,909,
6,39,-1,0,856,857,5,54,0,0,857,909,6,39,-1,0,858,859,5,55,0,0,859,909,
6,39,-1,0,860,861,5,56,0,0,861,909,6,39,-1,0,862,863,5,243,0,0,863,909,
6,39,-1,0,864,865,5,15,0,0,865,909,6,39,-1,0,866,867,5,223,0,0,867,909,
6,39,-1,0,868,869,5,57,0,0,869,909,6,39,-1,0,870,871,5,58,0,0,871,909,
6,39,-1,0,872,873,5,59,0,0,873,909,6,39,-1,0,874,875,5,60,0,0,875,909,
6,39,-1,0,876,877,5,61,0,0,877,909,6,39,-1,0,878,879,5,62,0,0,879,880,
5,51,0,0,880,909,6,39,-1,0,881,882,5,62,0,0,882,883,5,52,0,0,883,909,6,
39,-1,0,884,885,5,62,0,0,885,886,5,63,0,0,886,909,6,39,-1,0,887,888,5,
62,0,0,888,889,5,64,0,0,889,909,6,39,-1,0,890,891,5,62,0,0,891,892,5,65,
0,0,892,909,6,39,-1,0,893,894,5,62,0,0,894,895,5,66,0,0,895,909,6,39,-1,
0,896,897,5,67,0,0,897,909,6,39,-1,0,898,899,5,68,0,0,899,909,6,39,-1,
0,900,901,5,69,0,0,901,909,6,39,-1,0,902,903,5,70,0,0,903,904,5,30,0,0,
904,905,3,32,16,0,905,906,5,31,0,0,906,907,6,39,-1,0,907,909,1,0,0,0,908,
844,1,0,0,0,908,846,1,0,0,0,908,848,1,0,0,0,908,850,1,0,0,0,908,852,1,
0,0,0,908,854,1,0,0,0,908,856,1,0,0,0,908,858,1,0,0,0,908,860,1,0,0,0,
908,862,1,0,0,0,908,864,1,0,0,0,908,866,1,0,0,0,908,868,1,0,0,0,908,870,
1,0,0,0,908,872,1,0,0,0,908,874,1,0,0,0,908,876,1,0,0,0,908,878,1,0,0,
0,908,881,1,0,0,0,908,884,1,0,0,0,908,887,1,0,0,0,908,890,1,0,0,0,908,
893,1,0,0,0,908,896,1,0,0,0,908,898,1,0,0,0,908,900,1,0,0,0,908,902,1,
0,0,0,909,79,1,0,0,0,910,916,1,0,0,0,911,912,5,71,0,0,912,913,3,126,63,
0,913,914,6,40,-1,0,914,916,1,0,0,0,915,910,1,0,0,0,915,911,1,0,0,0,916,
81,1,0,0,0,917,923,1,0,0,0,918,919,5,72,0,0,919,920,3,86,43,0,920,921,
6,41,-1,0,921,923,1,0,0,0,922,917,1,0,0,0,922,918,1,0,0,0,923,83,1,0,0,
0,924,926,3,202,101,0,925,924,1,0,0,0,926,929,1,0,0,0,927,925,1,0,0,0,
927,928,1,0,0,0,928,85,1,0,0,0,929,927,1,0,0,0,930,931,3,126,63,0,931,
932,6,43,-1,0,932,933,5,28,0,0,933,935,1,0,0,0,934,930,1,0,0,0,935,938,
1,0,0,0,936,934,1,0,0,0,936,937,1,0,0,0,937,939,1,0,0,0,938,936,1,0,0,
0,939,940,3,126,63,0,940,941,6,43,-1,0,941,87,1,0,0,0,942,943,7,5,0,0,
943,89,1,0,0,0,944,945,3,88,44,0,945,947,3,32,16,0,946,948,7,6,0,0,947,
946,1,0,0,0,947,948,1,0,0,0,948,949,1,0,0,0,949,950,6,45,-1,0,950,996,
1,0,0,0,951,952,3,88,44,0,952,953,3,32,16,0,953,954,5,75,0,0,954,956,3,
32,16,0,955,957,5,263,0,0,956,955,1,0,0,0,956,957,1,0,0,0,957,958,1,0,
0,0,958,959,6,45,-1,0,959,996,1,0,0,0,960,961,3,88,44,0,961,962,3,32,16,
0,962,963,5,75,0,0,963,964,3,32,16,0,964,965,5,28,0,0,965,967,3,32,16,
0,966,968,5,263,0,0,967,966,1,0,0,0,967,968,1,0,0,0,968,969,1,0,0,0,969,
970,6,45,-1,0,970,996,1,0,0,0,971,972,3,88,44,0,972,973,3,32,16,0,973,
974,5,28,0,0,974,975,3,32,16,0,975,976,5,75,0,0,976,978,3,32,16,0,977,
979,5,263,0,0,978,977,1,0,0,0,978,979,1,0,0,0,979,980,1,0,0,0,980,981,
6,45,-1,0,981,996,1,0,0,0,982,983,3,88,44,0,983,984,3,32,16,0,984,985,
5,28,0,0,985,986,3,32,16,0,986,987,5,75,0,0,987,988,3,32,16,0,988,989,
5,28,0,0,989,991,3,32,16,0,990,992,5,263,0,0,991,990,1,0,0,0,991,992,1,
0,0,0,992,993,1,0,0,0,993,994,6,45,-1,0,994,996,1,0,0,0,995,944,1,0,0,
0,995,951,1,0,0,0,995,960,1,0,0,0,995,971,1,0,0,0,995,982,1,0,0,0,996,
91,1,0,0,0,997,1003,5,21,0,0,998,999,3,94,47,0,999,1000,6,46,-1,0,1000,
1002,1,0,0,0,1001,998,1,0,0,0,1002,1005,1,0,0,0,1003,1001,1,0,0,0,1003,
1004,1,0,0,0,1004,1006,1,0,0,0,1005,1003,1,0,0,0,1006,1007,3,2,1,0,1007,
1008,6,46,-1,0,1008,1009,3,96,48,0,1009,1019,6,46,-1,0,1010,1011,5,179,
0,0,1011,1012,5,36,0,0,1012,1013,5,30,0,0,1013,1014,3,304,152,0,1014,1015,
5,31,0,0,1015,1016,6,46,-1,0,1016,1017,3,96,48,0,1017,1018,6,46,-1,0,1018,
1020,1,0,0,0,1019,1010,1,0,0,0,1019,1020,1,0,0,0,1020,93,1,0,0,0,1021,
1022,5,76,0,0,1022,95,1,0,0,0,1023,1027,1,0,0,0,1024,1025,5,297,0,0,1025,
1027,6,48,-1,0,1026,1023,1,0,0,0,1026,1024,1,0,0,0,1027,97,1,0,0,0,1028,
1029,7,7,0,0,1029,99,1,0,0,0,1030,1031,3,98,49,0,1031,1032,6,50,-1,0,1032,
1034,1,0,0,0,1033,1030,1,0,0,0,1034,1037,1,0,0,0,1035,1033,1,0,0,0,1035,
1036,1,0,0,0,1036,101,1,0,0,0,1037,1035,1,0,0,0,1038,1064,3,104,52,0,1039,
1040,5,279,0,0,1040,1041,3,172,86,0,1041,1042,6,51,-1,0,1042,1064,1,0,
0,0,1043,1044,5,285,0,0,1044,1045,3,182,91,0,1045,1046,6,51,-1,0,1046,
1064,1,0,0,0,1047,1048,5,285,0,0,1048,1049,3,178,89,0,1049,1050,6,51,-1,
0,1050,1064,1,0,0,0,1051,1052,5,283,0,0,1052,1053,3,126,63,0,1053,1054,
6,51,-1,0,1054,1064,1,0,0,0,1055,1056,5,280,0,0,1056,1057,3,106,53,0,1057,
1058,6,51,-1,0,1058,1064,1,0,0,0,1059,1060,5,286,0,0,1060,1061,3,50,25,
0,1061,1062,6,51,-1,0,1062,1064,1,0,0,0,1063,1038,1,0,0,0,1063,1039,1,
0,0,0,1063,1043,1,0,0,0,1063,1047,1,0,0,0,1063,1051,1,0,0,0,1063,1055,
1,0,0,0,1063,1059,1,0,0,0,1064,103,1,0,0,0,1065,1066,5,274,0,0,1066,1144,
6,52,-1,0,1067,1068,5,275,0,0,1068,1069,3,32,16,0,1069,1070,6,52,-1,0,
1070,1144,1,0,0,0,1071,1072,5,275,0,0,1072,1073,3,0,0,0,1073,1074,6,52,
-1,0,1074,1144,1,0,0,0,1075,1076,5,276,0,0,1076,1077,3,32,16,0,1077,1078,
6,52,-1,0,1078,1144,1,0,0,0,1079,1080,5,277,0,0,1080,1081,3,34,17,0,1081,
1082,6,52,-1,0,1082,1144,1,0,0,0,1083,1084,5,278,0,0,1084,1085,3,36,18,
0,1085,1086,6,52,-1,0,1086,1144,1,0,0,0,1087,1088,5,278,0,0,1088,1089,
3,34,17,0,1089,1090,6,52,-1,0,1090,1144,1,0,0,0,1091,1092,5,278,0,0,1092,
1093,5,30,0,0,1093,1094,3,304,152,0,1094,1095,5,31,0,0,1095,1096,6,52,
-1,0,1096,1144,1,0,0,0,1097,1098,5,278,0,0,1098,1099,5,84,0,0,1099,1100,
5,30,0,0,1100,1101,3,304,152,0,1101,1102,5,31,0,0,1102,1103,6,52,-1,0,
1103,1144,1,0,0,0,1104,1105,5,281,0,0,1105,1106,3,32,16,0,1106,1107,6,
52,-1,0,1107,1144,1,0,0,0,1108,1109,5,281,0,0,1109,1110,3,0,0,0,1110,1111,
6,52,-1,0,1111,1144,1,0,0,0,1112,1113,5,284,0,0,1113,1114,3,6,3,0,1114,
1115,6,52,-1,0,1115,1144,1,0,0,0,1116,1117,5,284,0,0,1117,1118,5,223,0,
0,1118,1119,5,30,0,0,1119,1120,3,6,3,0,1120,1121,5,31,0,0,1121,1122,6,
52,-1,0,1122,1144,1,0,0,0,1123,1124,5,284,0,0,1124,1125,5,84,0,0,1125,
1126,5,30,0,0,1126,1127,3,304,152,0,1127,1128,5,31,0,0,1128,1129,6,52,
-1,0,1129,1144,1,0,0,0,1130,1131,5,286,0,0,1131,1132,3,32,16,0,1132,1133,
6,52,-1,0,1133,1144,1,0,0,0,1134,1135,5,282,0,0,1135,1141,6,52,-1,0,1136,
1137,5,30,0,0,1137,1138,3,108,54,0,1138,1139,5,31,0,0,1139,1142,1,0,0,
0,1140,1142,5,85,0,0,1141,1136,1,0,0,0,1141,1140,1,0,0,0,1142,1144,1,0,
0,0,1143,1065,1,0,0,0,1143,1067,1,0,0,0,1143,1071,1,0,0,0,1143,1075,1,
0,0,0,1143,1079,1,0,0,0,1143,1083,1,0,0,0,1143,1087,1,0,0,0,1143,1091,
1,0,0,0,1143,1097,1,0,0,0,1143,1104,1,0,0,0,1143,1108,1,0,0,0,1143,1112,
1,0,0,0,1143,1116,1,0,0,0,1143,1123,1,0,0,0,1143,1130,1,0,0,0,1143,1134,
1,0,0,0,1144,105,1,0,0,0,1145,1146,3,174,87,0,1146,1147,3,142,71,0,1147,
1148,3,114,57,0,1148,1149,6,53,-1,0,1149,107,1,0,0,0,1150,1175,1,0,0,0,
1151,1152,3,0,0,0,1152,1153,6,54,-1,0,1153,1158,1,0,0,0,1154,1155,3,32,
16,0,1155,1156,6,54,-1,0,1156,1158,1,0,0,0,1157,1151,1,0,0,0,1157,1154,
1,0,0,0,1158,1159,1,0,0,0,1159,1160,5,28,0,0,1160,1162,1,0,0,0,1161,1157,
1,0,0,0,1162,1165,1,0,0,0,1163,1161,1,0,0,0,1163,1164,1,0,0,0,1164,1172,
1,0,0,0,1165,1163,1,0,0,0,1166,1167,3,0,0,0,1167,1168,6,54,-1,0,1168,1173,
1,0,0,0,1169,1170,3,32,16,0,1170,1171,6,54,-1,0,1171,1173,1,0,0,0,1172,
1166,1,0,0,0,1172,1169,1,0,0,0,1173,1175,1,0,0,0,1174,1150,1,0,0,0,1174,
1163,1,0,0,0,1175,109,1,0,0,0,1176,1183,5,86,0,0,1177,1178,3,142,71,0,
1178,1179,6,55,-1,0,1179,1180,5,28,0,0,1180,1182,1,0,0,0,1181,1177,1,0,
0,0,1182,1185,1,0,0,0,1183,1181,1,0,0,0,1183,1184,1,0,0,0,1184,1186,1,
0,0,0,1185,1183,1,0,0,0,1186,1187,3,142,71,0,1187,1188,6,55,-1,0,1188,
1189,5,87,0,0,1189,111,1,0,0,0,1190,1197,5,42,0,0,1191,1192,3,150,75,0,
1192,1193,6,56,-1,0,1193,1194,5,28,0,0,1194,1196,1,0,0,0,1195,1191,1,0,
0,0,1196,1199,1,0,0,0,1197,1195,1,0,0,0,1197,1198,1,0,0,0,1198,1200,1,
0,0,0,1199,1197,1,0,0,0,1200,1201,3,150,75,0,1201,1202,6,56,-1,0,1202,
1203,5,43,0,0,1203,113,1,0,0,0,1204,1211,5,30,0,0,1205,1206,3,116,58,0,
1206,1207,6,57,-1,0,1207,1208,5,28,0,0,1208,1210,1,0,0,0,1209,1205,1,0,
0,0,1210,1213,1,0,0,0,1211,1209,1,0,0,0,1211,1212,1,0,0,0,1212,1214,1,
0,0,0,1213,1211,1,0,0,0,1214,1215,3,116,58,0,1215,1216,6,57,-1,0,1216,
1217,5,31,0,0,1217,1222,1,0,0,0,1218,1219,5,30,0,0,1219,1222,5,31,0,0,
1220,1222,5,85,0,0,1221,1204,1,0,0,0,1221,1218,1,0,0,0,1221,1220,1,0,0,
0,1222,115,1,0,0,0,1223,1224,5,176,0,0,1224,1234,6,58,-1,0,1225,1226,3,
234,117,0,1226,1227,3,142,71,0,1227,1229,3,230,115,0,1228,1230,3,0,0,0,
1229,1228,1,0,0,0,1229,1230,1,0,0,0,1230,1231,1,0,0,0,1231,1232,6,58,-1,
0,1232,1234,1,0,0,0,1233,1223,1,0,0,0,1233,1225,1,0,0,0,1234,117,1,0,0,
0,1235,1236,5,42,0,0,1236,1237,3,2,1,0,1237,1238,5,43,0,0,1238,1239,3,
120,60,0,1239,1240,6,59,-1,0,1240,1273,1,0,0,0,1241,1242,5,42,0,0,1242,
1243,3,178,89,0,1243,1244,5,43,0,0,1244,1245,3,120,60,0,1245,1246,6,59,
-1,0,1246,1273,1,0,0,0,1247,1248,5,42,0,0,1248,1249,5,261,0,0,1249,1250,
5,43,0,0,1250,1251,3,120,60,0,1251,1252,6,59,-1,0,1252,1273,1,0,0,0,1253,
1254,5,42,0,0,1254,1255,5,197,0,0,1255,1256,3,2,1,0,1256,1257,5,43,0,0,
1257,1258,3,120,60,0,1258,1259,6,59,-1,0,1259,1273,1,0,0,0,1260,1261,3,
120,60,0,1261,1262,6,59,-1,0,1262,1273,1,0,0,0,1263,1264,3,178,89,0,1264,
1265,6,59,-1,0,1265,1273,1,0,0,0,1266,1267,5,256,0,0,1267,1273,6,59,-1,
0,1268,1269,5,257,0,0,1269,1273,6,59,-1,0,1270,1271,5,258,0,0,1271,1273,
6,59,-1,0,1272,1235,1,0,0,0,1272,1241,1,0,0,0,1272,1247,1,0,0,0,1272,1253,
1,0,0,0,1272,1260,1,0,0,0,1272,1263,1,0,0,0,1272,1266,1,0,0,0,1272,1268,
1,0,0,0,1272,1270,1,0,0,0,1273,119,1,0,0,0,1274,1275,3,2,1,0,1275,1276,
6,60,-1,0,1276,1277,5,88,0,0,1277,1279,1,0,0,0,1278,1274,1,0,0,0,1279,
1282,1,0,0,0,1280,1278,1,0,0,0,1280,1281,1,0,0,0,1281,1283,1,0,0,0,1282,
1280,1,0,0,0,1283,1284,3,2,1,0,1284,1285,6,60,-1,0,1285,121,1,0,0,0,1286,
1287,3,124,62,0,1287,1288,6,61,-1,0,1288,1290,1,0,0,0,1289,1286,1,0,0,
0,1290,1293,1,0,0,0,1291,1289,1,0,0,0,1291,1292,1,0,0,0,1292,123,1,0,0,
0,1293,1291,1,0,0,0,1294,1295,5,179,0,0,1295,1296,5,89,0,0,1296,1297,3,
32,16,0,1297,1298,6,62,-1,0,1298,1306,1,0,0,0,1299,1300,3,156,78,0,1300,
1301,6,62,-1,0,1301,1306,1,0,0,0,1302,1303,3,336,168,0,1303,1304,6,62,
-1,0,1304,1306,1,0,0,0,1305,1294,1,0,0,0,1305,1299,1,0,0,0,1305,1302,1,
0,0,0,1306,125,1,0,0,0,1307,1308,3,118,59,0,1308,1309,6,63,-1,0,1309,1314,
1,0,0,0,1310,1311,3,142,71,0,1311,1312,6,63,-1,0,1312,1314,1,0,0,0,1313,
1307,1,0,0,0,1313,1310,1,0,0,0,1314,127,1,0,0,0,1315,1316,3,126,63,0,1316,
1317,6,64,-1,0,1317,1330,1,0,0,0,1318,1319,5,42,0,0,1319,1320,3,2,1,0,
1320,1321,5,43,0,0,1321,1322,6,64,-1,0,1322,1330,1,0,0,0,1323,1324,5,42,
0,0,1324,1325,5,197,0,0,1325,1326,3,2,1,0,1326,1327,5,43,0,0,1327,1328,
6,64,-1,0,1328,1330,1,0,0,0,1329,1315,1,0,0,0,1329,1318,1,0,0,0,1329,1323,
1,0,0,0,1330,129,1,0,0,0,1331,1343,1,0,0,0,1332,1333,3,134,67,0,1333,1339,
6,65,-1,0,1334,1335,3,132,66,0,1335,1336,6,65,-1,0,1336,1338,1,0,0,0,1337,
1334,1,0,0,0,1338,1341,1,0,0,0,1339,1337,1,0,0,0,1339,1340,1,0,0,0,1340,
1343,1,0,0,0,1341,1339,1,0,0,0,1342,1331,1,0,0,0,1342,1332,1,0,0,0,1343,
131,1,0,0,0,1344,1345,5,261,0,0,1345,1367,6,66,-1,0,1346,1347,5,260,0,
0,1347,1367,6,66,-1,0,1348,1349,5,42,0,0,1349,1350,3,32,16,0,1350,1351,
5,43,0,0,1351,1352,6,66,-1,0,1352,1367,1,0,0,0,1353,1354,5,42,0,0,1354,
1355,3,32,16,0,1355,1356,5,265,0,0,1356,1357,3,32,16,0,1357,1358,5,43,
0,0,1358,1359,6,66,-1,0,1359,1367,1,0,0,0,1360,1361,5,42,0,0,1361,1362,
5,265,0,0,1362,1363,3,32,16,0,1363,1364,5,43,0,0,1364,1365,6,66,-1,0,1365,
1367,1,0,0,0,1366,1344,1,0,0,0,1366,1346,1,0,0,0,1366,1348,1,0,0,0,1366,
1353,1,0,0,0,1366,1360,1,0,0,0,1367,133,1,0,0,0,1368,1514,6,67,-1,0,1369,
1370,5,202,0,0,1370,1371,5,30,0,0,1371,1372,3,6,3,0,1372,1373,5,28,0,0,
1373,1374,3,6,3,0,1374,1375,5,28,0,0,1375,1376,3,6,3,0,1376,1377,5,28,
0,0,1377,1378,3,6,3,0,1378,1379,5,31,0,0,1379,1380,6,67,-1,0,1380,1514,
1,0,0,0,1381,1382,5,202,0,0,1382,1383,5,30,0,0,1383,1384,3,6,3,0,1384,
1385,5,28,0,0,1385,1386,3,6,3,0,1386,1387,5,31,0,0,1387,1388,6,67,-1,0,
1388,1514,1,0,0,0,1389,1390,5,203,0,0,1390,1391,5,204,0,0,1391,1392,5,
42,0,0,1392,1393,3,32,16,0,1393,1394,5,43,0,0,1394,1395,6,67,-1,0,1395,
1514,1,0,0,0,1396,1397,5,203,0,0,1397,1398,5,205,0,0,1398,1399,5,42,0,
0,1399,1400,3,32,16,0,1400,1401,5,43,0,0,1401,1402,3,130,65,0,1402,1403,
6,67,-1,0,1403,1514,1,0,0,0,1404,1405,5,206,0,0,1405,1514,6,67,-1,0,1406,
1407,5,207,0,0,1407,1514,6,67,-1,0,1408,1409,5,208,0,0,1409,1514,6,67,
-1,0,1410,1411,5,200,0,0,1411,1514,6,67,-1,0,1412,1413,5,182,0,0,1413,
1514,6,67,-1,0,1414,1415,5,183,0,0,1415,1514,6,67,-1,0,1416,1417,5,184,
0,0,1417,1514,6,67,-1,0,1418,1419,5,185,0,0,1419,1514,6,67,-1,0,1420,1421,
5,186,0,0,1421,1514,6,67,-1,0,1422,1423,5,187,0,0,1423,1514,6,67,-1,0,
1424,1425,5,188,0,0,1425,1514,6,67,-1,0,1426,1427,5,209,0,0,1427,1514,
6,67,-1,0,1428,1429,5,189,0,0,1429,1514,6,67,-1,0,1430,1431,5,190,0,0,
1431,1514,6,67,-1,0,1432,1433,5,191,0,0,1433,1514,6,67,-1,0,1434,1435,
5,192,0,0,1435,1514,6,67,-1,0,1436,1437,5,210,0,0,1437,1514,6,67,-1,0,
1438,1439,5,211,0,0,1439,1514,6,67,-1,0,1440,1441,5,212,0,0,1441,1514,
6,67,-1,0,1442,1443,5,213,0,0,1443,1514,6,67,-1,0,1444,1445,5,214,0,0,
1445,1514,6,67,-1,0,1446,1447,5,215,0,0,1447,1514,6,67,-1,0,1448,1449,
5,216,0,0,1449,1514,6,67,-1,0,1450,1451,5,217,0,0,1451,1452,3,136,68,0,
1452,1453,6,67,-1,0,1453,1514,1,0,0,0,1454,1455,5,218,0,0,1455,1456,3,
136,68,0,1456,1457,6,67,-1,0,1457,1514,1,0,0,0,1458,1459,5,219,0,0,1459,
1514,6,67,-1,0,1460,1461,5,220,0,0,1461,1462,3,136,68,0,1462,1463,6,67,
-1,0,1463,1514,1,0,0,0,1464,1465,5,221,0,0,1465,1466,3,138,69,0,1466,1467,
6,67,-1,0,1467,1514,1,0,0,0,1468,1469,5,221,0,0,1469,1470,3,138,69,0,1470,
1471,5,28,0,0,1471,1472,3,6,3,0,1472,1473,6,67,-1,0,1473,1514,1,0,0,0,
1474,1475,5,193,0,0,1475,1514,6,67,-1,0,1476,1477,5,194,0,0,1477,1514,
6,67,-1,0,1478,1479,5,90,0,0,1479,1480,5,183,0,0,1480,1514,6,67,-1,0,1481,
1482,5,90,0,0,1482,1483,5,184,0,0,1483,1514,6,67,-1,0,1484,1485,5,90,0,
0,1485,1486,5,185,0,0,1486,1514,6,67,-1,0,1487,1488,5,90,0,0,1488,1489,
5,186,0,0,1489,1514,6,67,-1,0,1490,1491,5,62,0,0,1491,1492,5,219,0,0,1492,
1514,6,67,-1,0,1493,1494,5,222,0,0,1494,1514,6,67,-1,0,1495,1496,5,223,
0,0,1496,1497,5,212,0,0,1497,1514,6,67,-1,0,1498,1499,5,224,0,0,1499,1514,
6,67,-1,0,1500,1501,5,206,0,0,1501,1502,5,182,0,0,1502,1514,6,67,-1,0,
1503,1504,5,225,0,0,1504,1514,6,67,-1,0,1505,1506,5,227,0,0,1506,1514,
6,67,-1,0,1507,1508,5,34,0,0,1508,1509,5,226,0,0,1509,1514,6,67,-1,0,1510,
1511,3,2,1,0,1511,1512,6,67,-1,0,1512,1514,1,0,0,0,1513,1368,1,0,0,0,1513,
1369,1,0,0,0,1513,1381,1,0,0,0,1513,1389,1,0,0,0,1513,1396,1,0,0,0,1513,
1404,1,0,0,0,1513,1406,1,0,0,0,1513,1408,1,0,0,0,1513,1410,1,0,0,0,1513,
1412,1,0,0,0,1513,1414,1,0,0,0,1513,1416,1,0,0,0,1513,1418,1,0,0,0,1513,
1420,1,0,0,0,1513,1422,1,0,0,0,1513,1424,1,0,0,0,1513,1426,1,0,0,0,1513,
1428,1,0,0,0,1513,1430,1,0,0,0,1513,1432,1,0,0,0,1513,1434,1,0,0,0,1513,
1436,1,0,0,0,1513,1438,1,0,0,0,1513,1440,1,0,0,0,1513,1442,1,0,0,0,1513,
1444,1,0,0,0,1513,1446,1,0,0,0,1513,1448,1,0,0,0,1513,1450,1,0,0,0,1513,
1454,1,0,0,0,1513,1458,1,0,0,0,1513,1460,1,0,0,0,1513,1464,1,0,0,0,1513,
1468,1,0,0,0,1513,1474,1,0,0,0,1513,1476,1,0,0,0,1513,1478,1,0,0,0,1513,
1481,1,0,0,0,1513,1484,1,0,0,0,1513,1487,1,0,0,0,1513,1490,1,0,0,0,1513,
1493,1,0,0,0,1513,1495,1,0,0,0,1513,1498,1,0,0,0,1513,1500,1,0,0,0,1513,
1503,1,0,0,0,1513,1505,1,0,0,0,1513,1507,1,0,0,0,1513,1510,1,0,0,0,1514,
135,1,0,0,0,1515,1524,1,0,0,0,1516,1517,5,30,0,0,1517,1518,5,91,0,0,1518,
1519,5,36,0,0,1519,1520,3,32,16,0,1520,1521,5,31,0,0,1521,1522,6,68,-1,
0,1522,1524,1,0,0,0,1523,1515,1,0,0,0,1523,1516,1,0,0,0,1524,137,1,0,0,
0,1525,1536,1,0,0,0,1526,1527,3,140,70,0,1527,1532,6,69,-1,0,1528,1529,
7,8,0,0,1529,1531,6,69,-1,0,1530,1528,1,0,0,0,1531,1534,1,0,0,0,1532,1530,
1,0,0,0,1532,1533,1,0,0,0,1533,1536,1,0,0,0,1534,1532,1,0,0,0,1535,1525,
1,0,0,0,1535,1526,1,0,0,0,1536,139,1,0,0,0,1537,1538,5,177,0,0,1538,1618,
6,70,-1,0,1539,1540,5,206,0,0,1540,1618,6,70,-1,0,1541,1542,5,207,0,0,
1542,1618,6,70,-1,0,1543,1544,5,200,0,0,1544,1618,6,70,-1,0,1545,1546,
5,182,0,0,1546,1618,6,70,-1,0,1547,1548,5,183,0,0,1548,1618,6,70,-1,0,
1549,1550,5,184,0,0,1550,1618,6,70,-1,0,1551,1552,5,185,0,0,1552,1618,
6,70,-1,0,1553,1554,5,186,0,0,1554,1618,6,70,-1,0,1555,1556,5,187,0,0,
1556,1618,6,70,-1,0,1557,1558,5,188,0,0,1558,1618,6,70,-1,0,1559,1560,
5,189,0,0,1560,1618,6,70,-1,0,1561,1562,5,190,0,0,1562,1618,6,70,-1,0,
1563,1564,5,191,0,0,1564,1618,6,70,-1,0,1565,1566,5,192,0,0,1566,1618,
6,70,-1,0,1567,1568,5,261,0,0,1568,1618,6,70,-1,0,1569,1570,5,210,0,0,
1570,1618,6,70,-1,0,1571,1572,5,211,0,0,1572,1618,6,70,-1,0,1573,1574,
5,212,0,0,1574,1618,6,70,-1,0,1575,1576,5,213,0,0,1576,1618,6,70,-1,0,
1577,1578,5,214,0,0,1578,1618,6,70,-1,0,1579,1580,5,217,0,0,1580,1618,
6,70,-1,0,1581,1582,5,218,0,0,1582,1618,6,70,-1,0,1583,1584,5,221,0,0,
1584,1618,6,70,-1,0,1585,1586,5,193,0,0,1586,1618,6,70,-1,0,1587,1588,
5,194,0,0,1588,1618,6,70,-1,0,1589,1590,5,209,0,0,1590,1618,6,70,-1,0,
1591,1592,5,229,0,0,1592,1618,6,70,-1,0,1593,1594,5,230,0,0,1594,1618,
6,70,-1,0,1595,1596,5,231,0,0,1596,1618,6,70,-1,0,1597,1598,5,232,0,0,
1598,1618,6,70,-1,0,1599,1600,5,233,0,0,1600,1618,6,70,-1,0,1601,1602,
5,234,0,0,1602,1618,6,70,-1,0,1603,1604,5,235,0,0,1604,1618,6,70,-1,0,
1605,1606,5,236,0,0,1606,1618,6,70,-1,0,1607,1608,5,237,0,0,1608,1618,
6,70,-1,0,1609,1610,5,238,0,0,1610,1618,6,70,-1,0,1611,1612,5,239,0,0,
1612,1618,6,70,-1,0,1613,1614,5,240,0,0,1614,1618,6,70,-1,0,1615,1616,
5,241,0,0,1616,1618,6,70,-1,0,1617,1537,1,0,0,0,1617,1539,1,0,0,0,1617,
1541,1,0,0,0,1617,1543,1,0,0,0,1617,1545,1,0,0,0,1617,1547,1,0,0,0,1617,
1549,1,0,0,0,1617,1551,1,0,0,0,1617,1553,1,0,0,0,1617,1555,1,0,0,0,1617,
1557,1,0,0,0,1617,1559,1,0,0,0,1617,1561,1,0,0,0,1617,1563,1,0,0,0,1617,
1565,1,0,0,0,1617,1567,1,0,0,0,1617,1569,1,0,0,0,1617,1571,1,0,0,0,1617,
1573,1,0,0,0,1617,1575,1,0,0,0,1617,1577,1,0,0,0,1617,1579,1,0,0,0,1617,
1581,1,0,0,0,1617,1583,1,0,0,0,1617,1585,1,0,0,0,1617,1587,1,0,0,0,1617,
1589,1,0,0,0,1617,1591,1,0,0,0,1617,1593,1,0,0,0,1617,1595,1,0,0,0,1617,
1597,1,0,0,0,1617,1599,1,0,0,0,1617,1601,1,0,0,0,1617,1603,1,0,0,0,1617,
1605,1,0,0,0,1617,1607,1,0,0,0,1617,1609,1,0,0,0,1617,1611,1,0,0,0,1617,
1613,1,0,0,0,1617,1615,1,0,0,0,1618,141,1,0,0,0,1619,1620,3,146,73,0,1620,
1626,6,71,-1,0,1621,1622,3,144,72,0,1622,1623,6,71,-1,0,1623,1625,1,0,
0,0,1624,1621,1,0,0,0,1625,1628,1,0,0,0,1626,1624,1,0,0,0,1626,1627,1,
0,0,0,1627,143,1,0,0,0,1628,1626,1,0,0,0,1629,1630,5,260,0,0,1630,1659,
6,72,-1,0,1631,1632,5,42,0,0,1632,1633,5,43,0,0,1633,1659,6,72,-1,0,1634,
1635,3,112,56,0,1635,1636,6,72,-1,0,1636,1659,1,0,0,0,1637,1638,5,259,
0,0,1638,1659,6,72,-1,0,1639,1640,5,261,0,0,1640,1659,6,72,-1,0,1641,1642,
5,92,0,0,1642,1659,6,72,-1,0,1643,1644,5,93,0,0,1644,1645,5,30,0,0,1645,
1646,3,126,63,0,1646,1647,5,31,0,0,1647,1648,6,72,-1,0,1648,1659,1,0,0,
0,1649,1650,5,94,0,0,1650,1651,5,30,0,0,1651,1652,3,126,63,0,1652,1653,
5,31,0,0,1653,1654,6,72,-1,0,1654,1659,1,0,0,0,1655,1656,3,110,55,0,1656,
1657,6,72,-1,0,1657,1659,1,0,0,0,1658,1629,1,0,0,0,1658,1631,1,0,0,0,1658,
1634,1,0,0,0,1658,1637,1,0,0,0,1658,1639,1,0,0,0,1658,1641,1,0,0,0,1658,
1643,1,0,0,0,1658,1649,1,0,0,0,1658,1655,1,0,0,0,1659,145,1,0,0,0,1660,
1661,5,39,0,0,1661,1662,3,118,59,0,1662,1663,6,73,-1,0,1663,1719,1,0,0,
0,1664,1665,5,196,0,0,1665,1719,6,73,-1,0,1666,1667,5,198,0,0,1667,1668,
5,39,0,0,1668,1669,3,118,59,0,1669,1670,6,73,-1,0,1670,1719,1,0,0,0,1671,
1672,5,199,0,0,1672,1673,3,118,59,0,1673,1674,6,73,-1,0,1674,1719,1,0,
0,0,1675,1676,5,225,0,0,1676,1677,3,174,87,0,1677,1678,3,142,71,0,1678,
1679,5,261,0,0,1679,1680,3,114,57,0,1680,1681,6,73,-1,0,1681,1719,1,0,
0,0,1682,1683,5,252,0,0,1683,1684,3,32,16,0,1684,1685,6,73,-1,0,1685,1719,
1,0,0,0,1686,1687,5,251,0,0,1687,1688,3,32,16,0,1688,1689,6,73,-1,0,1689,
1719,1,0,0,0,1690,1691,5,252,0,0,1691,1692,3,2,1,0,1692,1693,6,73,-1,0,
1693,1719,1,0,0,0,1694,1695,5,251,0,0,1695,1696,3,2,1,0,1696,1697,6,73,
-1,0,1697,1719,1,0,0,0,1698,1699,5,253,0,0,1699,1719,6,73,-1,0,1700,1701,
5,200,0,0,1701,1719,6,73,-1,0,1702,1703,3,152,76,0,1703,1704,6,73,-1,0,
1704,1719,1,0,0,0,1705,1706,3,154,77,0,1706,1707,6,73,-1,0,1707,1719,1,
0,0,0,1708,1709,3,148,74,0,1709,1710,6,73,-1,0,1710,1719,1,0,0,0,1711,
1712,3,2,1,0,1712,1713,6,73,-1,0,1713,1719,1,0,0,0,1714,1715,5,176,0,0,
1715,1716,3,142,71,0,1716,1717,6,73,-1,0,1717,1719,1,0,0,0,1718,1660,1,
0,0,0,1718,1664,1,0,0,0,1718,1666,1,0,0,0,1718,1671,1,0,0,0,1718,1675,
1,0,0,0,1718,1682,1,0,0,0,1718,1686,1,0,0,0,1718,1690,1,0,0,0,1718,1694,
1,0,0,0,1718,1698,1,0,0,0,1718,1700,1,0,0,0,1718,1702,1,0,0,0,1718,1705,
1,0,0,0,1718,1708,1,0,0,0,1718,1711,1,0,0,0,1718,1714,1,0,0,0,1719,147,
1,0,0,0,1720,1721,5,180,0,0,1721,1759,6,74,-1,0,1722,1723,5,181,0,0,1723,
1759,6,74,-1,0,1724,1725,5,182,0,0,1725,1759,6,74,-1,0,1726,1727,5,183,
0,0,1727,1759,6,74,-1,0,1728,1729,5,184,0,0,1729,1759,6,74,-1,0,1730,1731,
5,185,0,0,1731,1759,6,74,-1,0,1732,1733,5,186,0,0,1733,1759,6,74,-1,0,
1734,1735,5,187,0,0,1735,1759,6,74,-1,0,1736,1737,5,188,0,0,1737,1759,
6,74,-1,0,1738,1739,5,189,0,0,1739,1759,6,74,-1,0,1740,1741,5,190,0,0,
1741,1759,6,74,-1,0,1742,1743,5,191,0,0,1743,1759,6,74,-1,0,1744,1745,
5,192,0,0,1745,1759,6,74,-1,0,1746,1747,5,90,0,0,1747,1748,5,183,0,0,1748,
1759,6,74,-1,0,1749,1750,5,90,0,0,1750,1751,5,184,0,0,1751,1759,6,74,-1,
0,1752,1753,5,90,0,0,1753,1754,5,185,0,0,1754,1759,6,74,-1,0,1755,1756,
5,90,0,0,1756,1757,5,186,0,0,1757,1759,6,74,-1,0,1758,1720,1,0,0,0,1758,
1722,1,0,0,0,1758,1724,1,0,0,0,1758,1726,1,0,0,0,1758,1728,1,0,0,0,1758,
1730,1,0,0,0,1758,1732,1,0,0,0,1758,1734,1,0,0,0,1758,1736,1,0,0,0,1758,
1738,1,0,0,0,1758,1740,1,0,0,0,1758,1742,1,0,0,0,1758,1744,1,0,0,0,1758,
1746,1,0,0,0,1758,1749,1,0,0,0,1758,1752,1,0,0,0,1758,1755,1,0,0,0,1759,
149,1,0,0,0,1760,1775,1,0,0,0,1761,1775,5,176,0,0,1762,1763,3,32,16,0,
1763,1764,6,75,-1,0,1764,1775,1,0,0,0,1765,1766,3,32,16,0,1766,1767,5,
176,0,0,1767,1768,3,32,16,0,1768,1769,6,75,-1,0,1769,1775,1,0,0,0,1770,
1771,3,32,16,0,1771,1772,5,176,0,0,1772,1773,6,75,-1,0,1773,1775,1,0,0,
0,1774,1760,1,0,0,0,1774,1761,1,0,0,0,1774,1762,1,0,0,0,1774,1765,1,0,
0,0,1774,1770,1,0,0,0,1775,151,1,0,0,0,1776,1777,5,1,0,0,1777,1778,5,193,
0,0,1778,1779,6,76,-1,0,1779,153,1,0,0,0,1780,1784,5,1,0,0,1781,1782,5,
90,0,0,1782,1785,5,193,0,0,1783,1785,5,194,0,0,1784,1781,1,0,0,0,1784,
1783,1,0,0,0,1785,1786,1,0,0,0,1786,1787,6,77,-1,0,1787,155,1,0,0,0,1788,
1789,5,293,0,0,1789,1790,3,170,85,0,1790,1791,3,126,63,0,1791,1792,5,30,
0,0,1792,1793,3,162,81,0,1793,1794,5,31,0,0,1794,1795,6,78,-1,0,1795,1843,
1,0,0,0,1796,1797,5,293,0,0,1797,1798,3,170,85,0,1798,1799,3,126,63,0,
1799,1800,5,36,0,0,1800,1801,5,17,0,0,1801,1802,3,52,26,0,1802,1803,5,
18,0,0,1803,1804,6,78,-1,0,1804,1843,1,0,0,0,1805,1806,5,293,0,0,1806,
1807,3,170,85,0,1807,1808,3,126,63,0,1808,1809,6,78,-1,0,1809,1843,1,0,
0,0,1810,1811,5,294,0,0,1811,1812,3,170,85,0,1812,1814,5,36,0,0,1813,1815,
5,84,0,0,1814,1813,1,0,0,0,1814,1815,1,0,0,0,1815,1816,1,0,0,0,1816,1817,
5,30,0,0,1817,1818,3,304,152,0,1818,1819,5,31,0,0,1819,1820,6,78,-1,0,
1820,1843,1,0,0,0,1821,1822,5,294,0,0,1822,1823,3,170,85,0,1823,1824,5,
84,0,0,1824,1825,5,30,0,0,1825,1826,3,304,152,0,1826,1827,5,31,0,0,1827,
1828,6,78,-1,0,1828,1843,1,0,0,0,1829,1830,5,294,0,0,1830,1831,3,170,85,
0,1831,1832,3,6,3,0,1832,1833,6,78,-1,0,1833,1843,1,0,0,0,1834,1835,5,
294,0,0,1835,1836,3,170,85,0,1836,1837,5,36,0,0,1837,1838,5,17,0,0,1838,
1839,3,158,79,0,1839,1840,5,18,0,0,1840,1841,6,78,-1,0,1841,1843,1,0,0,
0,1842,1788,1,0,0,0,1842,1796,1,0,0,0,1842,1805,1,0,0,0,1842,1810,1,0,
0,0,1842,1821,1,0,0,0,1842,1829,1,0,0,0,1842,1834,1,0,0,0,1843,157,1,0,
0,0,1844,1858,1,0,0,0,1845,1846,3,160,80,0,1846,1847,6,79,-1,0,1847,1848,
5,28,0,0,1848,1850,1,0,0,0,1849,1845,1,0,0,0,1850,1853,1,0,0,0,1851,1849,
1,0,0,0,1851,1852,1,0,0,0,1852,1854,1,0,0,0,1853,1851,1,0,0,0,1854,1855,
3,160,80,0,1855,1856,6,79,-1,0,1856,1858,1,0,0,0,1857,1844,1,0,0,0,1857,
1851,1,0,0,0,1858,159,1,0,0,0,1859,1860,5,39,0,0,1860,1861,5,263,0,0,1861,
1862,5,36,0,0,1862,1863,5,17,0,0,1863,1864,3,56,28,0,1864,1865,5,18,0,
0,1865,1866,6,80,-1,0,1866,1875,1,0,0,0,1867,1868,3,126,63,0,1868,1869,
5,36,0,0,1869,1870,5,17,0,0,1870,1871,3,56,28,0,1871,1872,5,18,0,0,1872,
1873,6,80,-1,0,1873,1875,1,0,0,0,1874,1859,1,0,0,0,1874,1867,1,0,0,0,1875,
161,1,0,0,0,1876,1877,3,164,82,0,1877,1878,6,81,-1,0,1878,1879,5,28,0,
0,1879,1881,1,0,0,0,1880,1876,1,0,0,0,1881,1884,1,0,0,0,1882,1880,1,0,
0,0,1882,1883,1,0,0,0,1883,1885,1,0,0,0,1884,1882,1,0,0,0,1885,1886,3,
164,82,0,1886,1887,6,81,-1,0,1887,163,1,0,0,0,1888,1889,3,6,3,0,1889,1890,
5,36,0,0,1890,1891,3,168,84,0,1891,1892,6,82,-1,0,1892,165,1,0,0,0,1893,
1894,7,9,0,0,1894,167,1,0,0,0,1895,1896,3,166,83,0,1896,1897,6,84,-1,0,
1897,1941,1,0,0,0,1898,1899,3,32,16,0,1899,1900,6,84,-1,0,1900,1941,1,
0,0,0,1901,1902,5,185,0,0,1902,1903,5,30,0,0,1903,1904,3,32,16,0,1904,
1905,5,31,0,0,1905,1906,6,84,-1,0,1906,1941,1,0,0,0,1907,1908,3,6,3,0,
1908,1909,6,84,-1,0,1909,1941,1,0,0,0,1910,1911,3,118,59,0,1911,1912,5,
30,0,0,1912,1913,5,183,0,0,1913,1914,5,75,0,0,1914,1915,3,32,16,0,1915,
1916,5,31,0,0,1916,1917,6,84,-1,0,1917,1941,1,0,0,0,1918,1919,3,118,59,
0,1919,1920,5,30,0,0,1920,1921,5,184,0,0,1921,1922,5,75,0,0,1922,1923,
3,32,16,0,1923,1924,5,31,0,0,1924,1925,6,84,-1,0,1925,1941,1,0,0,0,1926,
1927,3,118,59,0,1927,1928,5,30,0,0,1928,1929,5,185,0,0,1929,1930,5,75,
0,0,1930,1931,3,32,16,0,1931,1932,5,31,0,0,1932,1933,6,84,-1,0,1933,1941,
1,0,0,0,1934,1935,3,118,59,0,1935,1936,5,30,0,0,1936,1937,3,32,16,0,1937,
1938,5,31,0,0,1938,1939,6,84,-1,0,1939,1941,1,0,0,0,1940,1895,1,0,0,0,
1940,1898,1,0,0,0,1940,1901,1,0,0,0,1940,1907,1,0,0,0,1940,1910,1,0,0,
0,1940,1918,1,0,0,0,1940,1926,1,0,0,0,1940,1934,1,0,0,0,1941,169,1,0,0,
0,1942,1943,7,10,0,0,1943,171,1,0,0,0,1944,1945,3,174,87,0,1945,1946,3,
142,71,0,1946,1947,3,128,64,0,1947,1948,5,175,0,0,1948,1950,3,246,123,
0,1949,1951,3,110,55,0,1950,1949,1,0,0,0,1950,1951,1,0,0,0,1951,1952,1,
0,0,0,1952,1953,3,114,57,0,1953,1954,6,86,-1,0,1954,1987,1,0,0,0,1955,
1956,3,174,87,0,1956,1957,3,142,71,0,1957,1958,3,128,64,0,1958,1959,5,
175,0,0,1959,1960,3,246,123,0,1960,1961,3,200,100,0,1961,1962,3,114,57,
0,1962,1963,6,86,-1,0,1963,1987,1,0,0,0,1964,1965,3,174,87,0,1965,1966,
3,142,71,0,1966,1968,3,246,123,0,1967,1969,3,110,55,0,1968,1967,1,0,0,
0,1968,1969,1,0,0,0,1969,1970,1,0,0,0,1970,1971,3,114,57,0,1971,1972,6,
86,-1,0,1972,1987,1,0,0,0,1973,1974,3,174,87,0,1974,1975,3,142,71,0,1975,
1976,3,246,123,0,1976,1977,3,200,100,0,1977,1978,3,114,57,0,1978,1979,
6,86,-1,0,1979,1987,1,0,0,0,1980,1981,3,178,89,0,1981,1982,6,86,-1,0,1982,
1987,1,0,0,0,1983,1984,3,2,1,0,1984,1985,6,86,-1,0,1985,1987,1,0,0,0,1986,
1944,1,0,0,0,1986,1955,1,0,0,0,1986,1964,1,0,0,0,1986,1973,1,0,0,0,1986,
1980,1,0,0,0,1986,1983,1,0,0,0,1987,173,1,0,0,0,1988,1989,5,242,0,0,1989,
1990,3,174,87,0,1990,1991,6,87,-1,0,1991,2006,1,0,0,0,1992,1993,5,243,
0,0,1993,1994,3,174,87,0,1994,1995,6,87,-1,0,1995,2006,1,0,0,0,1996,1997,
3,176,88,0,1997,1998,6,87,-1,0,1998,2006,1,0,0,0,1999,2000,5,112,0,0,2000,
2001,5,30,0,0,2001,2002,3,32,16,0,2002,2003,5,31,0,0,2003,2004,6,87,-1,
0,2004,2006,1,0,0,0,2005,1988,1,0,0,0,2005,1992,1,0,0,0,2005,1996,1,0,
0,0,2005,1999,1,0,0,0,2006,175,1,0,0,0,2007,2027,1,0,0,0,2008,2009,5,244,
0,0,2009,2027,6,88,-1,0,2010,2011,5,245,0,0,2011,2027,6,88,-1,0,2012,2013,
5,246,0,0,2013,2014,5,247,0,0,2014,2027,6,88,-1,0,2015,2016,5,246,0,0,
2016,2017,5,248,0,0,2017,2027,6,88,-1,0,2018,2019,5,246,0,0,2019,2020,
5,249,0,0,2020,2027,6,88,-1,0,2021,2022,5,246,0,0,2022,2023,5,250,0,0,
2023,2027,6,88,-1,0,2024,2025,5,246,0,0,2025,2027,6,88,-1,0,2026,2007,
1,0,0,0,2026,2008,1,0,0,0,2026,2010,1,0,0,0,2026,2012,1,0,0,0,2026,2015,
1,0,0,0,2026,2018,1,0,0,0,2026,2021,1,0,0,0,2026,2024,1,0,0,0,2027,177,
1,0,0,0,2028,2029,5,113,0,0,2029,2030,5,30,0,0,2030,2031,3,32,16,0,2031,
2032,5,31,0,0,2032,2033,6,89,-1,0,2033,179,1,0,0,0,2034,2035,5,225,0,0,
2035,2036,3,172,86,0,2036,2037,6,90,-1,0,2037,2046,1,0,0,0,2038,2039,5,
37,0,0,2039,2040,3,182,91,0,2040,2041,6,90,-1,0,2041,2046,1,0,0,0,2042,
2043,3,178,89,0,2043,2044,6,90,-1,0,2044,2046,1,0,0,0,2045,2034,1,0,0,
0,2045,2038,1,0,0,0,2045,2042,1,0,0,0,2046,181,1,0,0,0,2047,2048,3,142,
71,0,2048,2049,3,128,64,0,2049,2050,5,175,0,0,2050,2051,3,2,1,0,2051,2052,
6,91,-1,0,2052,2061,1,0,0,0,2053,2054,3,142,71,0,2054,2055,3,2,1,0,2055,
2056,6,91,-1,0,2056,2061,1,0,0,0,2057,2058,3,2,1,0,2058,2059,6,91,-1,0,
2059,2061,1,0,0,0,2060,2047,1,0,0,0,2060,2053,1,0,0,0,2060,2057,1,0,0,
0,2061,183,1,0,0,0,2062,2063,3,126,63,0,2063,2064,6,92,-1,0,2064,2065,
5,28,0,0,2065,2067,1,0,0,0,2066,2062,1,0,0,0,2067,2070,1,0,0,0,2068,2066,
1,0,0,0,2068,2069,1,0,0,0,2069,2071,1,0,0,0,2070,2068,1,0,0,0,2071,2072,
3,126,63,0,2072,2073,6,92,-1,0,2073,185,1,0,0,0,2074,2081,1,0,0,0,2075,
2076,5,86,0,0,2076,2077,3,194,97,0,2077,2078,5,87,0,0,2078,2079,6,93,-1,
0,2079,2081,1,0,0,0,2080,2074,1,0,0,0,2080,2075,1,0,0,0,2081,187,1,0,0,
0,2082,2083,5,265,0,0,2083,2101,6,94,-1,0,2084,2085,5,114,0,0,2085,2101,
6,94,-1,0,2086,2087,5,39,0,0,2087,2101,6,94,-1,0,2088,2089,5,199,0,0,2089,
2101,6,94,-1,0,2090,2091,5,115,0,0,2091,2101,6,94,-1,0,2092,2093,5,116,
0,0,2093,2101,6,94,-1,0,2094,2095,5,70,0,0,2095,2096,5,30,0,0,2096,2097,
3,32,16,0,2097,2098,5,31,0,0,2098,2099,6,94,-1,0,2099,2101,1,0,0,0,2100,
2082,1,0,0,0,2100,2084,1,0,0,0,2100,2086,1,0,0,0,2100,2088,1,0,0,0,2100,
2090,1,0,0,0,2100,2092,1,0,0,0,2100,2094,1,0,0,0,2101,189,1,0,0,0,2102,
2103,3,188,94,0,2103,2104,6,95,-1,0,2104,2106,1,0,0,0,2105,2102,1,0,0,
0,2106,2109,1,0,0,0,2107,2105,1,0,0,0,2107,2108,1,0,0,0,2108,191,1,0,0,
0,2109,2107,1,0,0,0,2110,2112,3,190,95,0,2111,2113,3,196,98,0,2112,2111,
1,0,0,0,2112,2113,1,0,0,0,2113,2114,1,0,0,0,2114,2115,3,2,1,0,2115,2116,
6,96,-1,0,2116,193,1,0,0,0,2117,2118,3,192,96,0,2118,2119,6,97,-1,0,2119,
2120,5,28,0,0,2120,2122,1,0,0,0,2121,2117,1,0,0,0,2122,2125,1,0,0,0,2123,
2121,1,0,0,0,2123,2124,1,0,0,0,2124,2126,1,0,0,0,2125,2123,1,0,0,0,2126,
2127,3,192,96,0,2127,2128,6,97,-1,0,2128,195,1,0,0,0,2129,2130,5,30,0,
0,2130,2131,3,184,92,0,2131,2132,5,31,0,0,2132,2133,6,98,-1,0,2133,197,
1,0,0,0,2134,2136,3,200,100,0,2135,2134,1,0,0,0,2135,2136,1,0,0,0,2136,
2137,1,0,0,0,2137,2138,6,99,-1,0,2138,199,1,0,0,0,2139,2140,5,86,0,0,2140,
2141,5,42,0,0,2141,2142,3,32,16,0,2142,2143,5,43,0,0,2143,2144,5,87,0,
0,2144,2145,6,100,-1,0,2145,201,1,0,0,0,2146,2147,3,238,119,0,2147,2148,
5,17,0,0,2148,2149,3,250,125,0,2149,2150,5,18,0,0,2150,2297,1,0,0,0,2151,
2152,3,76,38,0,2152,2153,5,17,0,0,2153,2154,3,84,42,0,2154,2155,5,18,0,
0,2155,2297,1,0,0,0,2156,2157,3,214,107,0,2157,2158,6,101,-1,0,2158,2159,
5,17,0,0,2159,2160,3,218,109,0,2160,2161,5,18,0,0,2161,2297,1,0,0,0,2162,
2163,3,222,111,0,2163,2164,6,101,-1,0,2164,2165,5,17,0,0,2165,2166,3,226,
113,0,2166,2167,5,18,0,0,2167,2297,1,0,0,0,2168,2297,3,204,102,0,2169,
2170,3,288,144,0,2170,2171,6,101,-1,0,2171,2297,1,0,0,0,2172,2173,3,156,
78,0,2173,2174,6,101,-1,0,2174,2297,1,0,0,0,2175,2176,3,90,45,0,2176,2177,
6,101,-1,0,2177,2297,1,0,0,0,2178,2179,3,334,167,0,2179,2180,6,101,-1,
0,2180,2297,1,0,0,0,2181,2182,5,117,0,0,2182,2183,3,32,16,0,2183,2184,
6,101,-1,0,2184,2297,1,0,0,0,2185,2186,5,118,0,0,2186,2187,3,32,16,0,2187,
2188,6,101,-1,0,2188,2297,1,0,0,0,2189,2190,3,350,175,0,2190,2191,5,17,
0,0,2191,2192,3,356,178,0,2192,2193,5,18,0,0,2193,2194,6,101,-1,0,2194,
2297,1,0,0,0,2195,2196,5,301,0,0,2196,2197,3,128,64,0,2197,2198,5,175,
0,0,2198,2199,3,246,123,0,2199,2200,5,119,0,0,2200,2201,3,174,87,0,2201,
2202,3,142,71,0,2202,2203,3,128,64,0,2203,2204,5,175,0,0,2204,2205,3,246,
123,0,2205,2206,3,114,57,0,2206,2207,6,101,-1,0,2207,2297,1,0,0,0,2208,
2209,5,301,0,0,2209,2210,5,225,0,0,2210,2211,3,174,87,0,2211,2212,3,142,
71,0,2212,2213,3,128,64,0,2213,2214,5,175,0,0,2214,2215,3,246,123,0,2215,
2216,3,198,99,0,2216,2217,3,114,57,0,2217,2218,5,119,0,0,2218,2219,5,225,
0,0,2219,2220,3,174,87,0,2220,2221,3,142,71,0,2221,2222,3,128,64,0,2222,
2223,5,175,0,0,2223,2224,3,246,123,0,2224,2225,3,198,99,0,2225,2226,3,
114,57,0,2226,2227,6,101,-1,0,2227,2297,1,0,0,0,2228,2229,3,26,13,0,2229,
2230,6,101,-1,0,2230,2297,1,0,0,0,2231,2232,3,40,20,0,2232,2233,6,101,
-1,0,2233,2297,1,0,0,0,2234,2235,5,254,0,0,2235,2236,5,195,0,0,2236,2237,
5,42,0,0,2237,2238,3,32,16,0,2238,2239,5,43,0,0,2239,2245,6,101,-1,0,2240,
2241,3,334,167,0,2241,2242,6,101,-1,0,2242,2244,1,0,0,0,2243,2240,1,0,
0,0,2244,2247,1,0,0,0,2245,2243,1,0,0,0,2245,2246,1,0,0,0,2246,2297,1,
0,0,0,2247,2245,1,0,0,0,2248,2249,5,254,0,0,2249,2250,5,195,0,0,2250,2251,
3,2,1,0,2251,2257,6,101,-1,0,2252,2253,3,334,167,0,2253,2254,6,101,-1,
0,2254,2256,1,0,0,0,2255,2252,1,0,0,0,2256,2259,1,0,0,0,2257,2255,1,0,
0,0,2257,2258,1,0,0,0,2258,2297,1,0,0,0,2259,2257,1,0,0,0,2260,2261,5,
254,0,0,2261,2262,5,255,0,0,2262,2263,5,42,0,0,2263,2264,3,32,16,0,2264,
2265,5,43,0,0,2265,2266,5,28,0,0,2266,2267,3,126,63,0,2267,2273,6,101,
-1,0,2268,2269,3,334,167,0,2269,2270,6,101,-1,0,2270,2272,1,0,0,0,2271,
2268,1,0,0,0,2272,2275,1,0,0,0,2273,2271,1,0,0,0,2273,2274,1,0,0,0,2274,
2297,1,0,0,0,2275,2273,1,0,0,0,2276,2277,5,254,0,0,2277,2278,5,255,0,0,
2278,2279,3,2,1,0,2279,2280,5,28,0,0,2280,2281,3,126,63,0,2281,2287,6,
101,-1,0,2282,2283,3,334,167,0,2283,2284,6,101,-1,0,2284,2286,1,0,0,0,
2285,2282,1,0,0,0,2286,2289,1,0,0,0,2287,2285,1,0,0,0,2287,2288,1,0,0,
0,2288,2297,1,0,0,0,2289,2287,1,0,0,0,2290,2291,5,120,0,0,2291,2292,5,
195,0,0,2292,2293,3,126,63,0,2293,2294,3,44,22,0,2294,2295,6,101,-1,0,
2295,2297,1,0,0,0,2296,2146,1,0,0,0,2296,2151,1,0,0,0,2296,2156,1,0,0,
0,2296,2162,1,0,0,0,2296,2168,1,0,0,0,2296,2169,1,0,0,0,2296,2172,1,0,
0,0,2296,2175,1,0,0,0,2296,2178,1,0,0,0,2296,2181,1,0,0,0,2296,2185,1,
0,0,0,2296,2189,1,0,0,0,2296,2195,1,0,0,0,2296,2208,1,0,0,0,2296,2228,
1,0,0,0,2296,2231,1,0,0,0,2296,2234,1,0,0,0,2296,2248,1,0,0,0,2296,2260,
1,0,0,0,2296,2276,1,0,0,0,2296,2290,1,0,0,0,2297,203,1,0,0,0,2298,2299,
5,121,0,0,2299,2311,3,212,106,0,2300,2301,3,206,103,0,2301,2302,6,102,
-1,0,2302,2310,1,0,0,0,2303,2304,5,122,0,0,2304,2305,5,30,0,0,2305,2306,
3,232,116,0,2306,2307,5,31,0,0,2307,2308,6,102,-1,0,2308,2310,1,0,0,0,
2309,2300,1,0,0,0,2309,2303,1,0,0,0,2310,2313,1,0,0,0,2311,2309,1,0,0,
0,2311,2312,1,0,0,0,2312,2314,1,0,0,0,2313,2311,1,0,0,0,2314,2315,3,142,
71,0,2315,2316,3,2,1,0,2316,2317,3,208,104,0,2317,2318,3,210,105,0,2318,
2319,6,102,-1,0,2319,205,1,0,0,0,2320,2321,5,123,0,0,2321,2355,6,103,-1,
0,2322,2323,5,51,0,0,2323,2355,6,103,-1,0,2324,2325,5,52,0,0,2325,2355,
6,103,-1,0,2326,2327,5,63,0,0,2327,2355,6,103,-1,0,2328,2329,5,124,0,0,
2329,2355,6,103,-1,0,2330,2331,5,69,0,0,2331,2355,6,103,-1,0,2332,2333,
5,68,0,0,2333,2355,6,103,-1,0,2334,2335,5,64,0,0,2335,2355,6,103,-1,0,
2336,2337,5,65,0,0,2337,2355,6,103,-1,0,2338,2339,5,66,0,0,2339,2355,6,
103,-1,0,2340,2341,5,125,0,0,2341,2355,6,103,-1,0,2342,2343,5,126,0,0,
2343,2355,6,103,-1,0,2344,2345,5,127,0,0,2345,2355,6,103,-1,0,2346,2347,
5,16,0,0,2347,2355,6,103,-1,0,2348,2349,5,70,0,0,2349,2350,5,30,0,0,2350,
2351,3,32,16,0,2351,2352,5,31,0,0,2352,2353,6,103,-1,0,2353,2355,1,0,0,
0,2354,2320,1,0,0,0,2354,2322,1,0,0,0,2354,2324,1,0,0,0,2354,2326,1,0,
0,0,2354,2328,1,0,0,0,2354,2330,1,0,0,0,2354,2332,1,0,0,0,2354,2334,1,
0,0,0,2354,2336,1,0,0,0,2354,2338,1,0,0,0,2354,2340,1,0,0,0,2354,2342,
1,0,0,0,2354,2344,1,0,0,0,2354,2346,1,0,0,0,2354,2348,1,0,0,0,2355,207,
1,0,0,0,2356,2366,1,0,0,0,2357,2358,5,44,0,0,2358,2359,3,0,0,0,2359,2360,
6,104,-1,0,2360,2366,1,0,0,0,2361,2362,5,44,0,0,2362,2363,3,32,16,0,2363,
2364,6,104,-1,0,2364,2366,1,0,0,0,2365,2356,1,0,0,0,2365,2357,1,0,0,0,
2365,2361,1,0,0,0,2366,209,1,0,0,0,2367,2373,1,0,0,0,2368,2369,5,36,0,
0,2369,2370,3,308,154,0,2370,2371,6,105,-1,0,2371,2373,1,0,0,0,2372,2367,
1,0,0,0,2372,2368,1,0,0,0,2373,211,1,0,0,0,2374,2381,1,0,0,0,2375,2376,
5,42,0,0,2376,2377,3,32,16,0,2377,2378,5,43,0,0,2378,2379,6,106,-1,0,2379,
2381,1,0,0,0,2380,2374,1,0,0,0,2380,2375,1,0,0,0,2381,213,1,0,0,0,2382,
2388,5,128,0,0,2383,2384,3,216,108,0,2384,2385,6,107,-1,0,2385,2387,1,
0,0,0,2386,2383,1,0,0,0,2387,2390,1,0,0,0,2388,2386,1,0,0,0,2388,2389,
1,0,0,0,2389,2391,1,0,0,0,2390,2388,1,0,0,0,2391,2392,3,126,63,0,2392,
2393,3,2,1,0,2393,2394,6,107,-1,0,2394,2408,1,0,0,0,2395,2401,5,128,0,
0,2396,2397,3,216,108,0,2397,2398,6,107,-1,0,2398,2400,1,0,0,0,2399,2396,
1,0,0,0,2400,2403,1,0,0,0,2401,2399,1,0,0,0,2401,2402,1,0,0,0,2402,2404,
1,0,0,0,2403,2401,1,0,0,0,2404,2405,3,2,1,0,2405,2406,6,107,-1,0,2406,
2408,1,0,0,0,2407,2382,1,0,0,0,2407,2395,1,0,0,0,2408,215,1,0,0,0,2409,
2410,5,69,0,0,2410,2414,6,108,-1,0,2411,2412,5,68,0,0,2412,2414,6,108,
-1,0,2413,2409,1,0,0,0,2413,2411,1,0,0,0,2414,217,1,0,0,0,2415,2417,3,
220,110,0,2416,2415,1,0,0,0,2417,2420,1,0,0,0,2418,2416,1,0,0,0,2418,2419,
1,0,0,0,2419,219,1,0,0,0,2420,2418,1,0,0,0,2421,2422,5,129,0,0,2422,2423,
3,172,86,0,2423,2424,6,110,-1,0,2424,2448,1,0,0,0,2425,2426,5,130,0,0,
2426,2427,3,172,86,0,2427,2428,6,110,-1,0,2428,2448,1,0,0,0,2429,2430,
5,131,0,0,2430,2431,3,172,86,0,2431,2432,6,110,-1,0,2432,2448,1,0,0,0,
2433,2434,5,132,0,0,2434,2435,3,172,86,0,2435,2436,6,110,-1,0,2436,2448,
1,0,0,0,2437,2438,3,90,45,0,2438,2439,6,110,-1,0,2439,2448,1,0,0,0,2440,
2441,3,334,167,0,2441,2442,6,110,-1,0,2442,2448,1,0,0,0,2443,2444,3,26,
13,0,2444,2445,6,110,-1,0,2445,2448,1,0,0,0,2446,2448,3,40,20,0,2447,2421,
1,0,0,0,2447,2425,1,0,0,0,2447,2429,1,0,0,0,2447,2433,1,0,0,0,2447,2437,
1,0,0,0,2447,2440,1,0,0,0,2447,2443,1,0,0,0,2447,2446,1,0,0,0,2448,221,
1,0,0,0,2449,2455,5,133,0,0,2450,2451,3,224,112,0,2451,2452,6,111,-1,0,
2452,2454,1,0,0,0,2453,2450,1,0,0,0,2454,2457,1,0,0,0,2455,2453,1,0,0,
0,2455,2456,1,0,0,0,2456,2458,1,0,0,0,2457,2455,1,0,0,0,2458,2459,3,174,
87,0,2459,2460,3,142,71,0,2460,2461,3,2,1,0,2461,2462,3,114,57,0,2462,
2463,3,210,105,0,2463,2464,6,111,-1,0,2464,223,1,0,0,0,2465,2466,5,69,
0,0,2466,2470,6,112,-1,0,2467,2468,5,68,0,0,2468,2470,6,112,-1,0,2469,
2465,1,0,0,0,2469,2467,1,0,0,0,2470,225,1,0,0,0,2471,2473,3,228,114,0,
2472,2471,1,0,0,0,2473,2476,1,0,0,0,2474,2472,1,0,0,0,2474,2475,1,0,0,
0,2475,227,1,0,0,0,2476,2474,1,0,0,0,2477,2478,5,134,0,0,2478,2479,3,172,
86,0,2479,2480,6,114,-1,0,2480,2500,1,0,0,0,2481,2482,5,135,0,0,2482,2483,
3,172,86,0,2483,2484,6,114,-1,0,2484,2500,1,0,0,0,2485,2486,5,132,0,0,
2486,2487,3,172,86,0,2487,2488,6,114,-1,0,2488,2500,1,0,0,0,2489,2490,
3,334,167,0,2490,2491,6,114,-1,0,2491,2500,1,0,0,0,2492,2493,3,90,45,0,
2493,2494,6,114,-1,0,2494,2500,1,0,0,0,2495,2496,3,26,13,0,2496,2497,6,
114,-1,0,2497,2500,1,0,0,0,2498,2500,3,40,20,0,2499,2477,1,0,0,0,2499,
2481,1,0,0,0,2499,2485,1,0,0,0,2499,2489,1,0,0,0,2499,2492,1,0,0,0,2499,
2495,1,0,0,0,2499,2498,1,0,0,0,2500,229,1,0,0,0,2501,2509,6,115,-1,0,2502,
2503,5,122,0,0,2503,2504,5,30,0,0,2504,2505,3,232,116,0,2505,2506,5,31,
0,0,2506,2507,6,115,-1,0,2507,2509,1,0,0,0,2508,2501,1,0,0,0,2508,2502,
1,0,0,0,2509,231,1,0,0,0,2510,2511,3,130,65,0,2511,2512,6,116,-1,0,2512,
2524,1,0,0,0,2513,2517,5,17,0,0,2514,2515,3,306,153,0,2515,2516,6,116,
-1,0,2516,2518,1,0,0,0,2517,2514,1,0,0,0,2518,2519,1,0,0,0,2519,2517,1,
0,0,0,2519,2520,1,0,0,0,2520,2521,1,0,0,0,2521,2522,5,18,0,0,2522,2524,
1,0,0,0,2523,2510,1,0,0,0,2523,2513,1,0,0,0,2524,233,1,0,0,0,2525,2526,
3,236,118,0,2526,2527,6,117,-1,0,2527,2529,1,0,0,0,2528,2525,1,0,0,0,2529,
2532,1,0,0,0,2530,2528,1,0,0,0,2530,2531,1,0,0,0,2531,235,1,0,0,0,2532,
2530,1,0,0,0,2533,2534,5,42,0,0,2534,2535,5,136,0,0,2535,2536,5,43,0,0,
2536,2551,6,118,-1,0,2537,2538,5,42,0,0,2538,2539,5,137,0,0,2539,2540,
5,43,0,0,2540,2551,6,118,-1,0,2541,2542,5,42,0,0,2542,2543,5,138,0,0,2543,
2544,5,43,0,0,2544,2551,6,118,-1,0,2545,2546,5,42,0,0,2546,2547,3,32,16,
0,2547,2548,5,43,0,0,2548,2549,6,118,-1,0,2549,2551,1,0,0,0,2550,2533,
1,0,0,0,2550,2537,1,0,0,0,2550,2541,1,0,0,0,2550,2545,1,0,0,0,2551,237,
1,0,0,0,2552,2561,5,139,0,0,2553,2554,3,240,120,0,2554,2555,6,119,-1,0,
2555,2560,1,0,0,0,2556,2557,3,242,121,0,2557,2558,6,119,-1,0,2558,2560,
1,0,0,0,2559,2553,1,0,0,0,2559,2556,1,0,0,0,2560,2563,1,0,0,0,2561,2559,
1,0,0,0,2561,2562,1,0,0,0,2562,2564,1,0,0,0,2563,2561,1,0,0,0,2564,2565,
3,174,87,0,2565,2566,3,234,117,0,2566,2567,3,142,71,0,2567,2568,3,230,
115,0,2568,2569,3,246,123,0,2569,2570,3,186,93,0,2570,2576,3,114,57,0,
2571,2572,3,248,124,0,2572,2573,6,119,-1,0,2573,2575,1,0,0,0,2574,2571,
1,0,0,0,2575,2578,1,0,0,0,2576,2574,1,0,0,0,2576,2577,1,0,0,0,2577,2579,
1,0,0,0,2578,2576,1,0,0,0,2579,2580,6,119,-1,0,2580,239,1,0,0,0,2581,2582,
5,123,0,0,2582,2624,6,120,-1,0,2583,2584,5,51,0,0,2584,2624,6,120,-1,0,
2585,2586,5,52,0,0,2586,2624,6,120,-1,0,2587,2588,5,63,0,0,2588,2624,6,
120,-1,0,2589,2590,5,140,0,0,2590,2624,6,120,-1,0,2591,2592,5,68,0,0,2592,
2624,6,120,-1,0,2593,2594,5,141,0,0,2594,2624,6,120,-1,0,2595,2596,5,142,
0,0,2596,2624,6,120,-1,0,2597,2598,5,54,0,0,2598,2624,6,120,-1,0,2599,
2600,5,64,0,0,2600,2624,6,120,-1,0,2601,2602,5,65,0,0,2602,2624,6,120,
-1,0,2603,2604,5,66,0,0,2604,2624,6,120,-1,0,2605,2606,5,125,0,0,2606,
2624,6,120,-1,0,2607,2608,5,143,0,0,2608,2624,6,120,-1,0,2609,2610,5,144,
0,0,2610,2624,6,120,-1,0,2611,2612,5,69,0,0,2612,2624,6,120,-1,0,2613,
2614,5,145,0,0,2614,2624,6,120,-1,0,2615,2616,5,146,0,0,2616,2624,6,120,
-1,0,2617,2618,5,70,0,0,2618,2619,5,30,0,0,2619,2620,3,32,16,0,2620,2621,
5,31,0,0,2621,2622,6,120,-1,0,2622,2624,1,0,0,0,2623,2581,1,0,0,0,2623,
2583,1,0,0,0,2623,2585,1,0,0,0,2623,2587,1,0,0,0,2623,2589,1,0,0,0,2623,
2591,1,0,0,0,2623,2593,1,0,0,0,2623,2595,1,0,0,0,2623,2597,1,0,0,0,2623,
2599,1,0,0,0,2623,2601,1,0,0,0,2623,2603,1,0,0,0,2623,2605,1,0,0,0,2623,
2607,1,0,0,0,2623,2609,1,0,0,0,2623,2611,1,0,0,0,2623,2613,1,0,0,0,2623,
2615,1,0,0,0,2623,2617,1,0,0,0,2624,241,1,0,0,0,2625,2626,5,147,0,0,2626,
2635,5,30,0,0,2627,2628,3,6,3,0,2628,2633,6,121,-1,0,2629,2630,5,34,0,
0,2630,2631,3,6,3,0,2631,2632,6,121,-1,0,2632,2634,1,0,0,0,2633,2629,1,
0,0,0,2633,2634,1,0,0,0,2634,2636,1,0,0,0,2635,2627,1,0,0,0,2635,2636,
1,0,0,0,2636,2642,1,0,0,0,2637,2638,3,244,122,0,2638,2639,6,121,-1,0,2639,
2641,1,0,0,0,2640,2637,1,0,0,0,2641,2644,1,0,0,0,2642,2640,1,0,0,0,2642,
2643,1,0,0,0,2643,2645,1,0,0,0,2644,2642,1,0,0,0,2645,2649,5,31,0,0,2646,
2647,5,147,0,0,2647,2649,5,85,0,0,2648,2625,1,0,0,0,2648,2646,1,0,0,0,
2649,243,1,0,0,0,2650,2651,5,148,0,0,2651,2693,6,122,-1,0,2652,2653,5,
223,0,0,2653,2693,6,122,-1,0,2654,2655,5,57,0,0,2655,2693,6,122,-1,0,2656,
2657,5,58,0,0,2657,2693,6,122,-1,0,2658,2659,5,149,0,0,2659,2693,6,122,
-1,0,2660,2661,5,150,0,0,2661,2693,6,122,-1,0,2662,2663,5,247,0,0,2663,
2693,6,122,-1,0,2664,2665,5,248,0,0,2665,2693,6,122,-1,0,2666,2667,5,249,
0,0,2667,2693,6,122,-1,0,2668,2669,5,250,0,0,2669,2693,6,122,-1,0,2670,
2671,5,151,0,0,2671,2672,5,75,0,0,2672,2673,5,152,0,0,2673,2693,6,122,
-1,0,2674,2675,5,151,0,0,2675,2676,5,75,0,0,2676,2677,5,153,0,0,2677,2693,
6,122,-1,0,2678,2679,5,154,0,0,2679,2680,5,75,0,0,2680,2681,5,152,0,0,
2681,2693,6,122,-1,0,2682,2683,5,154,0,0,2683,2684,5,75,0,0,2684,2685,
5,153,0,0,2685,2693,6,122,-1,0,2686,2687,5,70,0,0,2687,2688,5,30,0,0,2688,
2689,3,32,16,0,2689,2690,5,31,0,0,2690,2691,6,122,-1,0,2691,2693,1,0,0,
0,2692,2650,1,0,0,0,2692,2652,1,0,0,0,2692,2654,1,0,0,0,2692,2656,1,0,
0,0,2692,2658,1,0,0,0,2692,2660,1,0,0,0,2692,2662,1,0,0,0,2692,2664,1,
0,0,0,2692,2666,1,0,0,0,2692,2668,1,0,0,0,2692,2670,1,0,0,0,2692,2674,
1,0,0,0,2692,2678,1,0,0,0,2692,2682,1,0,0,0,2692,2686,1,0,0,0,2693,245,
1,0,0,0,2694,2695,5,116,0,0,2695,2702,6,123,-1,0,2696,2697,5,155,0,0,2697,
2702,6,123,-1,0,2698,2699,3,2,1,0,2699,2700,6,123,-1,0,2700,2702,1,0,0,
0,2701,2694,1,0,0,0,2701,2696,1,0,0,0,2701,2698,1,0,0,0,2702,247,1,0,0,
0,2703,2704,5,1,0,0,2704,2742,6,124,-1,0,2705,2706,5,2,0,0,2706,2742,6,
124,-1,0,2707,2708,5,156,0,0,2708,2742,6,124,-1,0,2709,2710,5,3,0,0,2710,
2742,6,124,-1,0,2711,2712,5,4,0,0,2712,2742,6,124,-1,0,2713,2714,5,246,
0,0,2714,2742,6,124,-1,0,2715,2716,5,5,0,0,2716,2742,6,124,-1,0,2717,2718,
5,6,0,0,2718,2742,6,124,-1,0,2719,2720,5,7,0,0,2720,2742,6,124,-1,0,2721,
2722,5,8,0,0,2722,2742,6,124,-1,0,2723,2724,5,9,0,0,2724,2742,6,124,-1,
0,2725,2726,5,10,0,0,2726,2742,6,124,-1,0,2727,2728,5,11,0,0,2728,2742,
6,124,-1,0,2729,2730,5,12,0,0,2730,2742,6,124,-1,0,2731,2732,5,13,0,0,
2732,2742,6,124,-1,0,2733,2734,5,14,0,0,2734,2742,6,124,-1,0,2735,2736,
5,70,0,0,2736,2737,5,30,0,0,2737,2738,3,32,16,0,2738,2739,5,31,0,0,2739,
2740,6,124,-1,0,2740,2742,1,0,0,0,2741,2703,1,0,0,0,2741,2705,1,0,0,0,
2741,2707,1,0,0,0,2741,2709,1,0,0,0,2741,2711,1,0,0,0,2741,2713,1,0,0,
0,2741,2715,1,0,0,0,2741,2717,1,0,0,0,2741,2719,1,0,0,0,2741,2721,1,0,
0,0,2741,2723,1,0,0,0,2741,2725,1,0,0,0,2741,2727,1,0,0,0,2741,2729,1,
0,0,0,2741,2731,1,0,0,0,2741,2733,1,0,0,0,2741,2735,1,0,0,0,2742,249,1,
0,0,0,2743,2745,3,252,126,0,2744,2743,1,0,0,0,2745,2748,1,0,0,0,2746,2744,
1,0,0,0,2746,2747,1,0,0,0,2747,251,1,0,0,0,2748,2746,1,0,0,0,2749,2787,
3,102,51,0,2750,2751,5,295,0,0,2751,2752,3,32,16,0,2752,2753,6,126,-1,
0,2753,2787,1,0,0,0,2754,2787,3,270,135,0,2755,2756,5,296,0,0,2756,2757,
3,32,16,0,2757,2758,6,126,-1,0,2758,2787,1,0,0,0,2759,2760,5,297,0,0,2760,
2787,6,126,-1,0,2761,2762,5,298,0,0,2762,2787,6,126,-1,0,2763,2787,3,264,
132,0,2764,2787,3,268,134,0,2765,2787,3,254,127,0,2766,2767,3,288,144,
0,2767,2768,6,126,-1,0,2768,2787,1,0,0,0,2769,2770,3,156,78,0,2770,2771,
6,126,-1,0,2771,2787,1,0,0,0,2772,2773,3,90,45,0,2773,2774,6,126,-1,0,
2774,2787,1,0,0,0,2775,2776,3,26,13,0,2776,2777,6,126,-1,0,2777,2787,1,
0,0,0,2778,2779,3,266,133,0,2779,2780,6,126,-1,0,2780,2787,1,0,0,0,2781,
2787,3,40,20,0,2782,2787,3,256,128,0,2783,2787,3,258,129,0,2784,2787,3,
260,130,0,2785,2787,3,262,131,0,2786,2749,1,0,0,0,2786,2750,1,0,0,0,2786,
2754,1,0,0,0,2786,2755,1,0,0,0,2786,2759,1,0,0,0,2786,2761,1,0,0,0,2786,
2763,1,0,0,0,2786,2764,1,0,0,0,2786,2765,1,0,0,0,2786,2766,1,0,0,0,2786,
2769,1,0,0,0,2786,2772,1,0,0,0,2786,2775,1,0,0,0,2786,2778,1,0,0,0,2786,
2781,1,0,0,0,2786,2782,1,0,0,0,2786,2783,1,0,0,0,2786,2784,1,0,0,0,2786,
2785,1,0,0,0,2787,253,1,0,0,0,2788,2790,5,299,0,0,2789,2791,5,157,0,0,
2790,2789,1,0,0,0,2790,2791,1,0,0,0,2791,2792,1,0,0,0,2792,2793,3,114,
57,0,2793,255,1,0,0,0,2794,2795,5,300,0,0,2795,2796,5,42,0,0,2796,2797,
3,32,16,0,2797,2800,5,43,0,0,2798,2799,5,34,0,0,2799,2801,3,0,0,0,2800,
2798,1,0,0,0,2800,2801,1,0,0,0,2801,257,1,0,0,0,2802,2803,5,302,0,0,2803,
2804,3,32,16,0,2804,2805,5,75,0,0,2805,2806,3,32,16,0,2806,259,1,0,0,0,
2807,2808,5,301,0,0,2808,2809,3,128,64,0,2809,2810,5,175,0,0,2810,2811,
3,246,123,0,2811,2823,1,0,0,0,2812,2813,5,301,0,0,2813,2814,5,225,0,0,
2814,2815,3,174,87,0,2815,2816,3,142,71,0,2816,2817,3,128,64,0,2817,2818,
5,175,0,0,2818,2819,3,246,123,0,2819,2820,3,198,99,0,2820,2821,3,114,57,
0,2821,2823,1,0,0,0,2822,2807,1,0,0,0,2822,2812,1,0,0,0,2823,261,1,0,0,
0,2824,2825,5,254,0,0,2825,2826,5,195,0,0,2826,2827,5,42,0,0,2827,2828,
3,32,16,0,2828,2834,5,43,0,0,2829,2830,3,334,167,0,2830,2831,6,131,-1,
0,2831,2833,1,0,0,0,2832,2829,1,0,0,0,2833,2836,1,0,0,0,2834,2832,1,0,
0,0,2834,2835,1,0,0,0,2835,2890,1,0,0,0,2836,2834,1,0,0,0,2837,2838,5,
254,0,0,2838,2839,5,195,0,0,2839,2845,3,2,1,0,2840,2841,3,334,167,0,2841,
2842,6,131,-1,0,2842,2844,1,0,0,0,2843,2840,1,0,0,0,2844,2847,1,0,0,0,
2845,2843,1,0,0,0,2845,2846,1,0,0,0,2846,2890,1,0,0,0,2847,2845,1,0,0,
0,2848,2849,5,254,0,0,2849,2850,5,255,0,0,2850,2851,5,42,0,0,2851,2852,
3,32,16,0,2852,2853,5,43,0,0,2853,2854,5,28,0,0,2854,2860,3,126,63,0,2855,
2856,3,334,167,0,2856,2857,6,131,-1,0,2857,2859,1,0,0,0,2858,2855,1,0,
0,0,2859,2862,1,0,0,0,2860,2858,1,0,0,0,2860,2861,1,0,0,0,2861,2890,1,
0,0,0,2862,2860,1,0,0,0,2863,2864,5,254,0,0,2864,2865,5,255,0,0,2865,2866,
3,2,1,0,2866,2867,5,28,0,0,2867,2873,3,126,63,0,2868,2869,3,334,167,0,
2869,2870,6,131,-1,0,2870,2872,1,0,0,0,2871,2868,1,0,0,0,2872,2875,1,0,
0,0,2873,2871,1,0,0,0,2873,2874,1,0,0,0,2874,2890,1,0,0,0,2875,2873,1,
0,0,0,2876,2877,5,254,0,0,2877,2878,5,42,0,0,2878,2879,3,32,16,0,2879,
2880,5,43,0,0,2880,2886,3,210,105,0,2881,2882,3,334,167,0,2882,2883,6,
131,-1,0,2883,2885,1,0,0,0,2884,2881,1,0,0,0,2885,2888,1,0,0,0,2886,2884,
1,0,0,0,2886,2887,1,0,0,0,2887,2890,1,0,0,0,2888,2886,1,0,0,0,2889,2824,
1,0,0,0,2889,2837,1,0,0,0,2889,2848,1,0,0,0,2889,2863,1,0,0,0,2889,2876,
1,0,0,0,2890,263,1,0,0,0,2891,2892,3,0,0,0,2892,2893,5,75,0,0,2893,2894,
6,132,-1,0,2894,265,1,0,0,0,2895,2896,3,44,22,0,2896,2897,6,133,-1,0,2897,
2902,1,0,0,0,2898,2899,3,46,23,0,2899,2900,6,133,-1,0,2900,2902,1,0,0,
0,2901,2895,1,0,0,0,2901,2898,1,0,0,0,2902,267,1,0,0,0,2903,2904,5,17,
0,0,2904,2905,3,250,125,0,2905,2906,5,18,0,0,2906,269,1,0,0,0,2907,2908,
3,274,137,0,2908,2909,3,272,136,0,2909,271,1,0,0,0,2910,2911,3,276,138,
0,2911,2912,6,136,-1,0,2912,2914,1,0,0,0,2913,2910,1,0,0,0,2914,2915,1,
0,0,0,2915,2913,1,0,0,0,2915,2916,1,0,0,0,2916,273,1,0,0,0,2917,2918,5,
158,0,0,2918,2919,3,268,134,0,2919,2920,6,137,-1,0,2920,2934,1,0,0,0,2921,
2922,5,158,0,0,2922,2923,3,0,0,0,2923,2924,5,159,0,0,2924,2925,3,0,0,0,
2925,2926,6,137,-1,0,2926,2934,1,0,0,0,2927,2928,5,158,0,0,2928,2929,3,
32,16,0,2929,2930,5,159,0,0,2930,2931,3,32,16,0,2931,2932,6,137,-1,0,2932,
2934,1,0,0,0,2933,2917,1,0,0,0,2933,2921,1,0,0,0,2933,2927,1,0,0,0,2934,
275,1,0,0,0,2935,2936,3,280,140,0,2936,2937,3,286,143,0,2937,2938,6,138,
-1,0,2938,2952,1,0,0,0,2939,2940,3,278,139,0,2940,2941,3,286,143,0,2941,
2942,6,138,-1,0,2942,2952,1,0,0,0,2943,2944,3,282,141,0,2944,2945,3,286,
143,0,2945,2946,6,138,-1,0,2946,2952,1,0,0,0,2947,2948,3,284,142,0,2948,
2949,3,286,143,0,2949,2950,6,138,-1,0,2950,2952,1,0,0,0,2951,2935,1,0,
0,0,2951,2939,1,0,0,0,2951,2943,1,0,0,0,2951,2947,1,0,0,0,2952,277,1,0,
0,0,2953,2954,5,160,0,0,2954,2955,3,268,134,0,2955,2956,6,139,-1,0,2956,
2966,1,0,0,0,2957,2958,5,160,0,0,2958,2959,3,0,0,0,2959,2960,6,139,-1,
0,2960,2966,1,0,0,0,2961,2962,5,160,0,0,2962,2963,3,32,16,0,2963,2964,
6,139,-1,0,2964,2966,1,0,0,0,2965,2953,1,0,0,0,2965,2957,1,0,0,0,2965,
2961,1,0,0,0,2966,279,1,0,0,0,2967,2968,5,161,0,0,2968,2969,3,126,63,0,
2969,281,1,0,0,0,2970,2971,5,162,0,0,2971,283,1,0,0,0,2972,2973,5,163,
0,0,2973,285,1,0,0,0,2974,2975,3,268,134,0,2975,2976,6,143,-1,0,2976,2990,
1,0,0,0,2977,2978,5,164,0,0,2978,2979,3,0,0,0,2979,2980,5,159,0,0,2980,
2981,3,0,0,0,2981,2982,6,143,-1,0,2982,2990,1,0,0,0,2983,2984,5,164,0,
0,2984,2985,3,32,16,0,2985,2986,5,159,0,0,2986,2987,3,32,16,0,2987,2988,
6,143,-1,0,2988,2990,1,0,0,0,2989,2974,1,0,0,0,2989,2977,1,0,0,0,2989,
2983,1,0,0,0,2990,287,1,0,0,0,2991,2992,3,290,145,0,2992,2993,3,294,147,
0,2993,289,1,0,0,0,2994,2995,5,165,0,0,2995,2996,3,292,146,0,2996,2997,
3,0,0,0,2997,2998,5,36,0,0,2998,2999,6,145,-1,0,2999,3005,1,0,0,0,3000,
3001,5,165,0,0,3001,3002,3,292,146,0,3002,3003,6,145,-1,0,3003,3005,1,
0,0,0,3004,2994,1,0,0,0,3004,3000,1,0,0,0,3005,291,1,0,0,0,3006,3012,1,
0,0,0,3007,3008,5,166,0,0,3008,3012,6,146,-1,0,3009,3010,5,2,0,0,3010,
3012,6,146,-1,0,3011,3006,1,0,0,0,3011,3007,1,0,0,0,3011,3009,1,0,0,0,
3012,293,1,0,0,0,3013,3014,5,17,0,0,3014,3015,3,296,148,0,3015,3016,5,
18,0,0,3016,3023,1,0,0,0,3017,3019,3,300,150,0,3018,3017,1,0,0,0,3019,
3020,1,0,0,0,3020,3018,1,0,0,0,3020,3021,1,0,0,0,3021,3023,1,0,0,0,3022,
3013,1,0,0,0,3022,3018,1,0,0,0,3023,295,1,0,0,0,3024,3025,3,300,150,0,
3025,3026,5,28,0,0,3026,3028,1,0,0,0,3027,3024,1,0,0,0,3028,3031,1,0,0,
0,3029,3027,1,0,0,0,3029,3030,1,0,0,0,3030,3032,1,0,0,0,3031,3029,1,0,
0,0,3032,3033,3,300,150,0,3033,297,1,0,0,0,3034,3041,1,0,0,0,3035,3036,
5,42,0,0,3036,3037,3,32,16,0,3037,3038,5,43,0,0,3038,3039,6,149,-1,0,3039,
3041,1,0,0,0,3040,3034,1,0,0,0,3040,3035,1,0,0,0,3041,299,1,0,0,0,3042,
3043,5,180,0,0,3043,3044,5,261,0,0,3044,3045,5,30,0,0,3045,3046,3,6,3,
0,3046,3047,5,31,0,0,3047,3048,6,150,-1,0,3048,3091,1,0,0,0,3049,3050,
5,259,0,0,3050,3051,5,30,0,0,3051,3052,3,0,0,0,3052,3053,5,31,0,0,3053,
3054,6,150,-1,0,3054,3091,1,0,0,0,3055,3056,5,259,0,0,3056,3057,3,0,0,
0,3057,3058,6,150,-1,0,3058,3091,1,0,0,0,3059,3060,5,84,0,0,3060,3061,
5,30,0,0,3061,3062,3,304,152,0,3062,3063,5,31,0,0,3063,3064,6,150,-1,0,
3064,3091,1,0,0,0,3065,3066,7,11,0,0,3066,3067,5,30,0,0,3067,3068,3,36,
18,0,3068,3069,5,31,0,0,3069,3070,3,298,149,0,3070,3071,6,150,-1,0,3071,
3091,1,0,0,0,3072,3073,5,186,0,0,3073,3074,5,30,0,0,3074,3075,3,34,17,
0,3075,3076,5,31,0,0,3076,3077,3,298,149,0,3077,3078,6,150,-1,0,3078,3091,
1,0,0,0,3079,3080,7,12,0,0,3080,3081,5,30,0,0,3081,3082,3,32,16,0,3082,
3083,5,31,0,0,3083,3084,3,298,149,0,3084,3085,6,150,-1,0,3085,3091,1,0,
0,0,3086,3087,7,13,0,0,3087,3088,3,298,149,0,3088,3089,6,150,-1,0,3089,
3091,1,0,0,0,3090,3042,1,0,0,0,3090,3049,1,0,0,0,3090,3055,1,0,0,0,3090,
3059,1,0,0,0,3090,3065,1,0,0,0,3090,3072,1,0,0,0,3090,3079,1,0,0,0,3090,
3086,1,0,0,0,3091,301,1,0,0,0,3092,3093,5,187,0,0,3093,3094,5,30,0,0,3094,
3095,3,36,18,0,3095,3096,5,31,0,0,3096,3097,6,151,-1,0,3097,3183,1,0,0,
0,3098,3099,5,188,0,0,3099,3100,5,30,0,0,3100,3101,3,36,18,0,3101,3102,
5,31,0,0,3102,3103,6,151,-1,0,3103,3183,1,0,0,0,3104,3105,5,187,0,0,3105,
3106,5,30,0,0,3106,3107,3,32,16,0,3107,3108,5,31,0,0,3108,3109,6,151,-1,
0,3109,3183,1,0,0,0,3110,3111,5,188,0,0,3111,3112,5,30,0,0,3112,3113,3,
34,17,0,3113,3114,5,31,0,0,3114,3115,6,151,-1,0,3115,3183,1,0,0,0,3116,
3117,5,186,0,0,3117,3118,5,30,0,0,3118,3119,3,34,17,0,3119,3120,5,31,0,
0,3120,3121,6,151,-1,0,3121,3183,1,0,0,0,3122,3123,5,185,0,0,3123,3124,
5,30,0,0,3124,3125,3,32,16,0,3125,3126,5,31,0,0,3126,3127,6,151,-1,0,3127,
3183,1,0,0,0,3128,3129,5,184,0,0,3129,3130,5,30,0,0,3130,3131,3,32,16,
0,3131,3132,5,31,0,0,3132,3133,6,151,-1,0,3133,3183,1,0,0,0,3134,3135,
5,183,0,0,3135,3136,5,30,0,0,3136,3137,3,32,16,0,3137,3138,5,31,0,0,3138,
3139,6,151,-1,0,3139,3183,1,0,0,0,3140,3141,5,192,0,0,3141,3142,5,30,0,
0,3142,3143,3,34,17,0,3143,3144,5,31,0,0,3144,3145,6,151,-1,0,3145,3183,
1,0,0,0,3146,3147,5,191,0,0,3147,3148,5,30,0,0,3148,3149,3,32,16,0,3149,
3150,5,31,0,0,3150,3151,6,151,-1,0,3151,3183,1,0,0,0,3152,3153,5,190,0,
0,3153,3154,5,30,0,0,3154,3155,3,32,16,0,3155,3156,5,31,0,0,3156,3157,
6,151,-1,0,3157,3183,1,0,0,0,3158,3159,5,189,0,0,3159,3160,5,30,0,0,3160,
3161,3,32,16,0,3161,3162,5,31,0,0,3162,3163,6,151,-1,0,3163,3183,1,0,0,
0,3164,3165,5,180,0,0,3165,3166,5,30,0,0,3166,3167,3,32,16,0,3167,3168,
5,31,0,0,3168,3169,6,151,-1,0,3169,3183,1,0,0,0,3170,3171,5,182,0,0,3171,
3172,5,30,0,0,3172,3173,3,166,83,0,3173,3174,5,31,0,0,3174,3175,6,151,
-1,0,3175,3183,1,0,0,0,3176,3177,5,84,0,0,3177,3178,5,30,0,0,3178,3179,
3,304,152,0,3179,3180,5,31,0,0,3180,3181,6,151,-1,0,3181,3183,1,0,0,0,
3182,3092,1,0,0,0,3182,3098,1,0,0,0,3182,3104,1,0,0,0,3182,3110,1,0,0,
0,3182,3116,1,0,0,0,3182,3122,1,0,0,0,3182,3128,1,0,0,0,3182,3134,1,0,
0,0,3182,3140,1,0,0,0,3182,3146,1,0,0,0,3182,3152,1,0,0,0,3182,3158,1,
0,0,0,3182,3164,1,0,0,0,3182,3170,1,0,0,0,3182,3176,1,0,0,0,3183,303,1,
0,0,0,3184,3185,3,306,153,0,3185,3186,6,152,-1,0,3186,3188,1,0,0,0,3187,
3184,1,0,0,0,3188,3191,1,0,0,0,3189,3187,1,0,0,0,3189,3190,1,0,0,0,3190,
305,1,0,0,0,3191,3189,1,0,0,0,3192,3193,7,14,0,0,3193,307,1,0,0,0,3194,
3195,3,302,151,0,3195,3196,6,154,-1,0,3196,3203,1,0,0,0,3197,3198,3,6,
3,0,3198,3199,6,154,-1,0,3199,3203,1,0,0,0,3200,3201,5,178,0,0,3201,3203,
6,154,-1,0,3202,3194,1,0,0,0,3202,3197,1,0,0,0,3202,3200,1,0,0,0,3203,
309,1,0,0,0,3204,3205,3,302,151,0,3205,3206,6,155,-1,0,3206,3376,1,0,0,
0,3207,3208,5,181,0,0,3208,3209,5,30,0,0,3209,3210,5,178,0,0,3210,3211,
5,31,0,0,3211,3376,6,155,-1,0,3212,3213,5,181,0,0,3213,3214,5,30,0,0,3214,
3215,5,263,0,0,3215,3216,5,31,0,0,3216,3376,6,155,-1,0,3217,3218,5,195,
0,0,3218,3219,5,30,0,0,3219,3220,5,39,0,0,3220,3221,5,263,0,0,3221,3222,
5,31,0,0,3222,3376,6,155,-1,0,3223,3224,5,195,0,0,3224,3225,5,30,0,0,3225,
3226,3,118,59,0,3226,3227,5,31,0,0,3227,3228,6,155,-1,0,3228,3376,1,0,
0,0,3229,3230,5,195,0,0,3230,3231,5,30,0,0,3231,3232,5,178,0,0,3232,3233,
5,31,0,0,3233,3376,6,155,-1,0,3234,3235,5,196,0,0,3235,3236,5,30,0,0,3236,
3237,3,310,155,0,3237,3238,5,31,0,0,3238,3239,6,155,-1,0,3239,3376,1,0,
0,0,3240,3241,5,187,0,0,3241,3242,5,42,0,0,3242,3243,3,32,16,0,3243,3244,
5,43,0,0,3244,3245,5,30,0,0,3245,3246,3,312,156,0,3246,3247,5,31,0,0,3247,
3248,6,155,-1,0,3248,3376,1,0,0,0,3249,3250,5,188,0,0,3250,3251,5,42,0,
0,3251,3252,3,32,16,0,3252,3253,5,43,0,0,3253,3254,5,30,0,0,3254,3255,
3,314,157,0,3255,3256,5,31,0,0,3256,3257,6,155,-1,0,3257,3376,1,0,0,0,
3258,3259,5,186,0,0,3259,3260,5,42,0,0,3260,3261,3,32,16,0,3261,3262,5,
43,0,0,3262,3263,5,30,0,0,3263,3264,3,316,158,0,3264,3265,5,31,0,0,3265,
3266,6,155,-1,0,3266,3376,1,0,0,0,3267,3268,5,185,0,0,3268,3269,5,42,0,
0,3269,3270,3,32,16,0,3270,3271,5,43,0,0,3271,3272,5,30,0,0,3272,3273,
3,318,159,0,3273,3274,5,31,0,0,3274,3275,6,155,-1,0,3275,3376,1,0,0,0,
3276,3277,5,184,0,0,3277,3278,5,42,0,0,3278,3279,3,32,16,0,3279,3280,5,
43,0,0,3280,3281,5,30,0,0,3281,3282,3,320,160,0,3282,3283,5,31,0,0,3283,
3284,6,155,-1,0,3284,3376,1,0,0,0,3285,3286,5,183,0,0,3286,3287,5,42,0,
0,3287,3288,3,32,16,0,3288,3289,5,43,0,0,3289,3290,5,30,0,0,3290,3291,
3,322,161,0,3291,3292,5,31,0,0,3292,3293,6,155,-1,0,3293,3376,1,0,0,0,
3294,3295,5,192,0,0,3295,3296,5,42,0,0,3296,3297,3,32,16,0,3297,3298,5,
43,0,0,3298,3299,5,30,0,0,3299,3300,3,316,158,0,3300,3301,5,31,0,0,3301,
3302,6,155,-1,0,3302,3376,1,0,0,0,3303,3304,5,191,0,0,3304,3305,5,42,0,
0,3305,3306,3,32,16,0,3306,3307,5,43,0,0,3307,3308,5,30,0,0,3308,3309,
3,318,159,0,3309,3310,5,31,0,0,3310,3311,6,155,-1,0,3311,3376,1,0,0,0,
3312,3313,5,190,0,0,3313,3314,5,42,0,0,3314,3315,3,32,16,0,3315,3316,5,
43,0,0,3316,3317,5,30,0,0,3317,3318,3,320,160,0,3318,3319,5,31,0,0,3319,
3320,6,155,-1,0,3320,3376,1,0,0,0,3321,3322,5,189,0,0,3322,3323,5,42,0,
0,3323,3324,3,32,16,0,3324,3325,5,43,0,0,3325,3326,5,30,0,0,3326,3327,
3,322,161,0,3327,3328,5,31,0,0,3328,3329,6,155,-1,0,3329,3376,1,0,0,0,
3330,3331,5,180,0,0,3331,3332,5,42,0,0,3332,3333,3,32,16,0,3333,3334,5,
43,0,0,3334,3335,5,30,0,0,3335,3336,3,320,160,0,3336,3337,5,31,0,0,3337,
3338,6,155,-1,0,3338,3376,1,0,0,0,3339,3340,5,182,0,0,3340,3341,5,42,0,
0,3341,3342,3,32,16,0,3342,3343,5,43,0,0,3343,3344,5,30,0,0,3344,3345,
3,324,162,0,3345,3346,5,31,0,0,3346,3347,6,155,-1,0,3347,3376,1,0,0,0,
3348,3349,5,181,0,0,3349,3350,5,42,0,0,3350,3351,3,32,16,0,3351,3352,5,
43,0,0,3352,3353,5,30,0,0,3353,3354,3,326,163,0,3354,3355,5,31,0,0,3355,
3356,6,155,-1,0,3356,3376,1,0,0,0,3357,3358,5,195,0,0,3358,3359,5,42,0,
0,3359,3360,3,32,16,0,3360,3361,5,43,0,0,3361,3362,5,30,0,0,3362,3363,
3,328,164,0,3363,3364,5,31,0,0,3364,3365,6,155,-1,0,3365,3376,1,0,0,0,
3366,3367,5,196,0,0,3367,3368,5,42,0,0,3368,3369,3,32,16,0,3369,3370,5,
43,0,0,3370,3371,5,30,0,0,3371,3372,3,332,166,0,3372,3373,5,31,0,0,3373,
3374,6,155,-1,0,3374,3376,1,0,0,0,3375,3204,1,0,0,0,3375,3207,1,0,0,0,
3375,3212,1,0,0,0,3375,3217,1,0,0,0,3375,3223,1,0,0,0,3375,3229,1,0,0,
0,3375,3234,1,0,0,0,3375,3240,1,0,0,0,3375,3249,1,0,0,0,3375,3258,1,0,
0,0,3375,3267,1,0,0,0,3375,3276,1,0,0,0,3375,3285,1,0,0,0,3375,3294,1,
0,0,0,3375,3303,1,0,0,0,3375,3312,1,0,0,0,3375,3321,1,0,0,0,3375,3330,
1,0,0,0,3375,3339,1,0,0,0,3375,3348,1,0,0,0,3375,3357,1,0,0,0,3375,3366,
1,0,0,0,3376,311,1,0,0,0,3377,3378,3,36,18,0,3378,3379,6,156,-1,0,3379,
3384,1,0,0,0,3380,3381,3,32,16,0,3381,3382,6,156,-1,0,3382,3384,1,0,0,
0,3383,3377,1,0,0,0,3383,3380,1,0,0,0,3384,3387,1,0,0,0,3385,3383,1,0,
0,0,3385,3386,1,0,0,0,3386,313,1,0,0,0,3387,3385,1,0,0,0,3388,3389,3,36,
18,0,3389,3390,6,157,-1,0,3390,3395,1,0,0,0,3391,3392,3,34,17,0,3392,3393,
6,157,-1,0,3393,3395,1,0,0,0,3394,3388,1,0,0,0,3394,3391,1,0,0,0,3395,
3398,1,0,0,0,3396,3394,1,0,0,0,3396,3397,1,0,0,0,3397,315,1,0,0,0,3398,
3396,1,0,0,0,3399,3400,3,34,17,0,3400,3401,6,158,-1,0,3401,3403,1,0,0,
0,3402,3399,1,0,0,0,3403,3406,1,0,0,0,3404,3402,1,0,0,0,3404,3405,1,0,
0,0,3405,317,1,0,0,0,3406,3404,1,0,0,0,3407,3408,3,32,16,0,3408,3409,6,
159,-1,0,3409,3411,1,0,0,0,3410,3407,1,0,0,0,3411,3414,1,0,0,0,3412,3410,
1,0,0,0,3412,3413,1,0,0,0,3413,319,1,0,0,0,3414,3412,1,0,0,0,3415,3416,
3,32,16,0,3416,3417,6,160,-1,0,3417,3419,1,0,0,0,3418,3415,1,0,0,0,3419,
3422,1,0,0,0,3420,3418,1,0,0,0,3420,3421,1,0,0,0,3421,321,1,0,0,0,3422,
3420,1,0,0,0,3423,3424,3,32,16,0,3424,3425,6,161,-1,0,3425,3427,1,0,0,
0,3426,3423,1,0,0,0,3427,3430,1,0,0,0,3428,3426,1,0,0,0,3428,3429,1,0,
0,0,3429,323,1,0,0,0,3430,3428,1,0,0,0,3431,3432,3,166,83,0,3432,3433,
6,162,-1,0,3433,3435,1,0,0,0,3434,3431,1,0,0,0,3435,3438,1,0,0,0,3436,
3434,1,0,0,0,3436,3437,1,0,0,0,3437,325,1,0,0,0,3438,3436,1,0,0,0,3439,
3440,5,178,0,0,3440,3444,6,163,-1,0,3441,3442,5,263,0,0,3442,3444,6,163,
-1,0,3443,3439,1,0,0,0,3443,3441,1,0,0,0,3444,3447,1,0,0,0,3445,3443,1,
0,0,0,3445,3446,1,0,0,0,3446,327,1,0,0,0,3447,3445,1,0,0,0,3448,3449,3,
330,165,0,3449,3450,6,164,-1,0,3450,3452,1,0,0,0,3451,3448,1,0,0,0,3452,
3455,1,0,0,0,3453,3451,1,0,0,0,3453,3454,1,0,0,0,3454,329,1,0,0,0,3455,
3453,1,0,0,0,3456,3457,5,178,0,0,3457,3465,6,165,-1,0,3458,3459,5,39,0,
0,3459,3460,5,263,0,0,3460,3465,6,165,-1,0,3461,3462,3,118,59,0,3462,3463,
6,165,-1,0,3463,3465,1,0,0,0,3464,3456,1,0,0,0,3464,3458,1,0,0,0,3464,
3461,1,0,0,0,3465,331,1,0,0,0,3466,3467,3,310,155,0,3467,3468,6,166,-1,
0,3468,3470,1,0,0,0,3469,3466,1,0,0,0,3470,3473,1,0,0,0,3471,3469,1,0,
0,0,3471,3472,1,0,0,0,3472,333,1,0,0,0,3473,3471,1,0,0,0,3474,3475,3,44,
22,0,3475,3476,6,167,-1,0,3476,3484,1,0,0,0,3477,3478,3,46,23,0,3478,3479,
6,167,-1,0,3479,3484,1,0,0,0,3480,3481,3,2,1,0,3481,3482,6,167,-1,0,3482,
3484,1,0,0,0,3483,3474,1,0,0,0,3483,3477,1,0,0,0,3483,3480,1,0,0,0,3484,
335,1,0,0,0,3485,3486,5,167,0,0,3486,3487,5,36,0,0,3487,3488,5,30,0,0,
3488,3489,3,304,152,0,3489,3490,5,31,0,0,3490,3491,6,168,-1,0,3491,3518,
1,0,0,0,3492,3493,5,168,0,0,3493,3494,3,38,19,0,3494,3495,5,75,0,0,3495,
3496,3,38,19,0,3496,3497,5,75,0,0,3497,3498,3,38,19,0,3498,3499,5,75,0,
0,3499,3500,3,38,19,0,3500,3501,6,168,-1,0,3501,3518,1,0,0,0,3502,3503,
5,169,0,0,3503,3504,3,6,3,0,3504,3505,6,168,-1,0,3505,3518,1,0,0,0,3506,
3507,5,169,0,0,3507,3508,5,36,0,0,3508,3509,5,30,0,0,3509,3510,3,304,152,
0,3510,3511,5,31,0,0,3511,3512,6,168,-1,0,3512,3518,1,0,0,0,3513,3514,
3,334,167,0,3514,3515,6,168,-1,0,3515,3518,1,0,0,0,3516,3518,3,40,20,0,
3517,3485,1,0,0,0,3517,3492,1,0,0,0,3517,3502,1,0,0,0,3517,3506,1,0,0,
0,3517,3513,1,0,0,0,3517,3516,1,0,0,0,3518,337,1,0,0,0,3519,3520,3,340,
170,0,3520,3521,5,17,0,0,3521,3522,3,342,171,0,3522,3523,5,18,0,0,3523,
3524,6,169,-1,0,3524,339,1,0,0,0,3525,3526,5,25,0,0,3526,3527,5,40,0,0,
3527,3528,3,100,50,0,3528,3529,3,2,1,0,3529,3530,6,170,-1,0,3530,3540,
1,0,0,0,3531,3532,5,25,0,0,3532,3533,5,40,0,0,3533,3534,3,100,50,0,3534,
3535,3,2,1,0,3535,3536,5,34,0,0,3536,3537,3,2,1,0,3537,3538,6,170,-1,0,
3538,3540,1,0,0,0,3539,3525,1,0,0,0,3539,3531,1,0,0,0,3540,341,1,0,0,0,
3541,3542,3,344,172,0,3542,3543,6,171,-1,0,3543,3545,1,0,0,0,3544,3541,
1,0,0,0,3545,3548,1,0,0,0,3546,3544,1,0,0,0,3546,3547,1,0,0,0,3547,343,
1,0,0,0,3548,3546,1,0,0,0,3549,3550,5,179,0,0,3550,3551,5,36,0,0,3551,
3552,5,30,0,0,3552,3553,3,304,152,0,3553,3554,5,31,0,0,3554,3555,6,172,
-1,0,3555,3569,1,0,0,0,3556,3557,3,336,168,0,3557,3558,6,172,-1,0,3558,
3569,1,0,0,0,3559,3560,5,170,0,0,3560,3561,5,36,0,0,3561,3562,5,30,0,0,
3562,3563,3,304,152,0,3563,3564,5,31,0,0,3564,3565,6,172,-1,0,3565,3569,
1,0,0,0,3566,3567,5,55,0,0,3567,3569,6,172,-1,0,3568,3549,1,0,0,0,3568,
3556,1,0,0,0,3568,3559,1,0,0,0,3568,3566,1,0,0,0,3569,345,1,0,0,0,3570,
3571,3,348,174,0,3571,3572,5,17,0,0,3572,3573,3,356,178,0,3573,3574,5,
18,0,0,3574,3575,6,173,-1,0,3575,347,1,0,0,0,3576,3577,5,50,0,0,3577,3578,
5,40,0,0,3578,3579,3,352,176,0,3579,3580,3,2,1,0,3580,3581,6,174,-1,0,
3581,349,1,0,0,0,3582,3583,5,300,0,0,3583,3584,3,352,176,0,3584,3585,3,
2,1,0,3585,3586,6,175,-1,0,3586,351,1,0,0,0,3587,3588,3,354,177,0,3588,
3589,6,176,-1,0,3589,3591,1,0,0,0,3590,3587,1,0,0,0,3591,3594,1,0,0,0,
3592,3590,1,0,0,0,3592,3593,1,0,0,0,3593,353,1,0,0,0,3594,3592,1,0,0,0,
3595,3611,5,52,0,0,3596,3611,5,51,0,0,3597,3611,5,171,0,0,3598,3599,5,
62,0,0,3599,3611,5,51,0,0,3600,3601,5,62,0,0,3601,3611,5,52,0,0,3602,3603,
5,62,0,0,3603,3611,5,63,0,0,3604,3605,5,62,0,0,3605,3611,5,64,0,0,3606,
3607,5,62,0,0,3607,3611,5,65,0,0,3608,3609,5,62,0,0,3609,3611,5,66,0,0,
3610,3595,1,0,0,0,3610,3596,1,0,0,0,3610,3597,1,0,0,0,3610,3598,1,0,0,
0,3610,3600,1,0,0,0,3610,3602,1,0,0,0,3610,3604,1,0,0,0,3610,3606,1,0,
0,0,3610,3608,1,0,0,0,3611,355,1,0,0,0,3612,3613,3,358,179,0,3613,3614,
6,178,-1,0,3614,3616,1,0,0,0,3615,3612,1,0,0,0,3616,3619,1,0,0,0,3617,
3615,1,0,0,0,3617,3618,1,0,0,0,3618,357,1,0,0,0,3619,3617,1,0,0,0,3620,
3621,5,21,0,0,3621,3622,3,2,1,0,3622,3623,6,179,-1,0,3623,3646,1,0,0,0,
3624,3625,5,50,0,0,3625,3626,5,40,0,0,3626,3627,3,120,60,0,3627,3628,6,
179,-1,0,3628,3646,1,0,0,0,3629,3630,5,25,0,0,3630,3631,5,40,0,0,3631,
3632,3,2,1,0,3632,3633,6,179,-1,0,3633,3646,1,0,0,0,3634,3635,3,178,89,
0,3635,3636,6,179,-1,0,3636,3646,1,0,0,0,3637,3638,5,50,0,0,3638,3639,
3,32,16,0,3639,3640,6,179,-1,0,3640,3646,1,0,0,0,3641,3642,3,334,167,0,
3642,3643,6,179,-1,0,3643,3646,1,0,0,0,3644,3646,3,40,20,0,3645,3620,1,
0,0,0,3645,3624,1,0,0,0,3645,3629,1,0,0,0,3645,3634,1,0,0,0,3645,3637,
1,0,0,0,3645,3641,1,0,0,0,3645,3644,1,0,0,0,3646,359,1,0,0,0,3647,3648,
3,362,181,0,3648,3649,5,17,0,0,3649,3650,3,368,184,0,3650,3651,5,18,0,
0,3651,3652,6,180,-1,0,3652,361,1,0,0,0,3653,3654,5,273,0,0,3654,3655,
3,364,182,0,3655,3656,3,2,1,0,3656,3657,6,181,-1,0,3657,3666,1,0,0,0,3658,
3659,5,273,0,0,3659,3660,3,364,182,0,3660,3661,3,2,1,0,3661,3662,5,34,
0,0,3662,3663,3,2,1,0,3663,3664,6,181,-1,0,3664,3666,1,0,0,0,3665,3653,
1,0,0,0,3665,3658,1,0,0,0,3666,363,1,0,0,0,3667,3668,3,366,183,0,3668,
3669,6,182,-1,0,3669,3671,1,0,0,0,3670,3667,1,0,0,0,3671,3674,1,0,0,0,
3672,3670,1,0,0,0,3672,3673,1,0,0,0,3673,365,1,0,0,0,3674,3672,1,0,0,0,
3675,3676,7,15,0,0,3676,367,1,0,0,0,3677,3678,3,370,185,0,3678,3679,6,
184,-1,0,3679,3681,1,0,0,0,3680,3677,1,0,0,0,3681,3684,1,0,0,0,3682,3680,
1,0,0,0,3682,3683,1,0,0,0,3683,369,1,0,0,0,3684,3682,1,0,0,0,3685,3686,
5,21,0,0,3686,3687,3,2,1,0,3687,3688,5,44,0,0,3688,3689,3,32,16,0,3689,
3690,6,185,-1,0,3690,3701,1,0,0,0,3691,3692,5,25,0,0,3692,3693,5,40,0,
0,3693,3694,3,2,1,0,3694,3695,6,185,-1,0,3695,3701,1,0,0,0,3696,3697,3,
334,167,0,3697,3698,6,185,-1,0,3698,3701,1,0,0,0,3699,3701,3,40,20,0,3700,
3685,1,0,0,0,3700,3691,1,0,0,0,3700,3696,1,0,0,0,3700,3699,1,0,0,0,3701,
371,1,0,0,0,3702,3703,3,8,4,0,3703,3704,5,0,0,1,3704,373,1,0,0,0,184,384,
392,401,410,499,550,561,591,598,616,648,676,716,727,737,739,750,752,760,
782,795,811,835,908,915,922,927,936,947,956,967,978,991,995,1003,1019,
1026,1035,1063,1141,1143,1157,1163,1172,1174,1183,1197,1211,1221,1229,
1233,1272,1280,1291,1305,1313,1329,1339,1342,1366,1513,1523,1532,1535,
1617,1626,1658,1718,1758,1774,1784,1814,1842,1851,1857,1874,1882,1940,
1950,1968,1986,2005,2026,2045,2060,2068,2080,2100,2107,2112,2123,2135,
2245,2257,2273,2287,2296,2309,2311,2354,2365,2372,2380,2388,2401,2407,
2413,2418,2447,2455,2469,2474,2499,2508,2519,2523,2530,2550,2559,2561,
2576,2623,2633,2635,2642,2648,2692,2701,2741,2746,2786,2790,2800,2822,
2834,2845,2860,2873,2886,2889,2901,2915,2933,2951,2965,2989,3004,3011,
3020,3022,3029,3040,3090,3182,3189,3202,3375,3383,3385,3394,3396,3404,
3412,3420,3428,3436,3443,3445,3453,3464,3471,3483,3517,3539,3546,3568,
3592,3610,3617,3645,3665,3672,3682,3700
};
public static readonly ATN _ATN =
new ATNDeserializer().Deserialize(_serializedATN);
}
} // namespace ILAssembler