//------------------------------------------------------------------------------
// <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;
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"
};
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 = 372;
_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 = 390;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,1,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 374;
_localctx.direct = Match(DOTTEDNAME);
Actions.AddDottedNameToken(_localctx.Builder, _localctx.direct);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
{
State = 382;
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 = 376;
_localctx.part = dottedNamePart();
Actions.AddDottedNamePart(_localctx.Builder, _localctx.part.Value);
State = 378;
Match(DOT);
}
}
}
State = 384;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,0,Context);
}
State = 385;
_localctx.tail = dottedNamePart();
Actions.AddDottedNamePart(_localctx.Builder, _localctx.tail.Value);
}
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 388;
_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 = 392;
_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 = 399;
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 = 394;
_localctx.head = Match(QSTRING);
Actions.AddComposedStringPart(_localctx.Builder, _localctx.head);
State = 396;
Match(PLUS);
}
}
}
State = 401;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,2,Context);
}
State = 402;
_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 = 408;
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 = 405;
decl();
}
}
State = 410;
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 = 497;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,4,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 411;
classHead();
State = 412;
Match(T__16);
State = 413;
classDecls();
State = 414;
Match(T__17);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 416;
nameSpaceHead();
State = 417;
Match(T__16);
State = 418;
decls();
State = 419;
Match(T__17);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 421;
methodHead();
State = 422;
Match(T__16);
State = 423;
methodDecls();
State = 424;
Match(T__17);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 426;
fieldDecl();
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
Actions.BeginTopLevelDirective();
State = 428;
_localctx.data = dataDecl();
Actions.ProcessTopLevelDataDeclaration(_localctx.data);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
Actions.BeginTopLevelDirective();
State = 432;
_localctx.vtable = vtableDecl();
Actions.ProcessTopLevelVTableDeclaration(_localctx.vtable);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
Actions.BeginTopLevelDirective();
State = 436;
_localctx.vtfixup = vtfixupDecl();
Actions.ProcessTopLevelVTableFixupDeclaration(_localctx.vtfixup);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
Actions.BeginTopLevelDirective();
State = 440;
_localctx.source = extSourceSpec();
Actions.ProcessTopLevelSourceDirective(_localctx.source);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
Actions.BeginTopLevelDirective();
State = 444;
_localctx.file = fileDecl();
Actions.ProcessTopLevelFileDeclaration(_localctx.file);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
Actions.BeginTopLevelDirective();
State = 448;
_localctx.assembly = assemblyBlock();
Actions.ProcessTopLevelAssembly(_localctx.assembly);
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
Actions.BeginTopLevelDirective();
State = 452;
_localctx.assemblyReference = assemblyRefBlock();
Actions.ProcessTopLevelAssemblyReference(_localctx.assemblyReference);
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
Actions.BeginTopLevelDirective();
State = 456;
_localctx.exportedType = exptypeBlock();
Actions.ProcessTopLevelExportedType(_localctx.exportedType);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
Actions.BeginTopLevelDirective();
State = 460;
_localctx.resource = manifestResBlock();
Actions.ProcessTopLevelManifestResource(_localctx.resource);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
Actions.BeginTopLevelDirective();
State = 464;
_localctx.module = moduleHead();
Actions.ProcessTopLevelModule(_localctx.module.Value, _localctx.module.HasName, _localctx.module.IsExternal);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
Actions.BeginTopLevelDirective();
State = 468;
_localctx.security = secDecl();
Actions.ProcessTopLevelSecurityDeclaration(_localctx.security);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 471;
_localctx.attribute = customAttrDecl();
Actions.ProcessTopLevelCustomAttribute(_localctx.attribute);
}
break;
case 17:
EnterOuterAlt(_localctx, 17);
{
Actions.BeginTopLevelDirective();
State = 475;
subsystem();
}
break;
case 18:
EnterOuterAlt(_localctx, 18);
{
Actions.BeginTopLevelDirective();
State = 477;
corflags();
}
break;
case 19:
EnterOuterAlt(_localctx, 19);
{
Actions.BeginTopLevelDirective();
State = 479;
alignment();
}
break;
case 20:
EnterOuterAlt(_localctx, 20);
{
Actions.BeginTopLevelDirective();
State = 481;
imagebase();
}
break;
case 21:
EnterOuterAlt(_localctx, 21);
{
Actions.BeginTopLevelDirective();
State = 483;
stackreserve();
}
break;
case 22:
EnterOuterAlt(_localctx, 22);
{
Actions.BeginTopLevelDirective();
State = 485;
_localctx.language = languageDecl();
Actions.ProcessTopLevelLanguageDirective(_localctx.language);
}
break;
case 23:
EnterOuterAlt(_localctx, 23);
{
Actions.BeginTopLevelDirective();
State = 489;
_localctx.typedef = typedefDecl();
Actions.ProcessTopLevelTypedef(_localctx.typedef);
}
break;
case 24:
EnterOuterAlt(_localctx, 24);
{
Actions.BeginTopLevelDirective();
State = 493;
compControl();
}
break;
case 25:
EnterOuterAlt(_localctx, 25);
{
State = 494;
typelist();
}
break;
case 26:
EnterOuterAlt(_localctx, 26);
{
Actions.BeginTopLevelDirective();
State = 496;
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 = 499;
Match(T__18);
State = 500;
_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 = 503;
Match(T__19);
State = 504;
_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 = 507;
Match(T__20);
State = 508;
Match(T__21);
State = 509;
_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 = 512;
Match(T__22);
State = 513;
_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 = 516;
Match(T__23);
State = 517;
_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 = 520;
Match(T__24);
State = 521;
_localctx.attributes = asmAttr();
State = 522;
_localctx.name = dottedName();
State = 523;
Match(T__16);
State = 524;
_localctx.declarations = assemblyDecls();
State = 525;
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 = 528;
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 = 548;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,5,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 530;
Match(T__26);
State = 531;
_localctx.language = languageString();
_localctx.Value = Actions.CreateLanguageDirective(_localctx.language.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 534;
Match(T__26);
State = 535;
_localctx.language = languageString();
State = 536;
Match(T__27);
State = 537;
_localctx.vendor = languageString();
_localctx.Value = Actions.CreateLanguageDirective(_localctx.language.Value, _localctx.vendor.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 540;
Match(T__26);
State = 541;
_localctx.language = languageString();
State = 542;
Match(T__27);
State = 543;
_localctx.vendor = languageString();
State = 544;
Match(T__27);
State = 545;
_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 = 550;
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 = 552;
Match(T__28);
State = 553;
Match(T__16);
State = 559;
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 = 554;
_localctx.name = className();
Actions.ProcessTopLevelTypeListEntry(_localctx.name.Value);
}
}
State = 561;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 562;
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 = 564;
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 = 566;
_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 = 589;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,7,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 568;
_localctx.@decimal = Match(FLOAT64);
_localctx.Value = Actions.ParseFloatingLiteral(_localctx.@decimal);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 570;
_localctx.trailing = int32();
State = 571;
Match(DOT);
_localctx.Value = Actions.ParseFloatingInteger((_localctx.trailing!=null?(_localctx.trailing.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 574;
_localctx.integer = int32();
_localctx.Value = Actions.ParseFloatingInteger((_localctx.integer!=null?(_localctx.integer.Start):null));
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 577;
Match(FLOAT32);
State = 578;
Match(T__29);
State = 579;
_localctx.singleBits = int32();
State = 580;
Match(T__30);
_localctx.Value = Actions.ParseFloat32Bits((_localctx.singleBits!=null?(_localctx.singleBits.Start):null));
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 583;
Match(FLOAT64_);
State = 584;
Match(T__29);
State = 585;
_localctx.doubleBits = int64();
State = 586;
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 = 596;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case INT32:
EnterOuterAlt(_localctx, 1);
{
State = 591;
_localctx.value = int32();
_localctx.Value = Actions.ParseInt32((_localctx.value!=null?(_localctx.value.Start):null));
}
break;
case PTR:
EnterOuterAlt(_localctx, 2);
{
State = 594;
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 = 614;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,9,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 598;
Match(PP_DEFINE);
State = 599;
Match(ID);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 600;
Match(PP_DEFINE);
State = 601;
Match(ID);
State = 602;
Match(QSTRING);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 603;
Match(PP_UNDEF);
State = 604;
Match(ID);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 605;
Match(PP_IFDEF);
State = 606;
Match(ID);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 607;
Match(PP_IFNDEF);
State = 608;
Match(ID);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 609;
Match(PP_ELSE);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 610;
Match(PP_ENDIF);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 611;
Match(PP_INCLUDE);
State = 612;
Match(QSTRING);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 613;
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 = 646;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,10,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 616;
Match(T__32);
State = 617;
_localctx.signature = type();
State = 618;
Match(T__33);
State = 619;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateTypeSignatureTypedef(_localctx.signature.Value, _localctx.alias.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 622;
Match(T__32);
State = 623;
_localctx.classType = className();
State = 624;
Match(T__33);
State = 625;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateClassTypedef(_localctx.classType.Value, _localctx.alias.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 628;
Match(T__32);
State = 629;
_localctx.member = memberRef();
State = 630;
Match(T__33);
State = 631;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateMemberTypedef(_localctx.member.Value, _localctx.alias.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 634;
Match(T__32);
State = 635;
_localctx.attribute = customDescr();
State = 636;
Match(T__33);
State = 637;
_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 = 640;
Match(T__32);
State = 641;
_localctx.ownedAttribute = customDescrWithOwner();
State = 642;
Match(T__33);
State = 643;
_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 = 674;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,11,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 648;
Match(T__34);
State = 649;
_localctx.constructor = customType();
_localctx.Value = Actions.CreateDefaultCustomAttribute(_localctx.constructor.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 652;
Match(T__34);
State = 653;
_localctx.constructor = customType();
State = 654;
Match(T__35);
State = 655;
_localctx.stringValue = compQstring();
_localctx.Value = Actions.CreateStringCustomAttribute(_localctx.constructor.Value, _localctx.stringValue.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 658;
Match(T__34);
State = 659;
_localctx.constructor = customType();
State = 660;
Match(T__35);
State = 661;
Match(T__16);
State = 662;
_localctx.structuredValue = customBlobDescr();
State = 663;
Match(T__17);
_localctx.Value = Actions.CreateStructuredCustomAttribute(_localctx.constructor.Value, _localctx.structuredValue.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 666;
Match(T__34);
State = 667;
_localctx.constructor = customType();
State = 668;
Match(T__35);
State = 669;
Match(T__29);
State = 670;
_localctx.rawValue = bytes();
State = 671;
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 = 714;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,12,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 676;
Match(T__34);
State = 677;
Match(T__29);
State = 678;
_localctx.owner = ownerType();
State = 679;
Match(T__30);
State = 680;
_localctx.constructor = customType();
_localctx.Value = Actions.CreateDefaultOwnedCustomAttribute(_localctx.owner.Value, _localctx.constructor.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 683;
Match(T__34);
State = 684;
Match(T__29);
State = 685;
_localctx.owner = ownerType();
State = 686;
Match(T__30);
State = 687;
_localctx.constructor = customType();
State = 688;
Match(T__35);
State = 689;
_localctx.stringValue = compQstring();
_localctx.Value = Actions.CreateStringOwnedCustomAttribute(_localctx.owner.Value, _localctx.constructor.Value, _localctx.stringValue.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 692;
Match(T__34);
State = 693;
Match(T__29);
State = 694;
_localctx.owner = ownerType();
State = 695;
Match(T__30);
State = 696;
_localctx.constructor = customType();
State = 697;
Match(T__35);
State = 698;
Match(T__16);
State = 699;
_localctx.structuredValue = customBlobDescr();
State = 700;
Match(T__17);
_localctx.Value = Actions.CreateStructuredOwnedCustomAttribute(_localctx.owner.Value, _localctx.constructor.Value, _localctx.structuredValue.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 703;
Match(T__34);
State = 704;
Match(T__29);
State = 705;
_localctx.owner = ownerType();
State = 706;
Match(T__30);
State = 707;
_localctx.constructor = customType();
State = 708;
Match(T__35);
State = 709;
Match(T__29);
State = 710;
_localctx.rawValue = bytes();
State = 711;
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 = 716;
_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 = 725;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,13,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 719;
_localctx.typeValue = typeSpecOrScope();
_localctx.Value = Actions.CreateTypeOwner(_localctx.typeValue.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 722;
_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 = 727;
_localctx.arguments = customBlobArgs();
State = 728;
_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 = 737;
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 = 735;
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 = 731;
_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 = 734;
compControl();
}
break;
default:
throw new NoViableAltException(this);
}
}
}
State = 739;
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 = 750;
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 = 748;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__36:
case T__37:
{
State = 740;
_localctx.kind = fieldOrProp();
State = 741;
_localctx.argumentType = serializType();
State = 742;
_localctx.name = dottedName();
State = 743;
Match(T__35);
State = 744;
_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 = 747;
compControl();
}
break;
default:
throw new NoViableAltException(this);
}
}
State = 752;
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 = 753;
_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 = 756;
_localctx.element = serializTypeElement();
State = 758;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==ARRAY_TYPE_NO_BOUNDS) {
{
State = 757;
_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 = 780;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,19,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 762;
_localctx.primitive = simpleType();
_localctx.Value = Actions.CreatePrimitiveSerializationType(_localctx.primitive.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 765;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateSerializationTypeTypedef(_localctx, _localctx.alias.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 768;
_localctx.simpleTypeToken = Match(TYPE);
_localctx.Value = Actions.CreateSimpleSerializationType(_localctx.simpleTypeToken);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 770;
_localctx.simpleTypeToken = Match(OBJECT);
_localctx.Value = Actions.CreateSimpleSerializationType(_localctx.simpleTypeToken);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 772;
Match(ENUM);
State = 773;
Match(T__38);
State = 774;
_localctx.quotedName = Match(SQSTRING);
_localctx.Value = Actions.CreateEnumSerializationType(_localctx.quotedName);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 776;
Match(ENUM);
State = 777;
_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 = 793;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,20,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 782;
Match(MODULE);
State = 783;
Match(T__39);
State = 784;
_localctx.name = dottedName();
Actions.SetModuleHeader(_localctx, _localctx.name.Value, true);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 787;
Match(MODULE);
State = 788;
_localctx.name = dottedName();
Actions.SetModuleHeader(_localctx, _localctx.name.Value, false);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 791;
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 = 795;
Match(T__40);
State = 796;
Match(T__41);
State = 797;
_localctx.count = int32();
State = 798;
Match(T__42);
State = 799;
_localctx.attributes = vtfixupAttr();
State = 800;
Match(T__43);
State = 801;
_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 = 809;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 246290604621824L) != 0) || _la==INT32_ || _la==INT64_) {
{
{
State = 804;
_localctx.attribute = vtfixupAttrElement();
_localctx.Value = Actions.AddVTableFixupAttribute(_localctx.Value, _localctx.attribute.Value);
}
}
State = 811;
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 = 814;
_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 = 816;
Match(T__47);
State = 817;
Match(T__35);
State = 818;
Match(T__29);
State = 819;
_localctx.value = bytes();
State = 820;
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 = 823;
Match(T__48);
State = 824;
_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 = 827;
Match(T__49);
State = 833;
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 = 828;
_localctx.attribute = classAttr();
Actions.AddClassHeaderAttribute(_localctx.Builder, _localctx.attribute.Value);
}
}
State = 835;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 836;
_localctx.name = dottedName();
State = 837;
_localctx.genericParameters = typarsClause();
State = 838;
_localctx.baseType = extendsClause();
State = 839;
_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 = 906;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,23,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 842;
_localctx.attribute = Match(T__50);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 844;
_localctx.attribute = Match(T__51);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 846;
_localctx.attribute = Match(VALUE);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 848;
_localctx.attribute = Match(ENUM);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 850;
_localctx.attribute = Match(INTERFACE);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 852;
_localctx.attribute = Match(T__52);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 854;
_localctx.attribute = Match(T__53);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 856;
_localctx.attribute = Match(T__54);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 858;
_localctx.attribute = Match(T__55);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 860;
_localctx.attribute = Match(EXPLICIT);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 862;
_localctx.attribute = Match(T__14);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 864;
_localctx.attribute = Match(ANSI);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 866;
_localctx.attribute = Match(T__56);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 868;
_localctx.attribute = Match(T__57);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 870;
_localctx.attribute = Match(T__58);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 872;
_localctx.attribute = Match(T__59);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 17:
EnterOuterAlt(_localctx, 17);
{
State = 874;
_localctx.attribute = Match(T__60);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 18:
EnterOuterAlt(_localctx, 18);
{
State = 876;
Match(T__61);
State = 877;
_localctx.visibility = Match(T__50);
_localctx.Value = Actions.CreateNestedClassAttribute(_localctx.visibility);
}
break;
case 19:
EnterOuterAlt(_localctx, 19);
{
State = 879;
Match(T__61);
State = 880;
_localctx.visibility = Match(T__51);
_localctx.Value = Actions.CreateNestedClassAttribute(_localctx.visibility);
}
break;
case 20:
EnterOuterAlt(_localctx, 20);
{
State = 882;
Match(T__61);
State = 883;
_localctx.visibility = Match(T__62);
_localctx.Value = Actions.CreateNestedClassAttribute(_localctx.visibility);
}
break;
case 21:
EnterOuterAlt(_localctx, 21);
{
State = 885;
Match(T__61);
State = 886;
_localctx.visibility = Match(T__63);
_localctx.Value = Actions.CreateNestedClassAttribute(_localctx.visibility);
}
break;
case 22:
EnterOuterAlt(_localctx, 22);
{
State = 888;
Match(T__61);
State = 889;
_localctx.visibility = Match(T__64);
_localctx.Value = Actions.CreateNestedClassAttribute(_localctx.visibility);
}
break;
case 23:
EnterOuterAlt(_localctx, 23);
{
State = 891;
Match(T__61);
State = 892;
_localctx.visibility = Match(T__65);
_localctx.Value = Actions.CreateNestedClassAttribute(_localctx.visibility);
}
break;
case 24:
EnterOuterAlt(_localctx, 24);
{
State = 894;
_localctx.attribute = Match(T__66);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 25:
EnterOuterAlt(_localctx, 25);
{
State = 896;
_localctx.attribute = Match(T__67);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 26:
EnterOuterAlt(_localctx, 26);
{
State = 898;
_localctx.attribute = Match(T__68);
_localctx.Value = Actions.CreateClassAttribute(_localctx.attribute);
}
break;
case 27:
EnterOuterAlt(_localctx, 27);
{
State = 900;
Match(T__69);
State = 901;
Match(T__29);
State = 902;
_localctx.flags = int32();
State = 903;
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 = 913;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__16:
case T__71:
EnterOuterAlt(_localctx, 1);
{
}
break;
case T__70:
EnterOuterAlt(_localctx, 2);
{
State = 909;
Match(T__70);
State = 910;
_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 = 920;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__16:
EnterOuterAlt(_localctx, 1);
{
}
break;
case T__71:
EnterOuterAlt(_localctx, 2);
{
State = 916;
Match(T__71);
State = 917;
_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 = 925;
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 = 922;
classDecl();
}
}
State = 927;
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 = 934;
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 = 928;
_localctx.interfaceType = typeSpec();
_localctx.Builder.Add(_localctx.interfaceType.Value);
State = 930;
Match(T__27);
}
}
}
State = 936;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,27,Context);
}
State = 937;
_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 = 940;
_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 = 993;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,33,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 942;
_localctx.head = esHead();
State = 943;
_localctx.line = int32();
State = 945;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,28,Context) ) {
case 1:
{
State = 944;
_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 = 949;
_localctx.head = esHead();
State = 950;
_localctx.line = int32();
State = 951;
Match(T__74);
State = 952;
_localctx.column = int32();
State = 954;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,29,Context) ) {
case 1:
{
State = 953;
_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 = 958;
_localctx.head = esHead();
State = 959;
_localctx.line = int32();
State = 960;
Match(T__74);
State = 961;
_localctx.startColumn = int32();
State = 962;
Match(T__27);
State = 963;
_localctx.endColumn = int32();
State = 965;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,30,Context) ) {
case 1:
{
State = 964;
_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 = 969;
_localctx.head = esHead();
State = 970;
_localctx.startLine = int32();
State = 971;
Match(T__27);
State = 972;
_localctx.endLine = int32();
State = 973;
Match(T__74);
State = 974;
_localctx.column = int32();
State = 976;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,31,Context) ) {
case 1:
{
State = 975;
_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 = 980;
_localctx.head = esHead();
State = 981;
_localctx.startLine = int32();
State = 982;
Match(T__27);
State = 983;
_localctx.endLine = int32();
State = 984;
Match(T__74);
State = 985;
_localctx.startColumn = int32();
State = 986;
Match(T__27);
State = 987;
_localctx.endColumn = int32();
State = 989;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,32,Context) ) {
case 1:
{
State = 988;
_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 = 995;
Match(T__20);
State = 1001;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__75) {
{
{
State = 996;
_localctx.attribute = fileAttr();
Actions.AddFileAttribute(_localctx.Builder, _localctx.attribute.Value);
}
}
State = 1003;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 1004;
_localctx.name = dottedName();
Actions.SetFileName(_localctx.Builder, _localctx.name.Value);
State = 1006;
_localctx.entry = fileEntry();
Actions.AddFileEntry(_localctx.Builder, _localctx.entry.Value);
State = 1017;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==HASH) {
{
State = 1008;
Match(HASH);
State = 1009;
Match(T__35);
State = 1010;
Match(T__29);
State = 1011;
_localctx.hash = bytes();
State = 1012;
Match(T__30);
Actions.SetFileHash(_localctx.Builder, _localctx.hash.Value);
State = 1014;
_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 = 1019;
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 = 1024;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
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 = 1022;
_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 = 1026;
_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 = 1033;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__1 || _la==T__60 || ((((_la - 77)) & ~0x3f) == 0 && ((1L << (_la - 77)) & 127L) != 0)) {
{
{
State = 1028;
_localctx.attribute = asmAttrAny();
_localctx.Value = Actions.AddAssemblyAttribute(
_localctx.Value,
_localctx.attribute.Value,
_localctx.attribute.Mask);
}
}
State = 1035;
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 = 1061;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,38,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1036;
simpleInstr();
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1037;
_localctx.op = Match(INSTR_METHOD);
State = 1038;
_localctx.methodOperand = methodRef();
Actions.EmitMethodReferenceInstruction(_localctx.op, _localctx.methodOperand);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1041;
_localctx.op = Match(INSTR_FIELD);
State = 1042;
_localctx.fieldOperand = fieldRef();
Actions.EmitFieldReferenceInstruction(_localctx.op, _localctx.fieldOperand);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1045;
_localctx.op = Match(INSTR_FIELD);
State = 1046;
_localctx.metadataOperand = mdtoken();
Actions.EmitMetadataTokenInstruction(_localctx.op, _localctx.metadataOperand);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1049;
_localctx.op = Match(INSTR_TYPE);
State = 1050;
_localctx.typeOperand = typeSpec();
Actions.EmitTypeReferenceInstruction(_localctx.op, _localctx.typeOperand);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1053;
_localctx.op = Match(INSTR_SIG);
State = 1054;
_localctx.signatureOperand = calliSignature();
Actions.EmitCalliInstruction(_localctx.op, _localctx.signatureOperand);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1057;
_localctx.op = Match(INSTR_TOK);
State = 1058;
_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 = 1141;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,40,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1063;
_localctx.op = Match(INSTR_NONE);
Actions.EmitNoOperandInstruction(_localctx.op);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1065;
_localctx.op = Match(INSTR_VAR);
State = 1066;
_localctx.index = int32();
Actions.EmitVariableIndexInstruction(_localctx.op, (_localctx.index!=null?(_localctx.index.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1069;
_localctx.op = Match(INSTR_VAR);
State = 1070;
_localctx.name = id();
Actions.EmitVariableNameInstruction(_localctx.op, (_localctx.name!=null?(_localctx.name.Start):null));
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1073;
_localctx.op = Match(INSTR_I);
State = 1074;
_localctx.value32 = int32();
Actions.EmitInt32Instruction(_localctx.op, (_localctx.value32!=null?(_localctx.value32.Start):null));
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1077;
_localctx.op = Match(INSTR_I8);
State = 1078;
_localctx.value64 = int64();
Actions.EmitInt64Instruction(_localctx.op, (_localctx.value64!=null?(_localctx.value64.Start):null));
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1081;
_localctx.op = Match(INSTR_R);
State = 1082;
_localctx.value = float64();
Actions.EmitFloatingInstruction(_localctx.op, _localctx.value.Value);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1085;
_localctx.op = Match(INSTR_R);
State = 1086;
_localctx.integerValue = int64();
Actions.EmitFloatingInstruction(_localctx.op, (_localctx.integerValue!=null?(_localctx.integerValue.Start):null));
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 1089;
_localctx.op = Match(INSTR_R);
State = 1090;
Match(T__29);
State = 1091;
_localctx.rawFloat = bytes();
State = 1092;
Match(T__30);
Actions.EmitRawFloatingInstruction(_localctx.op, _localctx.rawFloat.Value, (_localctx.rawFloat!=null?(_localctx.rawFloat.Start):null));
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 1095;
_localctx.op = Match(INSTR_R);
State = 1096;
Match(T__83);
State = 1097;
Match(T__29);
State = 1098;
_localctx.rawFloat = bytes();
State = 1099;
Match(T__30);
Actions.EmitRawFloatingInstruction(_localctx.op, _localctx.rawFloat.Value, (_localctx.rawFloat!=null?(_localctx.rawFloat.Start):null));
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 1102;
_localctx.op = Match(INSTR_BRTARGET);
State = 1103;
_localctx.offset = int32();
Actions.EmitBranchOffsetInstruction(_localctx.op, (_localctx.offset!=null?(_localctx.offset.Start):null));
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 1106;
_localctx.op = Match(INSTR_BRTARGET);
State = 1107;
_localctx.label = id();
Actions.EmitBranchLabelInstruction(_localctx.op, (_localctx.label!=null?(_localctx.label.Start):null));
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 1110;
_localctx.op = Match(INSTR_STRING);
State = 1111;
_localctx.userString = compQstring();
Actions.EmitStringInstruction(_localctx.op, _localctx.userString.Value);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 1114;
_localctx.op = Match(INSTR_STRING);
State = 1115;
Match(ANSI);
State = 1116;
Match(T__29);
State = 1117;
_localctx.ansiString = compQstring();
State = 1118;
Match(T__30);
Actions.EmitAnsiStringInstruction(_localctx.op, _localctx.ansiString.Value);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 1121;
_localctx.op = Match(INSTR_STRING);
State = 1122;
Match(T__83);
State = 1123;
Match(T__29);
State = 1124;
_localctx.rawString = bytes();
State = 1125;
Match(T__30);
Actions.EmitRawStringInstruction(_localctx.op, _localctx.rawString.Value);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 1128;
_localctx.op = Match(INSTR_TOK);
State = 1129;
_localctx.rawToken = int32();
Actions.EmitRawTokenInstruction(_localctx.op, (_localctx.rawToken!=null?(_localctx.rawToken.Start):null));
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 1132;
_localctx.op = Match(INSTR_SWITCH);
_localctx.SwitchBuilder = Actions.CreateSwitchInstruction(_localctx.op);
State = 1139;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__29:
{
State = 1134;
Match(T__29);
State = 1135;
labels(_localctx.SwitchBuilder);
State = 1136;
Match(T__30);
}
break;
case T__84:
{
State = 1138;
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 = 1143;
_localctx.convention = callConv();
State = 1144;
_localctx.returnType = type();
State = 1145;
_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 = 1172;
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 = 1161;
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 = 1155;
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 = 1149;
_localctx.headLabel = id();
Actions.AddSwitchLabel(_localctx.Builder, (_localctx.headLabel!=null?(_localctx.headLabel.Start):null));
}
break;
case INT32:
{
State = 1152;
_localctx.headOffset = int32();
Actions.AddSwitchOffset(_localctx.Builder, (_localctx.headOffset!=null?(_localctx.headOffset.Start):null));
}
break;
default:
throw new NoViableAltException(this);
}
State = 1157;
Match(T__27);
}
}
}
State = 1163;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,42,Context);
}
State = 1170;
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 = 1164;
_localctx.tailLabel = id();
Actions.AddSwitchLabel(_localctx.Builder, (_localctx.tailLabel!=null?(_localctx.tailLabel.Start):null));
}
break;
case INT32:
{
State = 1167;
_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 = 1174;
Match(T__85);
State = 1181;
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 = 1175;
_localctx.argument = type();
_localctx.Builder.Add(_localctx.argument.Value);
State = 1177;
Match(T__27);
}
}
}
State = 1183;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,45,Context);
}
State = 1184;
_localctx.lastArgument = type();
_localctx.Builder.Add(_localctx.lastArgument.Value);
State = 1186;
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 = 1188;
Match(T__41);
State = 1195;
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 = 1189;
_localctx.item = bound();
_localctx.Builder.Add(Actions.CreateArrayBound(_localctx.item));
State = 1191;
Match(T__27);
}
}
}
State = 1197;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,46,Context);
}
State = 1198;
_localctx.lastItem = bound();
_localctx.Builder.Add(Actions.CreateArrayBound(_localctx.lastItem));
State = 1200;
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 = 1217;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__29:
EnterOuterAlt(_localctx, 1);
{
State = 1202;
Match(T__29);
State = 1209;
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 = 1203;
_localctx.argument = sigArg();
_localctx.Builder.Add(_localctx.argument.Value);
State = 1205;
Match(T__27);
}
}
}
State = 1211;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,47,Context);
}
State = 1212;
_localctx.lastArgument = sigArg();
_localctx.Builder.Add(_localctx.lastArgument.Value);
State = 1214;
Match(T__30);
}
break;
case T__84:
EnterOuterAlt(_localctx, 2);
{
State = 1216;
Match(T__84);
}
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 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 = 1229;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,50,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1219;
Match(ELLIPSIS);
_localctx.Value = Actions.CreateSentinelSignatureArgument();
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1221;
_localctx.attributes = paramAttr();
State = 1222;
_localctx.argumentType = type();
State = 1223;
_localctx.marshalling = marshalClause();
State = 1225;
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 = 1224;
_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 = 1268;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,51,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1231;
Match(T__41);
State = 1232;
_localctx.assemblyName = dottedName();
State = 1233;
Match(T__42);
State = 1234;
_localctx.typeName = slashedName();
_localctx.Value = Actions.CreateAssemblyQualifiedClassName(_localctx.assemblyName.Value, _localctx.typeName.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1237;
Match(T__41);
State = 1238;
_localctx.scopeToken = mdtoken();
State = 1239;
Match(T__42);
State = 1240;
_localctx.typeName = slashedName();
_localctx.Value = Actions.CreateTokenQualifiedClassName(_localctx.scopeToken.Value, _localctx.typeName.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1243;
Match(T__41);
State = 1244;
Match(PTR);
State = 1245;
Match(T__42);
State = 1246;
_localctx.typeName = slashedName();
_localctx.Value = Actions.CreatePointerQualifiedClassName(_localctx.typeName.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1249;
Match(T__41);
State = 1250;
Match(MODULE);
State = 1251;
_localctx.moduleName = dottedName();
State = 1252;
Match(T__42);
State = 1253;
_localctx.typeName = slashedName();
_localctx.Value = Actions.CreateModuleQualifiedClassName(_localctx.Start, _localctx.moduleName.Value, _localctx.typeName.Value);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1256;
_localctx.typeName = slashedName();
_localctx.Value = Actions.CreateUnqualifiedClassName(_localctx.typeName.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1259;
_localctx.typeToken = mdtoken();
_localctx.Value = Actions.CreateTokenClassName(_localctx.typeToken.Value);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1262;
Match(THIS);
_localctx.Value = Actions.CreateThisClassName(_localctx.Start);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 1264;
Match(BASE);
_localctx.Value = Actions.CreateBaseClassName(_localctx.Start);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 1266;
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 = 1276;
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 = 1270;
_localctx.part = dottedName();
_localctx.CurrentName = Actions.AddSlashedNamePart(_localctx.CurrentName, _localctx.part.Value);
State = 1272;
Match(T__87);
}
}
}
State = 1278;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,52,Context);
}
State = 1279;
_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 = 1287;
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 = 1282;
_localctx.declaration = assemblyDecl();
if (_localctx.declaration.Value is not null) _localctx.Builder.Add(_localctx.declaration.Value);
}
}
State = 1289;
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 = 1301;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case HASH:
EnterOuterAlt(_localctx, 1);
{
State = 1290;
Match(HASH);
State = 1291;
Match(T__88);
State = 1292;
_localctx.algorithm = int32();
_localctx.Value = Actions.CreateAssemblyHashAlgorithmDeclaration((_localctx.algorithm!=null?(_localctx.algorithm.Start):null));
}
break;
case PERMISSION:
case PERMISSIONSET:
EnterOuterAlt(_localctx, 2);
{
State = 1295;
_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 = 1298;
_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 = 1309;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,55,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1303;
_localctx.classType = className();
_localctx.Value = Actions.CreateClassTypeSpecification(_localctx.classType.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1306;
_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 = 1325;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,56,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1311;
_localctx.typeValue = typeSpec();
_localctx.Value = _localctx.typeValue.Value;
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1314;
Match(T__41);
State = 1315;
_localctx.assemblyName = dottedName();
State = 1316;
Match(T__42);
_localctx.Value = Actions.CreateAssemblyTypeSpecification(_localctx.assemblyName.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1319;
Match(T__41);
State = 1320;
Match(MODULE);
State = 1321;
_localctx.moduleName = dottedName();
State = 1322;
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 = 1338;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,58,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1328;
_localctx.element = nativeTypeElement();
Actions.SetNativeTypeElement(_localctx.Builder, _localctx.element.Value);
State = 1335;
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 = 1330;
_localctx.info = nativeTypeArrayPointerInfo();
Actions.AddNativeTypeArrayPointerInfo(_localctx.Builder, _localctx.info.Value);
}
}
}
State = 1337;
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 = 1362;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,59,Context) ) {
case 1:
_localctx = new PointerNativeTypeContext(_localctx);
EnterOuterAlt(_localctx, 1);
{
State = 1340;
Match(PTR);
_localctx.Value = Actions.CreatePointerNativeType();
}
break;
case 2:
_localctx = new PointerArrayTypeNoSizeDataContext(_localctx);
EnterOuterAlt(_localctx, 2);
{
State = 1342;
Match(ARRAY_TYPE_NO_BOUNDS);
_localctx.Value = Actions.CreatePointerArrayTypeNoSizeData();
}
break;
case 3:
_localctx = new PointerArrayTypeSizeContext(_localctx);
EnterOuterAlt(_localctx, 3);
{
State = 1344;
Match(T__41);
State = 1345;
((PointerArrayTypeSizeContext)_localctx).size = int32();
State = 1346;
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 = 1349;
Match(T__41);
State = 1350;
((PointerArrayTypeSizeParamIndexContext)_localctx).size = int32();
State = 1351;
Match(PLUS);
State = 1352;
((PointerArrayTypeSizeParamIndexContext)_localctx).parameterIndex = int32();
State = 1353;
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 = 1356;
Match(T__41);
State = 1357;
Match(PLUS);
State = 1358;
((PointerArrayTypeParamIndexContext)_localctx).parameterIndex = int32();
State = 1359;
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 = 1509;
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 = 1365;
_localctx.marshalType = Match(CUSTOM);
State = 1366;
Match(T__29);
State = 1367;
_localctx.guid = compQstring();
State = 1368;
Match(T__27);
State = 1369;
_localctx.nativeTypeName = compQstring();
State = 1370;
Match(T__27);
State = 1371;
_localctx.marshallerType = compQstring();
State = 1372;
Match(T__27);
State = 1373;
_localctx.cookie = compQstring();
State = 1374;
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 = 1377;
_localctx.marshalType = Match(CUSTOM);
State = 1378;
Match(T__29);
State = 1379;
_localctx.marshallerType = compQstring();
State = 1380;
Match(T__27);
State = 1381;
_localctx.cookie = compQstring();
State = 1382;
Match(T__30);
_localctx.Value = Actions.CreateCustomMarshallerNativeType(_localctx.marshallerType.Value, _localctx.cookie.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1385;
Match(FIXED);
State = 1386;
_localctx.marshalType = Match(SYSSTRING);
State = 1387;
Match(T__41);
State = 1388;
_localctx.size = int32();
State = 1389;
Match(T__42);
_localctx.Value = Actions.CreateFixedSysStringNativeType((_localctx.size!=null?(_localctx.size.Start):null));
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1392;
Match(FIXED);
State = 1393;
_localctx.marshalType = Match(ARRAY);
State = 1394;
Match(T__41);
State = 1395;
_localctx.size = int32();
State = 1396;
Match(T__42);
State = 1397;
_localctx.element = nativeType();
_localctx.Value = Actions.CreateFixedArrayNativeType((_localctx.size!=null?(_localctx.size.Start):null), _localctx.element.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1400;
_localctx.marshalType = Match(VARIANT);
_localctx.Value = Actions.CreateDeprecatedNativeType(_localctx, _localctx.marshalType);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1402;
_localctx.marshalType = Match(CURRENCY);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 1404;
_localctx.marshalType = Match(SYSCHAR);
_localctx.Value = Actions.CreateDeprecatedNativeType(_localctx, _localctx.marshalType);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 1406;
_localctx.marshalType = Match(VOID);
_localctx.Value = Actions.CreateDeprecatedNativeType(_localctx, _localctx.marshalType);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 1408;
_localctx.marshalType = Match(BOOL);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 1410;
_localctx.marshalType = Match(INT8);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 1412;
_localctx.marshalType = Match(INT16);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 1414;
_localctx.marshalType = Match(INT32_);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 1416;
_localctx.marshalType = Match(INT64_);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 1418;
_localctx.marshalType = Match(FLOAT32);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 1420;
_localctx.marshalType = Match(FLOAT64_);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 17:
EnterOuterAlt(_localctx, 17);
{
State = 1422;
_localctx.marshalType = Match(ERROR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 18:
EnterOuterAlt(_localctx, 18);
{
State = 1424;
_localctx.marshalType = Match(UINT8);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 19:
EnterOuterAlt(_localctx, 19);
{
State = 1426;
_localctx.marshalType = Match(UINT16);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 20:
EnterOuterAlt(_localctx, 20);
{
State = 1428;
_localctx.marshalType = Match(UINT32);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 21:
EnterOuterAlt(_localctx, 21);
{
State = 1430;
_localctx.marshalType = Match(UINT64);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 22:
EnterOuterAlt(_localctx, 22);
{
State = 1432;
_localctx.marshalType = Match(DECIMAL);
_localctx.Value = Actions.CreateDeprecatedNativeType(_localctx, _localctx.marshalType);
}
break;
case 23:
EnterOuterAlt(_localctx, 23);
{
State = 1434;
_localctx.marshalType = Match(DATE);
_localctx.Value = Actions.CreateDeprecatedNativeType(_localctx, _localctx.marshalType);
}
break;
case 24:
EnterOuterAlt(_localctx, 24);
{
State = 1436;
_localctx.marshalType = Match(BSTR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 25:
EnterOuterAlt(_localctx, 25);
{
State = 1438;
_localctx.marshalType = Match(LPSTR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 26:
EnterOuterAlt(_localctx, 26);
{
State = 1440;
_localctx.marshalType = Match(LPWSTR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 27:
EnterOuterAlt(_localctx, 27);
{
State = 1442;
_localctx.marshalType = Match(LPTSTR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 28:
EnterOuterAlt(_localctx, 28);
{
State = 1444;
_localctx.marshalType = Match(OBJECTREF);
_localctx.Value = Actions.CreateDeprecatedNativeType(_localctx, _localctx.marshalType);
}
break;
case 29:
EnterOuterAlt(_localctx, 29);
{
State = 1446;
_localctx.marshalType = Match(IUNKNOWN);
State = 1447;
_localctx.index = iidParamIndex();
_localctx.Value = Actions.CreateIidNativeType(_localctx.marshalType, _localctx.index.Value);
}
break;
case 30:
EnterOuterAlt(_localctx, 30);
{
State = 1450;
_localctx.marshalType = Match(IDISPATCH);
State = 1451;
_localctx.index = iidParamIndex();
_localctx.Value = Actions.CreateIidNativeType(_localctx.marshalType, _localctx.index.Value);
}
break;
case 31:
EnterOuterAlt(_localctx, 31);
{
State = 1454;
_localctx.marshalType = Match(STRUCT);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 32:
EnterOuterAlt(_localctx, 32);
{
State = 1456;
_localctx.marshalType = Match(INTERFACE);
State = 1457;
_localctx.index = iidParamIndex();
_localctx.Value = Actions.CreateIidNativeType(_localctx.marshalType, _localctx.index.Value);
}
break;
case 33:
EnterOuterAlt(_localctx, 33);
{
State = 1460;
_localctx.marshalType = Match(SAFEARRAY);
State = 1461;
_localctx.variant = variantType();
_localctx.Value = Actions.CreateSafeArrayNativeType(_localctx.variant.Value, null);
}
break;
case 34:
EnterOuterAlt(_localctx, 34);
{
State = 1464;
_localctx.marshalType = Match(SAFEARRAY);
State = 1465;
_localctx.variant = variantType();
State = 1466;
Match(T__27);
State = 1467;
_localctx.userDefinedType = compQstring();
_localctx.Value = Actions.CreateSafeArrayNativeType(_localctx.variant.Value, _localctx.userDefinedType.Value);
}
break;
case 35:
EnterOuterAlt(_localctx, 35);
{
State = 1470;
_localctx.marshalType = Match(INT);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 36:
EnterOuterAlt(_localctx, 36);
{
State = 1472;
_localctx.marshalType = Match(UINT);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 37:
EnterOuterAlt(_localctx, 37);
{
State = 1474;
Match(T__89);
State = 1475;
_localctx.unsignedMarshalType = Match(INT8);
_localctx.Value = Actions.CreateUnsignedNativeType(_localctx.unsignedMarshalType);
}
break;
case 38:
EnterOuterAlt(_localctx, 38);
{
State = 1477;
Match(T__89);
State = 1478;
_localctx.unsignedMarshalType = Match(INT16);
_localctx.Value = Actions.CreateUnsignedNativeType(_localctx.unsignedMarshalType);
}
break;
case 39:
EnterOuterAlt(_localctx, 39);
{
State = 1480;
Match(T__89);
State = 1481;
_localctx.unsignedMarshalType = Match(INT32_);
_localctx.Value = Actions.CreateUnsignedNativeType(_localctx.unsignedMarshalType);
}
break;
case 40:
EnterOuterAlt(_localctx, 40);
{
State = 1483;
Match(T__89);
State = 1484;
_localctx.unsignedMarshalType = Match(INT64_);
_localctx.Value = Actions.CreateUnsignedNativeType(_localctx.unsignedMarshalType);
}
break;
case 41:
EnterOuterAlt(_localctx, 41);
{
State = 1486;
Match(T__61);
State = 1487;
_localctx.marshalType = Match(STRUCT);
_localctx.Value = Actions.CreateNestedStructNativeType(_localctx);
}
break;
case 42:
EnterOuterAlt(_localctx, 42);
{
State = 1489;
_localctx.marshalType = Match(BYVALSTR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 43:
EnterOuterAlt(_localctx, 43);
{
State = 1491;
Match(ANSI);
State = 1492;
_localctx.marshalType = Match(BSTR);
_localctx.Value = Actions.CreateAnsiBstrNativeType();
}
break;
case 44:
EnterOuterAlt(_localctx, 44);
{
State = 1494;
_localctx.marshalType = Match(TBSTR);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 45:
EnterOuterAlt(_localctx, 45);
{
State = 1496;
Match(VARIANT);
State = 1497;
_localctx.marshalBool = Match(BOOL);
_localctx.Value = Actions.CreateVariantBoolNativeType();
}
break;
case 46:
EnterOuterAlt(_localctx, 46);
{
State = 1499;
_localctx.marshalType = Match(METHOD);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 47:
EnterOuterAlt(_localctx, 47);
{
State = 1501;
_localctx.marshalType = Match(LPSTRUCT);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 48:
EnterOuterAlt(_localctx, 48);
{
State = 1503;
Match(T__33);
State = 1504;
_localctx.marshalType = Match(ANY);
_localctx.Value = Actions.CreateSimpleNativeType(_localctx.marshalType);
}
break;
case 49:
EnterOuterAlt(_localctx, 49);
{
State = 1506;
_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 = 1519;
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 = 1512;
Match(T__29);
State = 1513;
Match(T__90);
State = 1514;
Match(T__35);
State = 1515;
_localctx.index = int32();
State = 1516;
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 = 1531;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,63,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1522;
_localctx.element = variantTypeElement();
Actions.SetVariantTypeElement(_localctx.Builder, _localctx.element.Value);
State = 1528;
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 = 1524;
_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 = 1530;
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 = 1613;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case NULL:
EnterOuterAlt(_localctx, 1);
{
State = 1533;
_localctx.value = Match(NULL);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case VARIANT:
EnterOuterAlt(_localctx, 2);
{
State = 1535;
_localctx.value = Match(VARIANT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case CURRENCY:
EnterOuterAlt(_localctx, 3);
{
State = 1537;
_localctx.value = Match(CURRENCY);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case VOID:
EnterOuterAlt(_localctx, 4);
{
State = 1539;
_localctx.value = Match(VOID);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case BOOL:
EnterOuterAlt(_localctx, 5);
{
State = 1541;
_localctx.value = Match(BOOL);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case INT8:
EnterOuterAlt(_localctx, 6);
{
State = 1543;
_localctx.value = Match(INT8);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case INT16:
EnterOuterAlt(_localctx, 7);
{
State = 1545;
_localctx.value = Match(INT16);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case INT32_:
EnterOuterAlt(_localctx, 8);
{
State = 1547;
_localctx.value = Match(INT32_);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case INT64_:
EnterOuterAlt(_localctx, 9);
{
State = 1549;
_localctx.value = Match(INT64_);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case FLOAT32:
EnterOuterAlt(_localctx, 10);
{
State = 1551;
_localctx.value = Match(FLOAT32);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case FLOAT64_:
EnterOuterAlt(_localctx, 11);
{
State = 1553;
_localctx.value = Match(FLOAT64_);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case UINT8:
EnterOuterAlt(_localctx, 12);
{
State = 1555;
_localctx.value = Match(UINT8);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case UINT16:
EnterOuterAlt(_localctx, 13);
{
State = 1557;
_localctx.value = Match(UINT16);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case UINT32:
EnterOuterAlt(_localctx, 14);
{
State = 1559;
_localctx.value = Match(UINT32);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case UINT64:
EnterOuterAlt(_localctx, 15);
{
State = 1561;
_localctx.value = Match(UINT64);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case PTR:
EnterOuterAlt(_localctx, 16);
{
State = 1563;
_localctx.value = Match(PTR);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case DECIMAL:
EnterOuterAlt(_localctx, 17);
{
State = 1565;
_localctx.value = Match(DECIMAL);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case DATE:
EnterOuterAlt(_localctx, 18);
{
State = 1567;
_localctx.value = Match(DATE);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case BSTR:
EnterOuterAlt(_localctx, 19);
{
State = 1569;
_localctx.value = Match(BSTR);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case LPSTR:
EnterOuterAlt(_localctx, 20);
{
State = 1571;
_localctx.value = Match(LPSTR);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case LPWSTR:
EnterOuterAlt(_localctx, 21);
{
State = 1573;
_localctx.value = Match(LPWSTR);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case IUNKNOWN:
EnterOuterAlt(_localctx, 22);
{
State = 1575;
_localctx.value = Match(IUNKNOWN);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case IDISPATCH:
EnterOuterAlt(_localctx, 23);
{
State = 1577;
_localctx.value = Match(IDISPATCH);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case SAFEARRAY:
EnterOuterAlt(_localctx, 24);
{
State = 1579;
_localctx.value = Match(SAFEARRAY);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case INT:
EnterOuterAlt(_localctx, 25);
{
State = 1581;
_localctx.value = Match(INT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case UINT:
EnterOuterAlt(_localctx, 26);
{
State = 1583;
_localctx.value = Match(UINT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case ERROR:
EnterOuterAlt(_localctx, 27);
{
State = 1585;
_localctx.value = Match(ERROR);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case HRESULT:
EnterOuterAlt(_localctx, 28);
{
State = 1587;
_localctx.value = Match(HRESULT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case CARRAY:
EnterOuterAlt(_localctx, 29);
{
State = 1589;
_localctx.value = Match(CARRAY);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case USERDEFINED:
EnterOuterAlt(_localctx, 30);
{
State = 1591;
_localctx.value = Match(USERDEFINED);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case RECORD:
EnterOuterAlt(_localctx, 31);
{
State = 1593;
_localctx.value = Match(RECORD);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case FILETIME:
EnterOuterAlt(_localctx, 32);
{
State = 1595;
_localctx.value = Match(FILETIME);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case BLOB:
EnterOuterAlt(_localctx, 33);
{
State = 1597;
_localctx.value = Match(BLOB);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case STREAM:
EnterOuterAlt(_localctx, 34);
{
State = 1599;
_localctx.value = Match(STREAM);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case STORAGE:
EnterOuterAlt(_localctx, 35);
{
State = 1601;
_localctx.value = Match(STORAGE);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case STREAMED_OBJECT:
EnterOuterAlt(_localctx, 36);
{
State = 1603;
_localctx.value = Match(STREAMED_OBJECT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case STORED_OBJECT:
EnterOuterAlt(_localctx, 37);
{
State = 1605;
_localctx.value = Match(STORED_OBJECT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case BLOB_OBJECT:
EnterOuterAlt(_localctx, 38);
{
State = 1607;
_localctx.value = Match(BLOB_OBJECT);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case CF:
EnterOuterAlt(_localctx, 39);
{
State = 1609;
_localctx.value = Match(CF);
_localctx.Value = Actions.GetVariantTypeElement(_localctx.value);
}
break;
case CLSID:
EnterOuterAlt(_localctx, 40);
{
State = 1611;
_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 = 1615;
_localctx.element = elementType();
_localctx.ElementType = _localctx.element.Value;
State = 1622;
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 = 1617;
_localctx.modifier = typeModifiers();
_localctx.Modifiers.Add(_localctx.modifier.Value);
}
}
}
State = 1624;
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 = 1654;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,66,Context) ) {
case 1:
_localctx = new SZArrayModifierContext(_localctx);
EnterOuterAlt(_localctx, 1);
{
State = 1625;
Match(ARRAY_TYPE_NO_BOUNDS);
_localctx.Value = Actions.CreateSzArrayTypeModifier();
}
break;
case 2:
_localctx = new SZArrayModifierContext(_localctx);
EnterOuterAlt(_localctx, 2);
{
State = 1627;
Match(T__41);
State = 1628;
Match(T__42);
_localctx.Value = Actions.CreateSzArrayTypeModifier();
}
break;
case 3:
_localctx = new ArrayModifierContext(_localctx);
EnterOuterAlt(_localctx, 3);
{
State = 1630;
((ArrayModifierContext)_localctx).arrayBounds = bounds();
_localctx.Value = Actions.CreateArrayTypeModifier(((ArrayModifierContext)_localctx).arrayBounds.Value);
}
break;
case 4:
_localctx = new ByRefModifierContext(_localctx);
EnterOuterAlt(_localctx, 4);
{
State = 1633;
Match(REF);
_localctx.Value = Actions.CreateByReferenceTypeModifier();
}
break;
case 5:
_localctx = new PtrModifierContext(_localctx);
EnterOuterAlt(_localctx, 5);
{
State = 1635;
Match(PTR);
_localctx.Value = Actions.CreatePointerTypeModifier();
}
break;
case 6:
_localctx = new PinnedModifierContext(_localctx);
EnterOuterAlt(_localctx, 6);
{
State = 1637;
Match(T__91);
_localctx.Value = Actions.CreatePinnedTypeModifier();
}
break;
case 7:
_localctx = new RequiredModifierContext(_localctx);
EnterOuterAlt(_localctx, 7);
{
State = 1639;
Match(T__92);
State = 1640;
Match(T__29);
State = 1641;
((RequiredModifierContext)_localctx).modifierType = typeSpec();
State = 1642;
Match(T__30);
_localctx.Value = Actions.CreateCustomTypeModifier(((RequiredModifierContext)_localctx).modifierType.Value, true);
}
break;
case 8:
_localctx = new OptionalModifierContext(_localctx);
EnterOuterAlt(_localctx, 8);
{
State = 1645;
Match(T__93);
State = 1646;
Match(T__29);
State = 1647;
((OptionalModifierContext)_localctx).modifierType = typeSpec();
State = 1648;
Match(T__30);
_localctx.Value = Actions.CreateCustomTypeModifier(((OptionalModifierContext)_localctx).modifierType.Value, false);
}
break;
case 9:
_localctx = new GenericArgumentsModifierContext(_localctx);
EnterOuterAlt(_localctx, 9);
{
State = 1651;
((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 = 1714;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,67,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1656;
Match(T__38);
State = 1657;
_localctx.classType = className();
_localctx.Value = Actions.CreateClassElementType(_localctx.classType.Value, false);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1660;
Match(OBJECT);
_localctx.Value = Actions.CreateObjectElementType();
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1662;
Match(VALUE);
State = 1663;
Match(T__38);
State = 1664;
_localctx.valueClassType = className();
_localctx.Value = Actions.CreateClassElementType(_localctx.valueClassType.Value, true);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1667;
Match(VALUETYPE);
State = 1668;
_localctx.valueType = className();
_localctx.Value = Actions.CreateClassElementType(_localctx.valueType.Value, true);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1671;
Match(METHOD);
State = 1672;
_localctx.convention = callConv();
State = 1673;
_localctx.returnType = type();
State = 1674;
Match(PTR);
State = 1675;
_localctx.arguments = sigArgs();
_localctx.Value = Actions.CreateFunctionPointerElementType(_localctx.convention.Value, _localctx.returnType.Value, _localctx.arguments.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1678;
Match(METHOD_TYPE_PARAMETER);
State = 1679;
_localctx.parameterIndex = int32();
_localctx.Value = Actions.CreateIndexedGenericParameterElementType(true, (_localctx.parameterIndex!=null?(_localctx.parameterIndex.Start):null));
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1682;
Match(TYPE_PARAMETER);
State = 1683;
_localctx.parameterIndex = int32();
_localctx.Value = Actions.CreateIndexedGenericParameterElementType(false, (_localctx.parameterIndex!=null?(_localctx.parameterIndex.Start):null));
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 1686;
Match(METHOD_TYPE_PARAMETER);
State = 1687;
_localctx.parameterName = dottedName();
_localctx.Value = Actions.CreateNamedGenericParameterElementType(_localctx.Start, true, _localctx.parameterName.Value);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 1690;
Match(TYPE_PARAMETER);
State = 1691;
_localctx.parameterName = dottedName();
_localctx.Value = Actions.CreateNamedGenericParameterElementType(_localctx.Start, false, _localctx.parameterName.Value);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 1694;
Match(TYPEDREF);
_localctx.Value = Actions.CreateTypedReferenceElementType();
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 1696;
Match(VOID);
_localctx.Value = Actions.CreateVoidElementType();
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 1698;
_localctx.signedNative = nativeInt();
_localctx.Value = Actions.CreatePrimitiveElementType(_localctx.signedNative.Value);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 1701;
_localctx.unsignedNative = nativeUint();
_localctx.Value = Actions.CreatePrimitiveElementType(_localctx.unsignedNative.Value);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 1704;
_localctx.primitive = simpleType();
_localctx.Value = Actions.CreatePrimitiveElementType(_localctx.primitive.Value);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 1707;
_localctx.alias = dottedName();
_localctx.Value = Actions.CreateTypedefElementType(_localctx.Start, _localctx.alias.Value);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 1710;
Match(ELLIPSIS);
State = 1711;
_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 = 1754;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,68,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1716;
_localctx.value = Match(CHAR);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1718;
_localctx.value = Match(STRING);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1720;
_localctx.value = Match(BOOL);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1722;
_localctx.value = Match(INT8);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1724;
_localctx.value = Match(INT16);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1726;
_localctx.value = Match(INT32_);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1728;
_localctx.value = Match(INT64_);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 1730;
_localctx.value = Match(FLOAT32);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 1732;
_localctx.value = Match(FLOAT64_);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 1734;
_localctx.value = Match(UINT8);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 1736;
_localctx.value = Match(UINT16);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 1738;
_localctx.value = Match(UINT32);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 1740;
_localctx.value = Match(UINT64);
_localctx.Value = Actions.GetSimpleType(_localctx.value, false);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 1742;
Match(T__89);
State = 1743;
_localctx.value = Match(INT8);
_localctx.Value = Actions.GetSimpleType(_localctx.value, true);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 1745;
Match(T__89);
State = 1746;
_localctx.value = Match(INT16);
_localctx.Value = Actions.GetSimpleType(_localctx.value, true);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 1748;
Match(T__89);
State = 1749;
_localctx.value = Match(INT32_);
_localctx.Value = Actions.GetSimpleType(_localctx.value, true);
}
break;
case 17:
EnterOuterAlt(_localctx, 17);
{
State = 1751;
Match(T__89);
State = 1752;
_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 = 1770;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,69,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1757;
Match(ELLIPSIS);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1758;
_localctx.size = int32();
Actions.SetBoundSize(_localctx, (_localctx.size!=null?(_localctx.size.Start):null));
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1761;
_localctx.lower = int32();
State = 1762;
Match(ELLIPSIS);
State = 1763;
_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 = 1766;
_localctx.lower = int32();
State = 1767;
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 = 1772;
Match(T__0);
State = 1773;
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 = 1776;
Match(T__0);
State = 1780;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__89:
{
State = 1777;
Match(T__89);
State = 1778;
Match(INT);
}
break;
case UINT:
{
State = 1779;
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 = 1838;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,72,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1784;
Match(PERMISSION);
State = 1785;
_localctx.action = secAction();
State = 1786;
_localctx.permissionType = typeSpec();
State = 1787;
Match(T__29);
State = 1788;
_localctx.pairs = nameValPairs();
State = 1789;
Match(T__30);
_localctx.Value = Actions.CreateNamedPermissionDeclaration(
_localctx.action.Value,
_localctx.permissionType.Value,
_localctx.pairs.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1792;
Match(PERMISSION);
State = 1793;
_localctx.action = secAction();
State = 1794;
_localctx.permissionType = typeSpec();
State = 1795;
Match(T__35);
State = 1796;
Match(T__16);
State = 1797;
_localctx.structuredValue = customBlobDescr();
State = 1798;
Match(T__17);
_localctx.Value = Actions.CreateStructuredPermissionDeclaration(
_localctx.action.Value,
_localctx.permissionType.Value,
_localctx.structuredValue.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1801;
Match(PERMISSION);
State = 1802;
_localctx.action = secAction();
State = 1803;
_localctx.permissionType = typeSpec();
_localctx.Value = Actions.CreateEmptyPermissionDeclaration(_localctx.action.Value, _localctx.permissionType.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1806;
Match(PERMISSIONSET);
State = 1807;
_localctx.action = secAction();
State = 1808;
Match(T__35);
State = 1810;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__83) {
{
State = 1809;
Match(T__83);
}
}
State = 1812;
Match(T__29);
State = 1813;
_localctx.rawValue = bytes();
State = 1814;
Match(T__30);
_localctx.Value = Actions.CreateRawPermissionSetDeclaration(_localctx.action.Value, _localctx.rawValue.Value);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1817;
Match(PERMISSIONSET);
State = 1818;
_localctx.action = secAction();
State = 1819;
Match(T__83);
State = 1820;
Match(T__29);
State = 1821;
_localctx.rawValue = bytes();
State = 1822;
Match(T__30);
_localctx.Value = Actions.CreateRawPermissionSetDeclaration(_localctx.action.Value, _localctx.rawValue.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1825;
Match(PERMISSIONSET);
State = 1826;
_localctx.action = secAction();
State = 1827;
_localctx.textValue = compQstring();
_localctx.Value = Actions.CreateStringPermissionSetDeclaration(_localctx.action.Value, _localctx.textValue.Value);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 1830;
Match(PERMISSIONSET);
State = 1831;
_localctx.action = secAction();
State = 1832;
Match(T__35);
State = 1833;
Match(T__16);
State = 1834;
_localctx.attributes = secAttrSetBlob();
State = 1835;
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 = 1853;
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 = 1847;
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 = 1841;
_localctx.attribute = secAttrBlob();
_localctx.Builder.Add(_localctx.attribute.Value);
State = 1843;
Match(T__27);
}
}
}
State = 1849;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,73,Context);
}
State = 1850;
_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 = 1870;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,75,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1855;
Match(T__38);
State = 1856;
_localctx.name = Match(SQSTRING);
State = 1857;
Match(T__35);
State = 1858;
Match(T__16);
State = 1859;
_localctx.arguments = customBlobNVPairs();
State = 1860;
Match(T__17);
_localctx.Value = Actions.CreateNamedSecurityAttribute(_localctx.name, _localctx.arguments.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1863;
_localctx.securityType = typeSpec();
State = 1864;
Match(T__35);
State = 1865;
Match(T__16);
State = 1866;
_localctx.arguments = customBlobNVPairs();
State = 1867;
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 = 1878;
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 = 1872;
_localctx.pair = nameValPair();
_localctx.Builder.Add(_localctx.pair.Value);
State = 1874;
Match(T__27);
}
}
}
State = 1880;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,76,Context);
}
State = 1881;
_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 = 1884;
_localctx.name = compQstring();
State = 1885;
Match(T__35);
State = 1886;
_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 = 1889;
_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 = 1936;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,77,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1891;
_localctx.booleanValue = truefalse();
_localctx.Value = Actions.CreateSecurityBooleanValue(_localctx.booleanValue.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1894;
_localctx.integerValue = int32();
_localctx.Value = Actions.CreateSecurityInt32Value((_localctx.integerValue!=null?(_localctx.integerValue.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1897;
Match(INT32_);
State = 1898;
Match(T__29);
State = 1899;
_localctx.integerValue = int32();
State = 1900;
Match(T__30);
_localctx.Value = Actions.CreateSecurityInt32Value((_localctx.integerValue!=null?(_localctx.integerValue.Start):null));
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1903;
_localctx.textValue = compQstring();
_localctx.Value = Actions.CreateSecurityStringValue(_localctx.textValue.Value);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 1906;
_localctx.enumType = className();
State = 1907;
Match(T__29);
State = 1908;
_localctx.kind = Match(INT8);
State = 1909;
Match(T__74);
State = 1910;
_localctx.enumValue = int32();
State = 1911;
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 = 1914;
_localctx.enumType = className();
State = 1915;
Match(T__29);
State = 1916;
_localctx.kind = Match(INT16);
State = 1917;
Match(T__74);
State = 1918;
_localctx.enumValue = int32();
State = 1919;
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 = 1922;
_localctx.enumType = className();
State = 1923;
Match(T__29);
State = 1924;
_localctx.kind = Match(INT32_);
State = 1925;
Match(T__74);
State = 1926;
_localctx.enumValue = int32();
State = 1927;
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 = 1930;
_localctx.enumType = className();
State = 1931;
Match(T__29);
State = 1932;
_localctx.enumValue = int32();
State = 1933;
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 = 1938;
_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 = 1982;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,80,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1940;
_localctx.convention = callConv();
State = 1941;
_localctx.returnType = type();
State = 1942;
_localctx.owner = typeSpecOrScope();
State = 1943;
Match(DCOLON);
State = 1944;
_localctx.name = methodName();
State = 1946;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__85) {
{
State = 1945;
_localctx.genericArguments = typeArgs();
}
}
State = 1948;
_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 = 1951;
_localctx.convention = callConv();
State = 1952;
_localctx.returnType = type();
State = 1953;
_localctx.owner = typeSpecOrScope();
State = 1954;
Match(DCOLON);
State = 1955;
_localctx.name = methodName();
State = 1956;
_localctx.genericArity = genArityNotEmpty();
State = 1957;
_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 = 1960;
_localctx.convention = callConv();
State = 1961;
_localctx.returnType = type();
State = 1962;
_localctx.name = methodName();
State = 1964;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__85) {
{
State = 1963;
_localctx.genericArguments = typeArgs();
}
}
State = 1966;
_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 = 1969;
_localctx.convention = callConv();
State = 1970;
_localctx.returnType = type();
State = 1971;
_localctx.name = methodName();
State = 1972;
_localctx.genericArity = genArityNotEmpty();
State = 1973;
_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 = 1976;
_localctx.token = mdtoken();
_localctx.Value = Actions.CreateTokenMethodReference(_localctx.token.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 1979;
_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 = 2001;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,81,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 1984;
Match(INSTANCE);
State = 1985;
_localctx.inner = callConv();
_localctx.Value = Actions.AddInstanceCallingConvention(_localctx.inner.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 1988;
Match(EXPLICIT);
State = 1989;
_localctx.inner = callConv();
_localctx.Value = Actions.AddExplicitCallingConvention(_localctx.inner.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 1992;
_localctx.kind = callKind();
_localctx.Value = _localctx.kind.Value;
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 1995;
Match(T__111);
State = 1996;
Match(T__29);
State = 1997;
_localctx.raw = int32();
State = 1998;
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 = 2022;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,82,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2004;
_localctx.kind = Match(DEFAULT);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2006;
_localctx.kind = Match(VARARG);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 2008;
Match(UNMANAGED);
State = 2009;
_localctx.kind = Match(CDECL);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 2011;
Match(UNMANAGED);
State = 2012;
_localctx.kind = Match(STDCALL);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 2014;
Match(UNMANAGED);
State = 2015;
_localctx.kind = Match(THISCALL);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 2017;
Match(UNMANAGED);
State = 2018;
_localctx.kind = Match(FASTCALL);
_localctx.Value = Actions.GetCallingConvention(_localctx.kind);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 2020;
_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 = 2024;
Match(T__112);
State = 2025;
Match(T__29);
State = 2026;
_localctx.token = int32();
State = 2027;
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 = 2041;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case METHOD:
EnterOuterAlt(_localctx, 1);
{
State = 2030;
Match(METHOD);
State = 2031;
_localctx.method = methodRef();
_localctx.Value = Actions.CreateMethodMemberReference(_localctx.method.Value);
}
break;
case T__36:
EnterOuterAlt(_localctx, 2);
{
State = 2034;
Match(T__36);
State = 2035;
_localctx.field = fieldRef();
_localctx.Value = Actions.CreateFieldMemberReference(_localctx.field.Value);
}
break;
case T__112:
EnterOuterAlt(_localctx, 3);
{
State = 2038;
_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 = 2056;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,84,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2043;
_localctx.fieldType = type();
State = 2044;
_localctx.owner = typeSpecOrScope();
State = 2045;
Match(DCOLON);
State = 2046;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateFieldReference(_localctx.fieldType.Value, _localctx.owner.Value, _localctx.name.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2049;
_localctx.fieldType = type();
State = 2050;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateFieldReference(_localctx.fieldType.Value, null, _localctx.name.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2053;
_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 = 2064;
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 = 2058;
_localctx.item = typeSpec();
_localctx.Builder.Add(_localctx.item.Value);
State = 2060;
Match(T__27);
}
}
}
State = 2066;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,85,Context);
}
State = 2067;
_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 = 2076;
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 = 2071;
Match(T__85);
State = 2072;
_localctx.parameters = typars();
State = 2073;
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 = 2096;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case PLUS:
EnterOuterAlt(_localctx, 1);
{
State = 2078;
_localctx.covariant = Match(PLUS);
_localctx.Value = Actions.CreateGenericParameterAttribute(_localctx.covariant);
}
break;
case T__113:
EnterOuterAlt(_localctx, 2);
{
State = 2080;
_localctx.contravariant = Match(T__113);
_localctx.Value = Actions.CreateGenericParameterAttribute(_localctx.contravariant);
}
break;
case T__38:
EnterOuterAlt(_localctx, 3);
{
State = 2082;
_localctx.@class = Match(T__38);
_localctx.Value = Actions.CreateGenericParameterAttribute(_localctx.@class);
}
break;
case VALUETYPE:
EnterOuterAlt(_localctx, 4);
{
State = 2084;
_localctx.valuetype = Match(VALUETYPE);
_localctx.Value = Actions.CreateGenericParameterAttribute(_localctx.valuetype);
}
break;
case T__114:
EnterOuterAlt(_localctx, 5);
{
State = 2086;
_localctx.byrefLike = Match(T__114);
_localctx.Value = Actions.CreateGenericParameterAttribute(_localctx.byrefLike);
}
break;
case T__115:
EnterOuterAlt(_localctx, 6);
{
State = 2088;
_localctx.ctor = Match(T__115);
_localctx.Value = Actions.CreateGenericParameterAttribute(_localctx.ctor);
}
break;
case T__69:
EnterOuterAlt(_localctx, 7);
{
State = 2090;
Match(T__69);
State = 2091;
Match(T__29);
State = 2092;
_localctx.flags = int32();
State = 2093;
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 = 2103;
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 = 2098;
_localctx.attribute = typarAttrib();
_localctx.Value = Actions.AddGenericParameterAttribute(_localctx.Value, _localctx.attribute.Value);
}
}
State = 2105;
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 = 2106;
_localctx.attributes = typarAttribs();
State = 2108;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__29) {
{
State = 2107;
_localctx.constraints = tyBound();
}
}
State = 2110;
_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 = 2119;
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 = 2113;
_localctx.parameter = typar();
_localctx.Builder.Add(_localctx.parameter.Value);
State = 2115;
Match(T__27);
}
}
}
State = 2121;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,90,Context);
}
State = 2122;
_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 = 2125;
Match(T__29);
State = 2126;
_localctx.constraints = typeList();
State = 2127;
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 = 2131;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__85) {
{
State = 2130;
_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 = 2135;
Match(T__85);
State = 2136;
Match(T__41);
State = 2137;
_localctx.value = int32();
State = 2138;
Match(T__42);
State = 2139;
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 = 2292;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,96,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2142;
methodHead();
State = 2143;
Match(T__16);
State = 2144;
methodDecls();
State = 2145;
Match(T__17);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2147;
classHead();
State = 2148;
Match(T__16);
State = 2149;
classDecls();
State = 2150;
Match(T__17);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2152;
_localctx.eventHeader = eventHead();
_localctx.EventBody = Actions.BeginEvent(_localctx.eventHeader.Value);
State = 2154;
Match(T__16);
State = 2155;
eventDecls(_localctx.EventBody);
State = 2156;
Match(T__17);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 2158;
_localctx.property = propHead();
_localctx.PropertyBody = Actions.BeginProperty(_localctx.property.Value);
State = 2160;
Match(T__16);
State = 2161;
propDecls(_localctx.PropertyBody);
State = 2162;
Match(T__17);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 2164;
fieldDecl();
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 2165;
_localctx.data = dataDecl();
Actions.ProcessClassDataDeclaration(_localctx.data);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 2168;
_localctx.security = secDecl();
Actions.ProcessClassSecurityDeclaration(_localctx.security);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 2171;
_localctx.source = extSourceSpec();
Actions.ProcessClassSourceDirective(_localctx.source);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 2174;
_localctx.attribute = customAttrDecl();
Actions.ProcessClassCustomAttribute(_localctx.attribute);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 2177;
Match(T__116);
State = 2178;
_localctx.size = int32();
Actions.SetClassSize((_localctx.size!=null?(_localctx.size.Start):null));
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 2181;
Match(T__117);
State = 2182;
_localctx.packing = int32();
Actions.SetClassPackingSize((_localctx.packing!=null?(_localctx.packing.Start):null));
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 2185;
_localctx.export = exportHead();
State = 2186;
Match(T__16);
State = 2187;
_localctx.exportDeclarations = exptypeDecls();
State = 2188;
Match(T__17);
Actions.ProcessClassExport(_localctx.export, _localctx.exportDeclarations);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 2191;
Match(OVERRIDE);
State = 2192;
_localctx.declarationOwner = typeSpecOrScope();
State = 2193;
Match(DCOLON);
State = 2194;
_localctx.declarationName = methodName();
State = 2195;
Match(T__118);
State = 2196;
_localctx.bodyConvention = callConv();
State = 2197;
_localctx.bodyReturnType = type();
State = 2198;
_localctx.bodyOwner = typeSpecOrScope();
State = 2199;
Match(DCOLON);
State = 2200;
_localctx.bodyName = methodName();
State = 2201;
_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 = 2204;
Match(OVERRIDE);
State = 2205;
Match(METHOD);
State = 2206;
_localctx.declarationConvention = callConv();
State = 2207;
_localctx.declarationReturnType = type();
State = 2208;
_localctx.declarationOwner = typeSpecOrScope();
State = 2209;
Match(DCOLON);
State = 2210;
_localctx.declarationName = methodName();
State = 2211;
_localctx.declarationArity = genArity();
State = 2212;
_localctx.declarationArguments = sigArgs();
State = 2213;
Match(T__118);
State = 2214;
Match(METHOD);
State = 2215;
_localctx.bodyConvention = callConv();
State = 2216;
_localctx.bodyReturnType = type();
State = 2217;
_localctx.bodyOwner = typeSpecOrScope();
State = 2218;
Match(DCOLON);
State = 2219;
_localctx.bodyName = methodName();
State = 2220;
_localctx.bodyArity = genArity();
State = 2221;
_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 = 2224;
_localctx.language = languageDecl();
Actions.ProcessClassLanguageDirective(_localctx.language);
}
break;
case 16:
EnterOuterAlt(_localctx, 16);
{
State = 2227;
compControl();
Actions.ProcessClassCompilerControl();
}
break;
case 17:
EnterOuterAlt(_localctx, 17);
{
State = 2230;
Match(PARAM);
State = 2231;
Match(TYPE);
State = 2232;
Match(T__41);
State = 2233;
_localctx.parameterIndex = int32();
State = 2234;
Match(T__42);
_localctx.AttributeOwner = Actions.BeginClassGenericParameterDirective(_localctx, (_localctx.parameterIndex!=null?(_localctx.parameterIndex.Start):null));
State = 2241;
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 = 2236;
_localctx.attribute = customAttrDecl();
Actions.AddClassGenericDirectiveAttribute(_localctx.AttributeOwner, _localctx.attribute);
}
}
}
State = 2243;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,92,Context);
}
}
break;
case 18:
EnterOuterAlt(_localctx, 18);
{
State = 2244;
Match(PARAM);
State = 2245;
Match(TYPE);
State = 2246;
_localctx.parameterName = dottedName();
_localctx.AttributeOwner = Actions.BeginClassGenericParameterDirective(_localctx.parameterName.Value);
State = 2253;
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 = 2248;
_localctx.attribute = customAttrDecl();
Actions.AddClassGenericDirectiveAttribute(_localctx.AttributeOwner, _localctx.attribute);
}
}
}
State = 2255;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,93,Context);
}
}
break;
case 19:
EnterOuterAlt(_localctx, 19);
{
State = 2256;
Match(PARAM);
State = 2257;
Match(CONSTRAINT);
State = 2258;
Match(T__41);
State = 2259;
_localctx.parameterIndex = int32();
State = 2260;
Match(T__42);
State = 2261;
Match(T__27);
State = 2262;
_localctx.constraintType = typeSpec();
_localctx.AttributeOwner = Actions.BeginClassGenericConstraintDirective(_localctx, (_localctx.parameterIndex!=null?(_localctx.parameterIndex.Start):null), _localctx.constraintType.Value);
State = 2269;
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 = 2264;
_localctx.attribute = customAttrDecl();
Actions.AddClassGenericDirectiveAttribute(_localctx.AttributeOwner, _localctx.attribute);
}
}
}
State = 2271;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,94,Context);
}
}
break;
case 20:
EnterOuterAlt(_localctx, 20);
{
State = 2272;
Match(PARAM);
State = 2273;
Match(CONSTRAINT);
State = 2274;
_localctx.parameterName = dottedName();
State = 2275;
Match(T__27);
State = 2276;
_localctx.constraintType = typeSpec();
_localctx.AttributeOwner = Actions.BeginClassGenericConstraintDirective(_localctx.parameterName.Value, _localctx.constraintType.Value);
State = 2283;
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 = 2278;
_localctx.attribute = customAttrDecl();
Actions.AddClassGenericDirectiveAttribute(_localctx.AttributeOwner, _localctx.attribute);
}
}
}
State = 2285;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,95,Context);
}
}
break;
case 21:
EnterOuterAlt(_localctx, 21);
{
State = 2286;
Match(T__119);
State = 2287;
Match(TYPE);
State = 2288;
_localctx.interfaceType = typeSpec();
State = 2289;
_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 = 2294;
Match(T__120);
State = 2295;
_localctx.offset = repeatOpt();
State = 2307;
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 = 2305;
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 = 2296;
_localctx.attribute = fieldAttr();
Actions.AddFieldAttribute(_localctx.Builder, _localctx.attribute.Value);
}
break;
case T__121:
{
State = 2299;
Match(T__121);
State = 2300;
Match(T__29);
State = 2301;
_localctx.marshalling = marshalBlob();
State = 2302;
Match(T__30);
Actions.SetFieldMarshalling(_localctx.Builder, _localctx.marshalling.Value);
}
break;
default:
throw new NoViableAltException(this);
}
}
}
State = 2309;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,98,Context);
}
State = 2310;
_localctx.fieldType = type();
State = 2311;
_localctx.name = dottedName();
State = 2312;
_localctx.data = atOpt();
State = 2313;
_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 = 2350;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__122:
EnterOuterAlt(_localctx, 1);
{
State = 2316;
_localctx.attribute = Match(T__122);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__50:
EnterOuterAlt(_localctx, 2);
{
State = 2318;
_localctx.attribute = Match(T__50);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__51:
EnterOuterAlt(_localctx, 3);
{
State = 2320;
_localctx.attribute = Match(T__51);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__62:
EnterOuterAlt(_localctx, 4);
{
State = 2322;
_localctx.attribute = Match(T__62);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__123:
EnterOuterAlt(_localctx, 5);
{
State = 2324;
_localctx.attribute = Match(T__123);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__68:
EnterOuterAlt(_localctx, 6);
{
State = 2326;
_localctx.attribute = Match(T__68);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__67:
EnterOuterAlt(_localctx, 7);
{
State = 2328;
_localctx.attribute = Match(T__67);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__63:
EnterOuterAlt(_localctx, 8);
{
State = 2330;
_localctx.attribute = Match(T__63);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__64:
EnterOuterAlt(_localctx, 9);
{
State = 2332;
_localctx.attribute = Match(T__64);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__65:
EnterOuterAlt(_localctx, 10);
{
State = 2334;
_localctx.attribute = Match(T__65);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__124:
EnterOuterAlt(_localctx, 11);
{
State = 2336;
_localctx.attribute = Match(T__124);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__125:
EnterOuterAlt(_localctx, 12);
{
State = 2338;
_localctx.attribute = Match(T__125);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__126:
EnterOuterAlt(_localctx, 13);
{
State = 2340;
_localctx.attribute = Match(T__126);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__15:
EnterOuterAlt(_localctx, 14);
{
State = 2342;
_localctx.attribute = Match(T__15);
_localctx.Value = Actions.CreateFieldAttribute(_localctx.attribute);
}
break;
case T__69:
EnterOuterAlt(_localctx, 15);
{
State = 2344;
Match(T__69);
State = 2345;
Match(T__29);
State = 2346;
_localctx.flags = int32();
State = 2347;
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 = 2361;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,100,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2353;
Match(T__43);
State = 2354;
_localctx.name = id();
_localctx.Value = Actions.GetFieldDataName((_localctx.name!=null?(_localctx.name.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2357;
Match(T__43);
State = 2358;
_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 = 2368;
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__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 = 2364;
Match(T__35);
State = 2365;
_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 = 2376;
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 = 2371;
Match(T__41);
State = 2372;
_localctx.offset = int32();
State = 2373;
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 = 2403;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,105,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2378;
Match(T__127);
State = 2384;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__67 || _la==T__68) {
{
{
State = 2379;
_localctx.attribute = eventAttr();
Actions.AddEventAttribute(_localctx.Builder, _localctx.attribute.Value);
}
}
State = 2386;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 2387;
_localctx.eventType = typeSpec();
State = 2388;
_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 = 2391;
Match(T__127);
State = 2397;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__67 || _la==T__68) {
{
{
State = 2392;
_localctx.attribute = eventAttr();
Actions.AddEventAttribute(_localctx.Builder, _localctx.attribute.Value);
}
}
State = 2399;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 2400;
_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 = 2409;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__68:
EnterOuterAlt(_localctx, 1);
{
State = 2405;
_localctx.attribute = Match(T__68);
_localctx.Value = Actions.CreateEventAttribute(_localctx.attribute);
}
break;
case T__67:
EnterOuterAlt(_localctx, 2);
{
State = 2407;
_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 = 2414;
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 = 2411;
eventDecl(_localctx.Body);
}
}
State = 2416;
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 = 2443;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__128:
EnterOuterAlt(_localctx, 1);
{
State = 2417;
Match(T__128);
State = 2418;
_localctx.accessor = methodRef();
Actions.AddEventAdder(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__129:
EnterOuterAlt(_localctx, 2);
{
State = 2421;
Match(T__129);
State = 2422;
_localctx.accessor = methodRef();
Actions.AddEventRemover(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__130:
EnterOuterAlt(_localctx, 3);
{
State = 2425;
Match(T__130);
State = 2426;
_localctx.accessor = methodRef();
Actions.AddEventRaiser(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__131:
EnterOuterAlt(_localctx, 4);
{
State = 2429;
Match(T__131);
State = 2430;
_localctx.accessor = methodRef();
Actions.AddEventOther(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__72:
case T__73:
EnterOuterAlt(_localctx, 5);
{
State = 2433;
_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 = 2436;
_localctx.attribute = customAttrDecl();
Actions.AddEventCustomAttribute(_localctx.Body, _localctx.attribute);
}
break;
case T__26:
EnterOuterAlt(_localctx, 7);
{
State = 2439;
_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 = 2442;
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 = 2445;
Match(T__132);
State = 2451;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__67 || _la==T__68) {
{
{
State = 2446;
_localctx.attribute = propAttr();
Actions.AddPropertyAttribute(_localctx.Builder, _localctx.attribute.Value);
}
}
State = 2453;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 2454;
_localctx.convention = callConv();
State = 2455;
_localctx.propertyType = type();
State = 2456;
_localctx.name = dottedName();
State = 2457;
_localctx.arguments = sigArgs();
State = 2458;
_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 = 2465;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__68:
EnterOuterAlt(_localctx, 1);
{
State = 2461;
_localctx.attribute = Match(T__68);
_localctx.Value = Actions.CreatePropertyAttribute(_localctx.attribute);
}
break;
case T__67:
EnterOuterAlt(_localctx, 2);
{
State = 2463;
_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 = 2470;
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 = 2467;
propDecl(_localctx.Body);
}
}
State = 2472;
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 = 2495;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__133:
EnterOuterAlt(_localctx, 1);
{
State = 2473;
Match(T__133);
State = 2474;
_localctx.accessor = methodRef();
Actions.AddPropertySetter(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__134:
EnterOuterAlt(_localctx, 2);
{
State = 2477;
Match(T__134);
State = 2478;
_localctx.accessor = methodRef();
Actions.AddPropertyGetter(_localctx.Body, _localctx.accessor.Value);
}
break;
case T__131:
EnterOuterAlt(_localctx, 3);
{
State = 2481;
Match(T__131);
State = 2482;
_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 = 2485;
_localctx.attribute = customAttrDecl();
Actions.AddPropertyCustomAttribute(_localctx.Body, _localctx.attribute);
}
break;
case T__72:
case T__73:
EnterOuterAlt(_localctx, 5);
{
State = 2488;
_localctx.source = extSourceSpec();
Actions.ProcessPropertySourceDirective(_localctx.Body, _localctx.source);
}
break;
case T__26:
EnterOuterAlt(_localctx, 6);
{
State = 2491;
_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 = 2494;
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 = 2504;
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 = 2498;
Match(T__121);
State = 2499;
Match(T__29);
State = 2500;
_localctx.value = marshalBlob();
State = 2501;
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 = 2519;
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 = 2506;
_localctx.nativeValue = nativeType();
Actions.SetMarshalBlobNativeType(_localctx.Builder, _localctx.nativeValue.Value);
}
break;
case T__16:
EnterOuterAlt(_localctx, 2);
{
State = 2509;
Match(T__16);
State = 2513;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
do {
{
{
State = 2510;
_localctx.rawByte = hexbyte();
Actions.AddMarshalBlobByte(_localctx.Builder, _localctx.rawByte.Value);
}
}
State = 2515;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
} while ( _la==INT32 || _la==ID || _la==HEXBYTE );
State = 2517;
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 = 2526;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__41) {
{
{
State = 2521;
_localctx.element = paramAttrElement();
_localctx.Value = Actions.AddParameterAttribute(
_localctx.Value,
_localctx.element.Value,
_localctx.element.ShouldAppend);
}
}
State = 2528;
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 = 2546;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,117,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2529;
Match(T__41);
State = 2530;
_localctx.attribute = Match(T__135);
State = 2531;
Match(T__42);
Actions.SetParameterAttributeElement(_localctx, _localctx.attribute);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2533;
Match(T__41);
State = 2534;
_localctx.attribute = Match(T__136);
State = 2535;
Match(T__42);
Actions.SetParameterAttributeElement(_localctx, _localctx.attribute);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2537;
Match(T__41);
State = 2538;
_localctx.attribute = Match(T__137);
State = 2539;
Match(T__42);
Actions.SetParameterAttributeElement(_localctx, _localctx.attribute);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 2541;
Match(T__41);
State = 2542;
_localctx.raw = int32();
State = 2543;
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 = 2548;
Match(T__138);
State = 2557;
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 = 2555;
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 = 2549;
_localctx.attribute = methAttr();
Actions.AddMethodAttribute(_localctx.Builder, _localctx.attribute.Value);
}
break;
case T__146:
{
State = 2552;
_localctx.pInvoke = pinvImpl();
Actions.AddPInvoke(_localctx.Builder, _localctx.pInvoke.Value);
}
break;
default:
throw new NoViableAltException(this);
}
}
State = 2559;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 2560;
_localctx.convention = callConv();
State = 2561;
_localctx.returnAttributes = paramAttr();
State = 2562;
_localctx.returnType = type();
State = 2563;
_localctx.returnMarshalling = marshalClause();
State = 2564;
_localctx.name = methodName();
State = 2565;
_localctx.genericParameters = typarsClause();
State = 2566;
_localctx.arguments = sigArgs();
State = 2572;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 32766L) != 0) || _la==T__69 || _la==T__155 || _la==UNMANAGED) {
{
{
State = 2567;
_localctx.implementation = implAttr();
Actions.AddMethodImplementationAttribute(_localctx.Builder, _localctx.implementation.Value);
}
}
State = 2574;
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 = 2619;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__122:
EnterOuterAlt(_localctx, 1);
{
State = 2577;
_localctx.attribute = Match(T__122);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__50:
EnterOuterAlt(_localctx, 2);
{
State = 2579;
_localctx.attribute = Match(T__50);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__51:
EnterOuterAlt(_localctx, 3);
{
State = 2581;
_localctx.attribute = Match(T__51);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__62:
EnterOuterAlt(_localctx, 4);
{
State = 2583;
_localctx.attribute = Match(T__62);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__139:
EnterOuterAlt(_localctx, 5);
{
State = 2585;
_localctx.attribute = Match(T__139);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__67:
EnterOuterAlt(_localctx, 6);
{
State = 2587;
_localctx.attribute = Match(T__67);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__140:
EnterOuterAlt(_localctx, 7);
{
State = 2589;
_localctx.attribute = Match(T__140);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__141:
EnterOuterAlt(_localctx, 8);
{
State = 2591;
_localctx.attribute = Match(T__141);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__53:
EnterOuterAlt(_localctx, 9);
{
State = 2593;
_localctx.attribute = Match(T__53);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__63:
EnterOuterAlt(_localctx, 10);
{
State = 2595;
_localctx.attribute = Match(T__63);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__64:
EnterOuterAlt(_localctx, 11);
{
State = 2597;
_localctx.attribute = Match(T__64);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__65:
EnterOuterAlt(_localctx, 12);
{
State = 2599;
_localctx.attribute = Match(T__65);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__124:
EnterOuterAlt(_localctx, 13);
{
State = 2601;
_localctx.attribute = Match(T__124);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__142:
EnterOuterAlt(_localctx, 14);
{
State = 2603;
_localctx.attribute = Match(T__142);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__143:
EnterOuterAlt(_localctx, 15);
{
State = 2605;
_localctx.attribute = Match(T__143);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__68:
EnterOuterAlt(_localctx, 16);
{
State = 2607;
_localctx.attribute = Match(T__68);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__144:
EnterOuterAlt(_localctx, 17);
{
State = 2609;
_localctx.attribute = Match(T__144);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__145:
EnterOuterAlt(_localctx, 18);
{
State = 2611;
_localctx.attribute = Match(T__145);
_localctx.Value = Actions.CreateMethodAttribute(_localctx.attribute);
}
break;
case T__69:
EnterOuterAlt(_localctx, 19);
{
State = 2613;
Match(T__69);
State = 2614;
Match(T__29);
State = 2615;
_localctx.flags = int32();
State = 2616;
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 = 2644;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,125,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2621;
Match(T__146);
State = 2622;
Match(T__29);
State = 2631;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==QSTRING) {
{
State = 2623;
_localctx.module = compQstring();
Actions.SetPInvokeModule(_localctx.Builder, _localctx.module.Value);
State = 2629;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__33) {
{
State = 2625;
Match(T__33);
State = 2626;
_localctx.entryPoint = compQstring();
Actions.SetPInvokeEntryPoint(_localctx.Builder, _localctx.entryPoint.Value);
}
}
}
}
State = 2638;
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 = 2633;
_localctx.attribute = pinvAttr();
Actions.AddPInvokeAttribute(_localctx.Builder, _localctx.attribute.Value);
}
}
State = 2640;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
}
State = 2641;
Match(T__30);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2642;
Match(T__146);
State = 2643;
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 = 2688;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,126,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2646;
_localctx.attribute = Match(T__147);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2648;
_localctx.attribute = Match(ANSI);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2650;
_localctx.attribute = Match(T__56);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 2652;
_localctx.attribute = Match(T__57);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 2654;
_localctx.attribute = Match(T__148);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 2656;
_localctx.attribute = Match(T__149);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 2658;
_localctx.attribute = Match(CDECL);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 2660;
_localctx.attribute = Match(STDCALL);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 2662;
_localctx.attribute = Match(THISCALL);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 2664;
_localctx.attribute = Match(FASTCALL);
_localctx.Value = Actions.CreatePInvokeAttribute(_localctx.attribute);
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 2666;
Match(T__150);
State = 2667;
Match(T__74);
State = 2668;
_localctx.setting = Match(T__151);
_localctx.Value = Actions.CreateBestFitPInvokeAttribute(_localctx.setting);
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 2670;
Match(T__150);
State = 2671;
Match(T__74);
State = 2672;
_localctx.setting = Match(T__152);
_localctx.Value = Actions.CreateBestFitPInvokeAttribute(_localctx.setting);
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 2674;
Match(T__153);
State = 2675;
Match(T__74);
State = 2676;
_localctx.setting = Match(T__151);
_localctx.Value = Actions.CreateCharMapErrorPInvokeAttribute(_localctx.setting);
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 2678;
Match(T__153);
State = 2679;
Match(T__74);
State = 2680;
_localctx.setting = Match(T__152);
_localctx.Value = Actions.CreateCharMapErrorPInvokeAttribute(_localctx.setting);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 2682;
Match(T__69);
State = 2683;
Match(T__29);
State = 2684;
_localctx.flags = int32();
State = 2685;
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 = 2697;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__115:
EnterOuterAlt(_localctx, 1);
{
State = 2690;
_localctx.ctorName = Match(T__115);
_localctx.Value = Actions.GetMethodName(_localctx.ctorName);
}
break;
case T__154:
EnterOuterAlt(_localctx, 2);
{
State = 2692;
_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 = 2694;
_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 = 2737;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__0:
EnterOuterAlt(_localctx, 1);
{
State = 2699;
_localctx.attribute = Match(T__0);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__1:
EnterOuterAlt(_localctx, 2);
{
State = 2701;
_localctx.attribute = Match(T__1);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__155:
EnterOuterAlt(_localctx, 3);
{
State = 2703;
_localctx.attribute = Match(T__155);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__2:
EnterOuterAlt(_localctx, 4);
{
State = 2705;
_localctx.attribute = Match(T__2);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__3:
EnterOuterAlt(_localctx, 5);
{
State = 2707;
_localctx.attribute = Match(T__3);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case UNMANAGED:
EnterOuterAlt(_localctx, 6);
{
State = 2709;
_localctx.attribute = Match(UNMANAGED);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__4:
EnterOuterAlt(_localctx, 7);
{
State = 2711;
_localctx.attribute = Match(T__4);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__5:
EnterOuterAlt(_localctx, 8);
{
State = 2713;
_localctx.attribute = Match(T__5);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__6:
EnterOuterAlt(_localctx, 9);
{
State = 2715;
_localctx.attribute = Match(T__6);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__7:
EnterOuterAlt(_localctx, 10);
{
State = 2717;
_localctx.attribute = Match(T__7);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__8:
EnterOuterAlt(_localctx, 11);
{
State = 2719;
_localctx.attribute = Match(T__8);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__9:
EnterOuterAlt(_localctx, 12);
{
State = 2721;
_localctx.attribute = Match(T__9);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__10:
EnterOuterAlt(_localctx, 13);
{
State = 2723;
_localctx.attribute = Match(T__10);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__11:
EnterOuterAlt(_localctx, 14);
{
State = 2725;
_localctx.attribute = Match(T__11);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__12:
EnterOuterAlt(_localctx, 15);
{
State = 2727;
_localctx.attribute = Match(T__12);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__13:
EnterOuterAlt(_localctx, 16);
{
State = 2729;
_localctx.attribute = Match(T__13);
_localctx.Value = Actions.CreateMethodImplementationAttribute(_localctx.attribute);
}
break;
case T__69:
EnterOuterAlt(_localctx, 17);
{
State = 2731;
Match(T__69);
State = 2732;
Match(T__29);
State = 2733;
_localctx.flags = int32();
State = 2734;
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 = 2742;
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 = 2739;
methodDecl();
}
}
State = 2744;
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 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 = 2782;
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 = 2745;
instr();
}
break;
case EMITBYTE:
EnterOuterAlt(_localctx, 2);
{
State = 2746;
Match(EMITBYTE);
State = 2747;
_localctx.value = int32();
Actions.EmitByte((_localctx.value!=null?(_localctx.value.Start):null));
}
break;
case T__157:
EnterOuterAlt(_localctx, 3);
{
State = 2750;
sehBlock();
}
break;
case MAXSTACK:
EnterOuterAlt(_localctx, 4);
{
State = 2751;
Match(MAXSTACK);
State = 2752;
_localctx.value = int32();
Actions.SetMaxStack((_localctx.value!=null?(_localctx.value.Start):null));
}
break;
case ENTRYPOINT:
EnterOuterAlt(_localctx, 5);
{
State = 2755;
Match(ENTRYPOINT);
Actions.SetEntryPoint();
}
break;
case ZEROINIT:
EnterOuterAlt(_localctx, 6);
{
State = 2757;
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 = 2759;
labelDecl();
}
break;
case T__16:
EnterOuterAlt(_localctx, 8);
{
State = 2760;
scopeBlock();
}
break;
case LOCALS:
EnterOuterAlt(_localctx, 9);
{
State = 2761;
localsDecl();
}
break;
case T__164:
EnterOuterAlt(_localctx, 10);
{
State = 2762;
_localctx.declaration = dataDecl();
Actions.ProcessMethodDataDeclaration(_localctx.declaration);
}
break;
case PERMISSION:
case PERMISSIONSET:
EnterOuterAlt(_localctx, 11);
{
State = 2765;
_localctx.security = secDecl();
Actions.ProcessMethodSecurityDeclaration(_localctx.security);
}
break;
case T__72:
case T__73:
EnterOuterAlt(_localctx, 12);
{
State = 2768;
_localctx.source = extSourceSpec();
Actions.ProcessMethodSourceDirective(_localctx.source);
}
break;
case T__26:
EnterOuterAlt(_localctx, 13);
{
State = 2771;
_localctx.language = languageDecl();
Actions.ProcessMethodLanguageDirective(_localctx.language);
}
break;
case T__34:
EnterOuterAlt(_localctx, 14);
{
State = 2774;
_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 = 2777;
compControl();
}
break;
case EXPORT:
EnterOuterAlt(_localctx, 16);
{
State = 2778;
exportDecl();
}
break;
case VTENTRY:
EnterOuterAlt(_localctx, 17);
{
State = 2779;
vtentryDecl();
}
break;
case OVERRIDE:
EnterOuterAlt(_localctx, 18);
{
State = 2780;
overrideDecl();
}
break;
case PARAM:
EnterOuterAlt(_localctx, 19);
{
State = 2781;
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 = 2784;
Match(LOCALS);
State = 2786;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__156) {
{
State = 2785;
_localctx.initialize = Match(T__156);
}
}
State = 2788;
_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 = 2790;
Match(EXPORT);
State = 2791;
Match(T__41);
State = 2792;
_localctx.ordinal = int32();
State = 2793;
Match(T__42);
State = 2796;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
if (_la==T__33) {
{
State = 2794;
Match(T__33);
State = 2795;
_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 = 2798;
Match(VTENTRY);
State = 2799;
_localctx.table = int32();
State = 2800;
Match(T__74);
State = 2801;
_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 = 2818;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,133,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2803;
Match(OVERRIDE);
State = 2804;
_localctx.owner = typeSpecOrScope();
State = 2805;
Match(DCOLON);
State = 2806;
_localctx.name = methodName();
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2808;
Match(OVERRIDE);
State = 2809;
Match(METHOD);
State = 2810;
_localctx.convention = callConv();
State = 2811;
_localctx.returnType = type();
State = 2812;
_localctx.owner = typeSpecOrScope();
State = 2813;
Match(DCOLON);
State = 2814;
_localctx.name = methodName();
State = 2815;
_localctx.arity = genArity();
State = 2816;
_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 = 2885;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,139,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2820;
Match(PARAM);
State = 2821;
Match(TYPE);
State = 2822;
Match(T__41);
State = 2823;
_localctx.genericIndex = int32();
State = 2824;
Match(T__42);
State = 2830;
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 = 2825;
_localctx.attribute = customAttrDecl();
Actions.AddCustomAttributeApplication(_localctx.Attributes, _localctx.attribute);
}
}
}
State = 2832;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,134,Context);
}
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2833;
Match(PARAM);
State = 2834;
Match(TYPE);
State = 2835;
_localctx.genericName = dottedName();
State = 2841;
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 = 2836;
_localctx.attribute = customAttrDecl();
Actions.AddCustomAttributeApplication(_localctx.Attributes, _localctx.attribute);
}
}
}
State = 2843;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,135,Context);
}
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2844;
Match(PARAM);
State = 2845;
Match(CONSTRAINT);
State = 2846;
Match(T__41);
State = 2847;
_localctx.constraintIndex = int32();
State = 2848;
Match(T__42);
State = 2849;
Match(T__27);
State = 2850;
_localctx.constraintType = typeSpec();
State = 2856;
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 = 2851;
_localctx.attribute = customAttrDecl();
Actions.AddCustomAttributeApplication(_localctx.Attributes, _localctx.attribute);
}
}
}
State = 2858;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,136,Context);
}
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 2859;
Match(PARAM);
State = 2860;
Match(CONSTRAINT);
State = 2861;
_localctx.constraintName = dottedName();
State = 2862;
Match(T__27);
State = 2863;
_localctx.constraintType = typeSpec();
State = 2869;
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 = 2864;
_localctx.attribute = customAttrDecl();
Actions.AddCustomAttributeApplication(_localctx.Attributes, _localctx.attribute);
}
}
}
State = 2871;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,137,Context);
}
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 2872;
Match(PARAM);
State = 2873;
Match(T__41);
State = 2874;
_localctx.parameterIndex = int32();
State = 2875;
Match(T__42);
State = 2876;
_localctx.initializer = initOpt();
State = 2882;
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 = 2877;
_localctx.attribute = customAttrDecl();
Actions.AddCustomAttributeApplication(_localctx.Attributes, _localctx.attribute);
}
}
}
State = 2884;
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 = 2887;
_localctx.name = id();
State = 2888;
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 = 2897;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,140,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2891;
_localctx.directAttribute = customDescr();
_localctx.Value = Actions.CreateCustomAttributeDeclaration(_localctx.directAttribute.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2894;
_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 = 2899;
Match(T__16);
State = 2900;
methodDecls();
State = 2901;
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 = 2903;
_localctx.tryRange = tryBlock();
State = 2904;
_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 = 2909;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
do {
{
{
State = 2906;
_localctx.clause = sehClause();
_localctx.Builder.Add(_localctx.clause.Value);
}
}
State = 2911;
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 = 2929;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,142,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2913;
Match(T__157);
State = 2914;
_localctx.body = scopeBlock();
_localctx.Value = Actions.CreateScopeExceptionRange(_localctx.body);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2917;
Match(T__157);
State = 2918;
_localctx.startLabel = id();
State = 2919;
Match(T__158);
State = 2920;
_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 = 2923;
Match(T__157);
State = 2924;
_localctx.startOffset = int32();
State = 2925;
Match(T__158);
State = 2926;
_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 = 2947;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__160:
EnterOuterAlt(_localctx, 1);
{
State = 2931;
_localctx.caught = catchClause();
State = 2932;
_localctx.handler = handlerBlock();
_localctx.Value = Actions.CreateCatchExceptionClause(_localctx.caught.Value, _localctx.handler.Value);
}
break;
case T__159:
EnterOuterAlt(_localctx, 2);
{
State = 2935;
_localctx.filtered = filterClause();
State = 2936;
_localctx.handler = handlerBlock();
_localctx.Value = Actions.CreateFilterExceptionClause(_localctx.filtered.Value, _localctx.handler.Value);
}
break;
case T__161:
EnterOuterAlt(_localctx, 3);
{
State = 2939;
finallyClause();
State = 2940;
_localctx.handler = handlerBlock();
_localctx.Value = Actions.CreateFinallyExceptionClause(_localctx.handler.Value);
}
break;
case T__162:
EnterOuterAlt(_localctx, 4);
{
State = 2943;
faultClause();
State = 2944;
_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 = 2961;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,144,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2949;
Match(T__159);
State = 2950;
_localctx.body = scopeBlock();
_localctx.Value = Actions.CreateScopeFilter(_localctx.body);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2953;
Match(T__159);
State = 2954;
_localctx.label = id();
_localctx.Value = Actions.CreateLabelFilter((_localctx.label!=null?(_localctx.label.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 2957;
Match(T__159);
State = 2958;
_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 = 2963;
Match(T__160);
State = 2964;
_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 = 2966;
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 = 2968;
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 = 2985;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,145,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2970;
_localctx.body = scopeBlock();
_localctx.Value = Actions.CreateScopeExceptionRange(_localctx.body);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2973;
Match(T__163);
State = 2974;
_localctx.startLabel = id();
State = 2975;
Match(T__158);
State = 2976;
_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 = 2979;
Match(T__163);
State = 2980;
_localctx.startOffset = int32();
State = 2981;
Match(T__158);
State = 2982;
_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 = 2987;
ddHead(_localctx.Builder);
State = 2988;
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 = 3000;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,146,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 2990;
Match(T__164);
State = 2991;
_localctx.section = tls();
State = 2992;
_localctx.name = id();
State = 2993;
Match(T__35);
Actions.SetDataDeclarationHeader(_localctx.Builder, _localctx.section.Value, (_localctx.name!=null?(_localctx.name.Start):null));
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 2996;
Match(T__164);
State = 2997;
_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 = 3007;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,147,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3003;
Match(T__165);
_localctx.Value = Actions.GetTlsDataSection(_localctx);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3005;
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 = 3018;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__16:
EnterOuterAlt(_localctx, 1);
{
State = 3009;
Match(T__16);
State = 3010;
ddItemList(_localctx.Builder);
State = 3011;
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 = 3014;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
do {
{
{
State = 3013;
ddItem(_localctx.Builder);
}
}
State = 3016;
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 = 3025;
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 = 3020;
ddItem(_localctx.Builder);
State = 3021;
Match(T__27);
}
}
}
State = 3027;
ErrorHandler.Sync(this);
_alt = Interpreter.AdaptivePredict(TokenStream,150,Context);
}
State = 3028;
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 = 3036;
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__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 = 3031;
Match(T__41);
State = 3032;
_localctx.count = int32();
State = 3033;
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 = 3086;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,152,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3038;
Match(CHAR);
State = 3039;
Match(PTR);
State = 3040;
Match(T__29);
State = 3041;
_localctx.stringValue = compQstring();
State = 3042;
Match(T__30);
Actions.AddDataString(_localctx.Builder, _localctx.stringValue.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3045;
Match(REF);
State = 3046;
Match(T__29);
State = 3047;
_localctx.target = id();
State = 3048;
Match(T__30);
Actions.AddDataReference(_localctx.Builder, (_localctx.target!=null?(_localctx.target.Start):null));
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3051;
Match(REF);
State = 3052;
_localctx.target = id();
Actions.AddDataReference(_localctx.Builder, (_localctx.target!=null?(_localctx.target.Start):null));
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 3055;
Match(T__83);
State = 3056;
Match(T__29);
State = 3057;
_localctx.byteValue = bytes();
State = 3058;
Match(T__30);
Actions.AddDataBytes(_localctx.Builder, _localctx.byteValue.Value);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 3061;
_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 = 3062;
Match(T__29);
State = 3063;
_localctx.floatingValue = float64();
State = 3064;
Match(T__30);
State = 3065;
_localctx.count = ddItemCount(_localctx.Builder);
Actions.AddFloatingPointData(_localctx.Builder, _localctx.kind, _localctx.floatingValue.Value, _localctx.count.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 3068;
_localctx.kind = Match(INT64_);
State = 3069;
Match(T__29);
State = 3070;
_localctx.int64Value = int64();
State = 3071;
Match(T__30);
State = 3072;
_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 = 3075;
_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 = 3076;
Match(T__29);
State = 3077;
_localctx.integerValue = int32();
State = 3078;
Match(T__30);
State = 3079;
_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 = 3082;
_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 = 3083;
_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 = 3178;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,153,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3088;
Match(FLOAT32);
State = 3089;
Match(T__29);
State = 3090;
_localctx.float32Value = float64();
State = 3091;
Match(T__30);
_localctx.Value = Actions.CreateFloat32SerializedInitializer(_localctx.float32Value, _localctx.float32Value.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3094;
Match(FLOAT64_);
State = 3095;
Match(T__29);
State = 3096;
_localctx.float64Value = float64();
State = 3097;
Match(T__30);
_localctx.Value = Actions.CreateFloat64SerializedInitializer(_localctx.float64Value, _localctx.float64Value.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3100;
Match(FLOAT32);
State = 3101;
Match(T__29);
State = 3102;
_localctx.float32Bits = int32();
State = 3103;
Match(T__30);
_localctx.Value = Actions.CreateFloat32BitsSerializedInitializer((_localctx.float32Bits!=null?(_localctx.float32Bits.Start):null));
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 3106;
Match(FLOAT64_);
State = 3107;
Match(T__29);
State = 3108;
_localctx.float64Bits = int64();
State = 3109;
Match(T__30);
_localctx.Value = Actions.CreateFloat64BitsSerializedInitializer((_localctx.float64Bits!=null?(_localctx.float64Bits.Start):null));
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 3112;
_localctx.int64Type = Match(INT64_);
State = 3113;
Match(T__29);
State = 3114;
_localctx.int64Value = int64();
State = 3115;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.int64Type, (_localctx.int64Value!=null?(_localctx.int64Value.Start):null));
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 3118;
_localctx.int32Type = Match(INT32_);
State = 3119;
Match(T__29);
State = 3120;
_localctx.int32Value = int32();
State = 3121;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.int32Type, (_localctx.int32Value!=null?(_localctx.int32Value.Start):null));
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 3124;
_localctx.int16Type = Match(INT16);
State = 3125;
Match(T__29);
State = 3126;
_localctx.int16Value = int32();
State = 3127;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.int16Type, (_localctx.int16Value!=null?(_localctx.int16Value.Start):null));
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 3130;
_localctx.int8Type = Match(INT8);
State = 3131;
Match(T__29);
State = 3132;
_localctx.int8Value = int32();
State = 3133;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.int8Type, (_localctx.int8Value!=null?(_localctx.int8Value.Start):null));
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 3136;
_localctx.uint64Type = Match(UINT64);
State = 3137;
Match(T__29);
State = 3138;
_localctx.uint64Value = int64();
State = 3139;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.uint64Type, (_localctx.uint64Value!=null?(_localctx.uint64Value.Start):null));
}
break;
case 10:
EnterOuterAlt(_localctx, 10);
{
State = 3142;
_localctx.uint32Type = Match(UINT32);
State = 3143;
Match(T__29);
State = 3144;
_localctx.uint32Value = int32();
State = 3145;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.uint32Type, (_localctx.uint32Value!=null?(_localctx.uint32Value.Start):null));
}
break;
case 11:
EnterOuterAlt(_localctx, 11);
{
State = 3148;
_localctx.uint16Type = Match(UINT16);
State = 3149;
Match(T__29);
State = 3150;
_localctx.uint16Value = int32();
State = 3151;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.uint16Type, (_localctx.uint16Value!=null?(_localctx.uint16Value.Start):null));
}
break;
case 12:
EnterOuterAlt(_localctx, 12);
{
State = 3154;
_localctx.uint8Type = Match(UINT8);
State = 3155;
Match(T__29);
State = 3156;
_localctx.uint8Value = int32();
State = 3157;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.uint8Type, (_localctx.uint8Value!=null?(_localctx.uint8Value.Start):null));
}
break;
case 13:
EnterOuterAlt(_localctx, 13);
{
State = 3160;
_localctx.charType = Match(CHAR);
State = 3161;
Match(T__29);
State = 3162;
_localctx.charValue = int32();
State = 3163;
Match(T__30);
_localctx.Value = Actions.CreateIntegerSerializedInitializer(_localctx.charType, (_localctx.charValue!=null?(_localctx.charValue.Start):null));
}
break;
case 14:
EnterOuterAlt(_localctx, 14);
{
State = 3166;
_localctx.boolType = Match(BOOL);
State = 3167;
Match(T__29);
State = 3168;
_localctx.boolValue = truefalse();
State = 3169;
Match(T__30);
_localctx.Value = Actions.CreateBooleanSerializedInitializer(_localctx.boolType, _localctx.boolValue.Value);
}
break;
case 15:
EnterOuterAlt(_localctx, 15);
{
State = 3172;
Match(T__83);
State = 3173;
Match(T__29);
State = 3174;
_localctx.byteArrayValue = bytes();
State = 3175;
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 = 3185;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==INT32 || _la==ID || _la==HEXBYTE) {
{
{
State = 3180;
_localctx.b = hexbyte();
Actions.AddByte(_localctx.Builder, _localctx.b.Value);
}
}
State = 3187;
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 = 3188;
_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 = 3198;
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 = 3190;
_localctx.serializedValue = fieldSerInit();
_localctx.Value = Actions.CreateFieldInitializer(_localctx.serializedValue.Value);
}
break;
case QSTRING:
EnterOuterAlt(_localctx, 2);
{
State = 3193;
_localctx.stringValue = compQstring();
_localctx.Value = Actions.CreateFieldInitializer(_localctx.stringValue.Value);
}
break;
case NULLREF:
EnterOuterAlt(_localctx, 3);
{
State = 3196;
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 = 3371;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,156,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3200;
_localctx.scalarValue = fieldSerInit();
_localctx.Value = Actions.CreateScalarSerializedValue(_localctx, _localctx.scalarValue, _localctx.scalarValue.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3203;
Match(STRING);
State = 3204;
Match(T__29);
State = 3205;
Match(NULLREF);
State = 3206;
Match(T__30);
_localctx.Value = Actions.CreateStringSerializedValue();
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3208;
Match(STRING);
State = 3209;
Match(T__29);
State = 3210;
_localctx.stringToken = Match(SQSTRING);
State = 3211;
Match(T__30);
_localctx.Value = Actions.CreateStringSerializedValue(_localctx.stringToken);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 3213;
Match(TYPE);
State = 3214;
Match(T__29);
State = 3215;
Match(T__38);
State = 3216;
_localctx.typeToken = Match(SQSTRING);
State = 3217;
Match(T__30);
_localctx.Value = Actions.CreateTypeSerializedValue(_localctx.typeToken);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 3219;
Match(TYPE);
State = 3220;
Match(T__29);
State = 3221;
_localctx.typeName = className();
State = 3222;
Match(T__30);
_localctx.Value = Actions.CreateTypeSerializedValue(_localctx.typeName.Value);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 3225;
Match(TYPE);
State = 3226;
Match(T__29);
State = 3227;
Match(NULLREF);
State = 3228;
Match(T__30);
_localctx.Value = Actions.CreateNullTypeSerializedValue();
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 3230;
Match(OBJECT);
State = 3231;
Match(T__29);
State = 3232;
_localctx.objectValue = serInit();
State = 3233;
Match(T__30);
_localctx.Value = Actions.CreateObjectSerializedValue(_localctx.objectValue.Value);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 3236;
_localctx.f32ElementToken = Match(FLOAT32);
State = 3237;
Match(T__41);
State = 3238;
_localctx.f32Length = int32();
State = 3239;
Match(T__42);
State = 3240;
Match(T__29);
State = 3241;
_localctx.f32Values = f32seq();
State = 3242;
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 = 3245;
_localctx.f64ElementToken = Match(FLOAT64_);
State = 3246;
Match(T__41);
State = 3247;
_localctx.f64Length = int32();
State = 3248;
Match(T__42);
State = 3249;
Match(T__29);
State = 3250;
_localctx.f64Values = f64seq();
State = 3251;
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 = 3254;
_localctx.i64ElementToken = Match(INT64_);
State = 3255;
Match(T__41);
State = 3256;
_localctx.i64Length = int32();
State = 3257;
Match(T__42);
State = 3258;
Match(T__29);
State = 3259;
_localctx.i64Values = i64seq();
State = 3260;
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 = 3263;
_localctx.i32ElementToken = Match(INT32_);
State = 3264;
Match(T__41);
State = 3265;
_localctx.i32Length = int32();
State = 3266;
Match(T__42);
State = 3267;
Match(T__29);
State = 3268;
_localctx.i32Values = i32seq();
State = 3269;
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 = 3272;
_localctx.i16ElementToken = Match(INT16);
State = 3273;
Match(T__41);
State = 3274;
_localctx.i16Length = int32();
State = 3275;
Match(T__42);
State = 3276;
Match(T__29);
State = 3277;
_localctx.i16Values = i16seq();
State = 3278;
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 = 3281;
_localctx.i8ElementToken = Match(INT8);
State = 3282;
Match(T__41);
State = 3283;
_localctx.i8Length = int32();
State = 3284;
Match(T__42);
State = 3285;
Match(T__29);
State = 3286;
_localctx.i8Values = i8seq();
State = 3287;
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 = 3290;
_localctx.u64ElementToken = Match(UINT64);
State = 3291;
Match(T__41);
State = 3292;
_localctx.u64Length = int32();
State = 3293;
Match(T__42);
State = 3294;
Match(T__29);
State = 3295;
_localctx.u64Values = i64seq();
State = 3296;
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 = 3299;
_localctx.u32ElementToken = Match(UINT32);
State = 3300;
Match(T__41);
State = 3301;
_localctx.u32Length = int32();
State = 3302;
Match(T__42);
State = 3303;
Match(T__29);
State = 3304;
_localctx.u32Values = i32seq();
State = 3305;
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 = 3308;
_localctx.u16ElementToken = Match(UINT16);
State = 3309;
Match(T__41);
State = 3310;
_localctx.u16Length = int32();
State = 3311;
Match(T__42);
State = 3312;
Match(T__29);
State = 3313;
_localctx.u16Values = i16seq();
State = 3314;
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 = 3317;
_localctx.u8ElementToken = Match(UINT8);
State = 3318;
Match(T__41);
State = 3319;
_localctx.u8Length = int32();
State = 3320;
Match(T__42);
State = 3321;
Match(T__29);
State = 3322;
_localctx.u8Values = i8seq();
State = 3323;
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 = 3326;
_localctx.charElementToken = Match(CHAR);
State = 3327;
Match(T__41);
State = 3328;
_localctx.charLength = int32();
State = 3329;
Match(T__42);
State = 3330;
Match(T__29);
State = 3331;
_localctx.charValues = i16seq();
State = 3332;
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 = 3335;
_localctx.boolElementToken = Match(BOOL);
State = 3336;
Match(T__41);
State = 3337;
_localctx.boolLength = int32();
State = 3338;
Match(T__42);
State = 3339;
Match(T__29);
State = 3340;
_localctx.boolValues = boolSeq();
State = 3341;
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 = 3344;
_localctx.stringElementToken = Match(STRING);
State = 3345;
Match(T__41);
State = 3346;
_localctx.stringLength = int32();
State = 3347;
Match(T__42);
State = 3348;
Match(T__29);
State = 3349;
_localctx.stringValues = sqstringSeq();
State = 3350;
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 = 3353;
_localctx.typeElementToken = Match(TYPE);
State = 3354;
Match(T__41);
State = 3355;
_localctx.typeLength = int32();
State = 3356;
Match(T__42);
State = 3357;
Match(T__29);
State = 3358;
_localctx.typeValues = classSeq();
State = 3359;
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 = 3362;
_localctx.objectElementToken = Match(OBJECT);
State = 3363;
Match(T__41);
State = 3364;
_localctx.objectLength = int32();
State = 3365;
Match(T__42);
State = 3366;
Match(T__29);
State = 3367;
_localctx.objectValues = objSeq();
State = 3368;
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 = 3381;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (((((_la - 172)) & ~0x3f) == 0 && ((1L << (_la - 172)) & 98309L) != 0)) {
{
State = 3379;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,157,Context) ) {
case 1:
{
State = 3373;
_localctx.floatingValue = float64();
Actions.AddFloat32SequenceValue(_localctx.Builder, _localctx.floatingValue.Value);
}
break;
case 2:
{
State = 3376;
_localctx.integerValue = int32();
Actions.AddFloat32SequenceValue(_localctx.Builder, (_localctx.integerValue!=null?(_localctx.integerValue.Start):null));
}
break;
}
}
State = 3383;
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 = 3392;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (((((_la - 172)) & ~0x3f) == 0 && ((1L << (_la - 172)) & 98311L) != 0)) {
{
State = 3390;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,159,Context) ) {
case 1:
{
State = 3384;
_localctx.floatingValue = float64();
Actions.AddFloat64SequenceValue(_localctx.Builder, _localctx.floatingValue.Value);
}
break;
case 2:
{
State = 3387;
_localctx.integerValue = int64();
Actions.AddFloat64SequenceValue(_localctx.Builder, (_localctx.integerValue!=null?(_localctx.integerValue.Start):null));
}
break;
}
}
State = 3394;
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 = 3400;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==INT32 || _la==INT64) {
{
{
State = 3395;
_localctx.value = int64();
Actions.AddInt64SequenceValue(_localctx.Builder, (_localctx.value!=null?(_localctx.value.Start):null));
}
}
State = 3402;
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 = 3408;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==INT32) {
{
{
State = 3403;
_localctx.value = int32();
Actions.AddInt32SequenceValue(_localctx.Builder, (_localctx.value!=null?(_localctx.value.Start):null));
}
}
State = 3410;
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 = 3416;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==INT32) {
{
{
State = 3411;
_localctx.value = int32();
Actions.AddInt16SequenceValue(_localctx.Builder, (_localctx.value!=null?(_localctx.value.Start):null));
}
}
State = 3418;
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 = 3424;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==INT32) {
{
{
State = 3419;
_localctx.value = int32();
Actions.AddInt8SequenceValue(_localctx.Builder, (_localctx.value!=null?(_localctx.value.Start):null));
}
}
State = 3426;
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 = 3432;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__94 || _la==T__95) {
{
{
State = 3427;
_localctx.value = truefalse();
Actions.AddBooleanSequenceValue(_localctx.Builder, _localctx.value.Value);
}
}
State = 3434;
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 = 3441;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==NULLREF || _la==SQSTRING) {
{
State = 3439;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case NULLREF:
{
State = 3435;
_localctx.nullValue = Match(NULLREF);
Actions.AddStringSequenceValue(_localctx.Builder, _localctx.nullValue);
}
break;
case SQSTRING:
{
State = 3437;
_localctx.stringValue = Match(SQSTRING);
Actions.AddStringSequenceValue(_localctx.Builder, _localctx.stringValue);
}
break;
default:
throw new NoViableAltException(this);
}
}
State = 3443;
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 = 3449;
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 = 3444;
_localctx.value = classSeqElement();
_localctx.Builder.Add(_localctx.value.Value);
}
}
State = 3451;
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 = 3460;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case NULLREF:
EnterOuterAlt(_localctx, 1);
{
State = 3452;
Match(NULLREF);
_localctx.Value = Actions.CreateNullClassSequenceValue();
}
break;
case T__38:
EnterOuterAlt(_localctx, 2);
{
State = 3454;
Match(T__38);
State = 3455;
_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 = 3457;
_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 = 3467;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__83 || ((((_la - 180)) & ~0x3f) == 0 && ((1L << (_la - 180)) & 106495L) != 0)) {
{
{
State = 3462;
_localctx.value = serInit();
_localctx.Builder.Add(_localctx.value.Value);
}
}
State = 3469;
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 = 3479;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,171,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3470;
_localctx.directAttribute = customDescr();
_localctx.Value = Actions.CreateCustomAttributeDeclaration(_localctx.directAttribute.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3473;
_localctx.ownedAttribute = customDescrWithOwner();
_localctx.Value = Actions.CreateCustomAttributeDeclaration(_localctx.ownedAttribute.Value);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3476;
_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 = 3513;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,172,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3481;
Match(T__166);
State = 3482;
Match(T__35);
State = 3483;
Match(T__29);
State = 3484;
_localctx.key = bytes();
State = 3485;
Match(T__30);
_localctx.Value = Actions.CreateAssemblyPublicKeyDeclaration(_localctx.key.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3488;
Match(T__167);
State = 3489;
_localctx.major = intOrWildcard();
State = 3490;
Match(T__74);
State = 3491;
_localctx.minor = intOrWildcard();
State = 3492;
Match(T__74);
State = 3493;
_localctx.build = intOrWildcard();
State = 3494;
Match(T__74);
State = 3495;
_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 = 3498;
Match(T__168);
State = 3499;
_localctx.locale = compQstring();
_localctx.Value = Actions.CreateAssemblyLocaleDeclaration(_localctx.locale.Value);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 3502;
Match(T__168);
State = 3503;
Match(T__35);
State = 3504;
Match(T__29);
State = 3505;
_localctx.localeBytes = bytes();
State = 3506;
Match(T__30);
_localctx.Value = Actions.CreateAssemblyLocaleDeclaration(_localctx.localeBytes.Value);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 3509;
_localctx.attribute = customAttrDecl();
_localctx.Value = Actions.CreateAssemblyCustomAttributeDeclaration(
_localctx.attribute.Value,
(_localctx.attribute!=null?(_localctx.attribute.Start):null));
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 3512;
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 = 3515;
_localctx.header = assemblyRefHead();
State = 3516;
Match(T__16);
State = 3517;
_localctx.declarations = assemblyRefDecls();
State = 3518;
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 = 3535;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,173,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3521;
Match(T__24);
State = 3522;
Match(T__39);
State = 3523;
_localctx.attributes = asmAttr();
State = 3524;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateAssemblyReferenceHeader(
_localctx.attributes.Value,
_localctx.name.Value,
_localctx.name.Value);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3527;
Match(T__24);
State = 3528;
Match(T__39);
State = 3529;
_localctx.attributes = asmAttr();
State = 3530;
_localctx.name = dottedName();
State = 3531;
Match(T__33);
State = 3532;
_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 = 3542;
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 = 3537;
_localctx.declaration = assemblyRefDecl();
if (_localctx.declaration.Value is not null) _localctx.Builder.Add(_localctx.declaration.Value);
}
}
State = 3544;
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 = 3564;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case HASH:
EnterOuterAlt(_localctx, 1);
{
State = 3545;
Match(HASH);
State = 3546;
Match(T__35);
State = 3547;
Match(T__29);
State = 3548;
_localctx.hash = bytes();
State = 3549;
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 = 3552;
_localctx.shared = asmOrRefDecl();
_localctx.Value = _localctx.shared.Value;
}
break;
case T__169:
EnterOuterAlt(_localctx, 3);
{
State = 3555;
Match(T__169);
State = 3556;
Match(T__35);
State = 3557;
Match(T__29);
State = 3558;
_localctx.token = bytes();
State = 3559;
Match(T__30);
_localctx.Value = Actions.CreateAssemblyReferencePublicKeyTokenDeclaration(_localctx.token.Value);
}
break;
case T__54:
EnterOuterAlt(_localctx, 4);
{
State = 3562;
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 = 3566;
_localctx.header = exptypeHead();
State = 3567;
Match(T__16);
State = 3568;
_localctx.declarations = exptypeDecls();
State = 3569;
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 = 3572;
_localctx.head = Match(T__49);
State = 3573;
Match(T__39);
State = 3574;
_localctx.attributes = exptAttrs();
State = 3575;
_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 = 3578;
_localctx.head = Match(EXPORT);
State = 3579;
_localctx.attributes = exptAttrs();
State = 3580;
_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 = 3588;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 4618441417868443648L) != 0) || _la==T__170) {
{
{
State = 3583;
_localctx.attribute = exptAttr();
_localctx.Value = Actions.AddExportedTypeAttribute(
_localctx.Value,
_localctx.attribute.Value,
_localctx.attribute.Mask);
}
}
State = 3590;
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 = 3606;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,177,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3591;
Match(T__51);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3592;
Match(T__50);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3593;
Match(T__170);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 3594;
Match(T__61);
State = 3595;
Match(T__50);
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 3596;
Match(T__61);
State = 3597;
Match(T__51);
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 3598;
Match(T__61);
State = 3599;
Match(T__62);
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 3600;
Match(T__61);
State = 3601;
Match(T__63);
}
break;
case 8:
EnterOuterAlt(_localctx, 8);
{
State = 3602;
Match(T__61);
State = 3603;
Match(T__64);
}
break;
case 9:
EnterOuterAlt(_localctx, 9);
{
State = 3604;
Match(T__61);
State = 3605;
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 = 3613;
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 = 3608;
_localctx.declaration = exptypeDecl();
if (_localctx.declaration.Value is not null) _localctx.Builder.Add(_localctx.declaration.Value);
}
}
State = 3615;
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 = 3641;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,179,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3616;
_localctx.location = Match(T__20);
State = 3617;
_localctx.name = dottedName();
_localctx.Value = Actions.CreateExportedTypeFileDeclaration(
_localctx.name.Value,
_localctx.location);
}
break;
case 2:
EnterOuterAlt(_localctx, 2);
{
State = 3620;
_localctx.location = Match(T__49);
State = 3621;
Match(T__39);
State = 3622;
_localctx.nestedName = slashedName();
_localctx.Value = Actions.CreateNestedExportedTypeDeclaration(
_localctx.nestedName.Value,
_localctx.location);
}
break;
case 3:
EnterOuterAlt(_localctx, 3);
{
State = 3625;
_localctx.location = Match(T__24);
State = 3626;
Match(T__39);
State = 3627;
_localctx.assemblyName = dottedName();
_localctx.Value = Actions.CreateExportedTypeAssemblyDeclaration(
_localctx.assemblyName.Value,
_localctx.location);
}
break;
case 4:
EnterOuterAlt(_localctx, 4);
{
State = 3630;
_localctx.token = mdtoken();
_localctx.Value = Actions.CreateExportedTypeMetadataTokenDeclaration(
_localctx.token.Value,
(_localctx.token!=null?(_localctx.token.Start):null));
}
break;
case 5:
EnterOuterAlt(_localctx, 5);
{
State = 3633;
Match(T__49);
State = 3634;
_localctx.typeDefinitionId = int32();
_localctx.Value = Actions.CreateExportedTypeDefinitionIdDeclaration(
(_localctx.typeDefinitionId!=null?(_localctx.typeDefinitionId.Start):null));
}
break;
case 6:
EnterOuterAlt(_localctx, 6);
{
State = 3637;
_localctx.attribute = customAttrDecl();
_localctx.Value = Actions.CreateExportedTypeCustomAttributeDeclaration(
_localctx.attribute.Value,
(_localctx.attribute!=null?(_localctx.attribute.Start):null));
}
break;
case 7:
EnterOuterAlt(_localctx, 7);
{
State = 3640;
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 = 3643;
_localctx.header = manifestResHead();
State = 3644;
Match(T__16);
State = 3645;
_localctx.declarations = manifestResDecls();
State = 3646;
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 = 3661;
ErrorHandler.Sync(this);
switch ( Interpreter.AdaptivePredict(TokenStream,180,Context) ) {
case 1:
EnterOuterAlt(_localctx, 1);
{
State = 3649;
_localctx.head = Match(MRESOURCE);
State = 3650;
_localctx.attributes = manresAttrs();
State = 3651;
_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 = 3654;
_localctx.head = Match(MRESOURCE);
State = 3655;
_localctx.attributes = manresAttrs();
State = 3656;
_localctx.name = dottedName();
State = 3657;
Match(T__33);
State = 3658;
_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 = 3668;
ErrorHandler.Sync(this);
_la = TokenStream.LA(1);
while (_la==T__50 || _la==T__51) {
{
{
State = 3663;
_localctx.attribute = manresAttr();
_localctx.Value = Actions.AddManifestResourceAttribute(
_localctx.Value,
_localctx.attribute.Value);
}
}
State = 3670;
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 = 3671;
_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 = 3678;
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 = 3673;
_localctx.declaration = manifestResDecl();
if (_localctx.declaration.Value is not null) _localctx.Builder.Add(_localctx.declaration.Value);
}
}
State = 3680;
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 = 3696;
ErrorHandler.Sync(this);
switch (TokenStream.LA(1)) {
case T__20:
EnterOuterAlt(_localctx, 1);
{
State = 3681;
_localctx.location = Match(T__20);
State = 3682;
_localctx.name = dottedName();
State = 3683;
Match(T__43);
State = 3684;
_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 = 3687;
Match(T__24);
State = 3688;
Match(T__39);
State = 3689;
_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 = 3692;
_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 = 3695;
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;
}
private static int[] _serializedATN = {
4,1,304,3699,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,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,5,
1,381,8,1,10,1,12,1,384,9,1,1,1,1,1,1,1,1,1,1,1,3,1,391,8,1,1,2,1,2,1,
3,1,3,1,3,5,3,398,8,3,10,3,12,3,401,9,3,1,3,1,3,1,3,1,4,5,4,407,8,4,10,
4,12,4,410,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,498,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,549,8,13,1,14,1,14,1,15,1,15,
1,15,1,15,1,15,5,15,558,8,15,10,15,12,15,561,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,590,8,18,1,19,1,19,1,
19,1,19,1,19,3,19,597,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,615,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,647,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,675,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,715,8,23,1,24,
1,24,1,24,1,25,1,25,1,25,1,25,1,25,1,25,3,25,726,8,25,1,26,1,26,1,26,1,
26,1,27,1,27,1,27,1,27,5,27,736,8,27,10,27,12,27,739,9,27,1,28,1,28,1,
28,1,28,1,28,1,28,1,28,1,28,5,28,749,8,28,10,28,12,28,752,9,28,1,29,1,
29,1,29,1,30,1,30,3,30,759,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,781,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,794,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,808,8,
34,10,34,12,34,811,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,832,8,38,10,38,12,
38,835,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,907,8,39,1,40,1,40,1,40,1,40,1,40,3,40,914,8,40,1,41,1,
41,1,41,1,41,1,41,3,41,921,8,41,1,42,5,42,924,8,42,10,42,12,42,927,9,42,
1,43,1,43,1,43,1,43,5,43,933,8,43,10,43,12,43,936,9,43,1,43,1,43,1,43,
1,44,1,44,1,45,1,45,1,45,3,45,946,8,45,1,45,1,45,1,45,1,45,1,45,1,45,1,
45,3,45,955,8,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,3,45,966,
8,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,3,45,977,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,990,8,45,1,45,1,45,
3,45,994,8,45,1,46,1,46,1,46,1,46,5,46,1000,8,46,10,46,12,46,1003,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,
1018,8,46,1,47,1,47,1,48,1,48,1,48,3,48,1025,8,48,1,49,1,49,1,50,1,50,
1,50,5,50,1032,8,50,10,50,12,50,1035,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,1062,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,1140,8,52,3,52,1142,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,1156,8,54,1,54,1,54,5,54,1160,8,54,10,54,12,54,
1163,9,54,1,54,1,54,1,54,1,54,1,54,1,54,3,54,1171,8,54,3,54,1173,8,54,
1,55,1,55,1,55,1,55,1,55,5,55,1180,8,55,10,55,12,55,1183,9,55,1,55,1,55,
1,55,1,55,1,56,1,56,1,56,1,56,1,56,5,56,1194,8,56,10,56,12,56,1197,9,56,
1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,57,5,57,1208,8,57,10,57,12,57,
1211,9,57,1,57,1,57,1,57,1,57,1,57,3,57,1218,8,57,1,58,1,58,1,58,1,58,
1,58,1,58,3,58,1226,8,58,1,58,1,58,3,58,1230,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,1269,8,59,1,60,1,60,1,60,1,60,5,60,1275,
8,60,10,60,12,60,1278,9,60,1,60,1,60,1,60,1,61,1,61,1,61,5,61,1286,8,61,
10,61,12,61,1289,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,1302,8,62,1,63,1,63,1,63,1,63,1,63,1,63,3,63,1310,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,
1326,8,64,1,65,1,65,1,65,1,65,1,65,1,65,5,65,1334,8,65,10,65,12,65,1337,
9,65,3,65,1339,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,1363,
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,1510,8,67,1,68,1,68,1,68,1,68,1,68,
1,68,1,68,1,68,3,68,1520,8,68,1,69,1,69,1,69,1,69,1,69,5,69,1527,8,69,
10,69,12,69,1530,9,69,3,69,1532,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,1614,8,70,1,71,1,71,1,71,1,71,1,71,5,71,1621,8,71,
10,71,12,71,1624,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,1655,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,1715,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,1755,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,1771,
8,75,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,3,77,1781,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,1811,
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,
1839,8,78,1,79,1,79,1,79,1,79,1,79,5,79,1846,8,79,10,79,12,79,1849,9,79,
1,79,1,79,1,79,3,79,1854,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,1871,8,80,1,81,1,81,1,81,1,81,
5,81,1877,8,81,10,81,12,81,1880,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,1937,8,84,1,85,1,85,1,86,1,86,1,86,
1,86,1,86,1,86,3,86,1947,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,1965,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,
1983,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,2002,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,
2023,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,2042,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,2057,8,91,1,92,1,92,1,92,1,92,
5,92,2063,8,92,10,92,12,92,2066,9,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,
1,93,1,93,3,93,2077,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,2097,8,94,1,95,1,95,
1,95,5,95,2102,8,95,10,95,12,95,2105,9,95,1,96,1,96,3,96,2109,8,96,1,96,
1,96,1,96,1,97,1,97,1,97,1,97,5,97,2118,8,97,10,97,12,97,2121,9,97,1,97,
1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,99,3,99,2132,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,2240,8,101,10,101,12,101,
2243,9,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,5,101,2252,8,101,
10,101,12,101,2255,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,2268,8,101,10,101,12,101,2271,9,101,1,101,1,101,
1,101,1,101,1,101,1,101,1,101,1,101,1,101,5,101,2282,8,101,10,101,12,101,
2285,9,101,1,101,1,101,1,101,1,101,1,101,1,101,3,101,2293,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,2306,
8,102,10,102,12,102,2309,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,2351,8,103,
1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,3,104,2362,8,104,
1,105,1,105,1,105,1,105,1,105,3,105,2369,8,105,1,106,1,106,1,106,1,106,
1,106,1,106,3,106,2377,8,106,1,107,1,107,1,107,1,107,5,107,2383,8,107,
10,107,12,107,2386,9,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,
5,107,2396,8,107,10,107,12,107,2399,9,107,1,107,1,107,1,107,3,107,2404,
8,107,1,108,1,108,1,108,1,108,3,108,2410,8,108,1,109,5,109,2413,8,109,
10,109,12,109,2416,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,2444,8,110,1,111,1,111,1,111,
1,111,5,111,2450,8,111,10,111,12,111,2453,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,2466,8,112,1,113,5,113,
2469,8,113,10,113,12,113,2472,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,2496,8,114,1,115,1,115,1,115,1,115,1,115,
1,115,1,115,3,115,2505,8,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,
4,116,2514,8,116,11,116,12,116,2515,1,116,1,116,3,116,2520,8,116,1,117,
1,117,1,117,5,117,2525,8,117,10,117,12,117,2528,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,2547,8,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,
5,119,2556,8,119,10,119,12,119,2559,9,119,1,119,1,119,1,119,1,119,1,119,
1,119,1,119,1,119,1,119,1,119,5,119,2571,8,119,10,119,12,119,2574,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,2620,8,120,1,121,
1,121,1,121,1,121,1,121,1,121,1,121,1,121,3,121,2630,8,121,3,121,2632,
8,121,1,121,1,121,1,121,5,121,2637,8,121,10,121,12,121,2640,9,121,1,121,
1,121,1,121,3,121,2645,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,
2689,8,122,1,123,1,123,1,123,1,123,1,123,1,123,1,123,3,123,2698,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,2738,8,124,1,125,5,125,2741,8,125,10,125,12,125,2744,
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,2783,8,126,1,127,1,127,3,127,2787,8,127,1,127,1,127,
1,128,1,128,1,128,1,128,1,128,1,128,3,128,2797,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,2819,8,130,1,131,1,131,1,131,1,131,
1,131,1,131,1,131,1,131,5,131,2829,8,131,10,131,12,131,2832,9,131,1,131,
1,131,1,131,1,131,1,131,1,131,5,131,2840,8,131,10,131,12,131,2843,9,131,
1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,5,131,2855,
8,131,10,131,12,131,2858,9,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,
1,131,5,131,2868,8,131,10,131,12,131,2871,9,131,1,131,1,131,1,131,1,131,
1,131,1,131,1,131,1,131,5,131,2881,8,131,10,131,12,131,2884,9,131,3,131,
2886,8,131,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,
3,133,2898,8,133,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,136,1,136,
1,136,4,136,2910,8,136,11,136,12,136,2911,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,
2930,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,2948,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,2962,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,2986,
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,3001,8,145,1,146,1,146,1,146,1,146,1,146,3,146,3008,
8,146,1,147,1,147,1,147,1,147,1,147,4,147,3015,8,147,11,147,12,147,3016,
3,147,3019,8,147,1,148,1,148,1,148,5,148,3024,8,148,10,148,12,148,3027,
9,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,1,149,3,149,3037,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,3087,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,3179,8,151,
1,152,1,152,1,152,5,152,3184,8,152,10,152,12,152,3187,9,152,1,153,1,153,
1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,154,3,154,3199,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,3372,8,155,1,156,1,156,1,156,1,156,1,156,1,156,5,156,
3380,8,156,10,156,12,156,3383,9,156,1,157,1,157,1,157,1,157,1,157,1,157,
5,157,3391,8,157,10,157,12,157,3394,9,157,1,158,1,158,1,158,5,158,3399,
8,158,10,158,12,158,3402,9,158,1,159,1,159,1,159,5,159,3407,8,159,10,159,
12,159,3410,9,159,1,160,1,160,1,160,5,160,3415,8,160,10,160,12,160,3418,
9,160,1,161,1,161,1,161,5,161,3423,8,161,10,161,12,161,3426,9,161,1,162,
1,162,1,162,5,162,3431,8,162,10,162,12,162,3434,9,162,1,163,1,163,1,163,
1,163,5,163,3440,8,163,10,163,12,163,3443,9,163,1,164,1,164,1,164,5,164,
3448,8,164,10,164,12,164,3451,9,164,1,165,1,165,1,165,1,165,1,165,1,165,
1,165,1,165,3,165,3461,8,165,1,166,1,166,1,166,5,166,3466,8,166,10,166,
12,166,3469,9,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,
3,167,3480,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,
3514,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,3536,
8,170,1,171,1,171,1,171,5,171,3541,8,171,10,171,12,171,3544,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,3565,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,3587,8,176,10,176,12,176,3590,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,3607,8,177,1,178,1,178,1,178,5,178,3612,8,178,
10,178,12,178,3615,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,3642,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,3662,8,181,1,182,1,182,1,182,5,182,3667,8,182,10,182,
12,182,3670,9,182,1,183,1,183,1,184,1,184,1,184,5,184,3677,8,184,10,184,
12,184,3680,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,3697,8,185,1,185,0,0,186,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,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,4137,0,372,1,0,0,0,2,390,1,0,0,0,4,392,1,0,0,0,6,
399,1,0,0,0,8,408,1,0,0,0,10,497,1,0,0,0,12,499,1,0,0,0,14,503,1,0,0,0,
16,507,1,0,0,0,18,512,1,0,0,0,20,516,1,0,0,0,22,520,1,0,0,0,24,528,1,0,
0,0,26,548,1,0,0,0,28,550,1,0,0,0,30,552,1,0,0,0,32,564,1,0,0,0,34,566,
1,0,0,0,36,589,1,0,0,0,38,596,1,0,0,0,40,614,1,0,0,0,42,646,1,0,0,0,44,
674,1,0,0,0,46,714,1,0,0,0,48,716,1,0,0,0,50,725,1,0,0,0,52,727,1,0,0,
0,54,737,1,0,0,0,56,750,1,0,0,0,58,753,1,0,0,0,60,756,1,0,0,0,62,780,1,
0,0,0,64,793,1,0,0,0,66,795,1,0,0,0,68,809,1,0,0,0,70,814,1,0,0,0,72,816,
1,0,0,0,74,823,1,0,0,0,76,827,1,0,0,0,78,906,1,0,0,0,80,913,1,0,0,0,82,
920,1,0,0,0,84,925,1,0,0,0,86,934,1,0,0,0,88,940,1,0,0,0,90,993,1,0,0,
0,92,995,1,0,0,0,94,1019,1,0,0,0,96,1024,1,0,0,0,98,1026,1,0,0,0,100,1033,
1,0,0,0,102,1061,1,0,0,0,104,1141,1,0,0,0,106,1143,1,0,0,0,108,1172,1,
0,0,0,110,1174,1,0,0,0,112,1188,1,0,0,0,114,1217,1,0,0,0,116,1229,1,0,
0,0,118,1268,1,0,0,0,120,1276,1,0,0,0,122,1287,1,0,0,0,124,1301,1,0,0,
0,126,1309,1,0,0,0,128,1325,1,0,0,0,130,1338,1,0,0,0,132,1362,1,0,0,0,
134,1509,1,0,0,0,136,1519,1,0,0,0,138,1531,1,0,0,0,140,1613,1,0,0,0,142,
1615,1,0,0,0,144,1654,1,0,0,0,146,1714,1,0,0,0,148,1754,1,0,0,0,150,1770,
1,0,0,0,152,1772,1,0,0,0,154,1776,1,0,0,0,156,1838,1,0,0,0,158,1853,1,
0,0,0,160,1870,1,0,0,0,162,1878,1,0,0,0,164,1884,1,0,0,0,166,1889,1,0,
0,0,168,1936,1,0,0,0,170,1938,1,0,0,0,172,1982,1,0,0,0,174,2001,1,0,0,
0,176,2022,1,0,0,0,178,2024,1,0,0,0,180,2041,1,0,0,0,182,2056,1,0,0,0,
184,2064,1,0,0,0,186,2076,1,0,0,0,188,2096,1,0,0,0,190,2103,1,0,0,0,192,
2106,1,0,0,0,194,2119,1,0,0,0,196,2125,1,0,0,0,198,2131,1,0,0,0,200,2135,
1,0,0,0,202,2292,1,0,0,0,204,2294,1,0,0,0,206,2350,1,0,0,0,208,2361,1,
0,0,0,210,2368,1,0,0,0,212,2376,1,0,0,0,214,2403,1,0,0,0,216,2409,1,0,
0,0,218,2414,1,0,0,0,220,2443,1,0,0,0,222,2445,1,0,0,0,224,2465,1,0,0,
0,226,2470,1,0,0,0,228,2495,1,0,0,0,230,2504,1,0,0,0,232,2519,1,0,0,0,
234,2526,1,0,0,0,236,2546,1,0,0,0,238,2548,1,0,0,0,240,2619,1,0,0,0,242,
2644,1,0,0,0,244,2688,1,0,0,0,246,2697,1,0,0,0,248,2737,1,0,0,0,250,2742,
1,0,0,0,252,2782,1,0,0,0,254,2784,1,0,0,0,256,2790,1,0,0,0,258,2798,1,
0,0,0,260,2818,1,0,0,0,262,2885,1,0,0,0,264,2887,1,0,0,0,266,2897,1,0,
0,0,268,2899,1,0,0,0,270,2903,1,0,0,0,272,2909,1,0,0,0,274,2929,1,0,0,
0,276,2947,1,0,0,0,278,2961,1,0,0,0,280,2963,1,0,0,0,282,2966,1,0,0,0,
284,2968,1,0,0,0,286,2985,1,0,0,0,288,2987,1,0,0,0,290,3000,1,0,0,0,292,
3007,1,0,0,0,294,3018,1,0,0,0,296,3025,1,0,0,0,298,3036,1,0,0,0,300,3086,
1,0,0,0,302,3178,1,0,0,0,304,3185,1,0,0,0,306,3188,1,0,0,0,308,3198,1,
0,0,0,310,3371,1,0,0,0,312,3381,1,0,0,0,314,3392,1,0,0,0,316,3400,1,0,
0,0,318,3408,1,0,0,0,320,3416,1,0,0,0,322,3424,1,0,0,0,324,3432,1,0,0,
0,326,3441,1,0,0,0,328,3449,1,0,0,0,330,3460,1,0,0,0,332,3467,1,0,0,0,
334,3479,1,0,0,0,336,3513,1,0,0,0,338,3515,1,0,0,0,340,3535,1,0,0,0,342,
3542,1,0,0,0,344,3564,1,0,0,0,346,3566,1,0,0,0,348,3572,1,0,0,0,350,3578,
1,0,0,0,352,3588,1,0,0,0,354,3606,1,0,0,0,356,3613,1,0,0,0,358,3641,1,
0,0,0,360,3643,1,0,0,0,362,3661,1,0,0,0,364,3668,1,0,0,0,366,3671,1,0,
0,0,368,3678,1,0,0,0,370,3696,1,0,0,0,372,373,7,0,0,0,373,1,1,0,0,0,374,
375,5,287,0,0,375,391,6,1,-1,0,376,377,3,4,2,0,377,378,6,1,-1,0,378,379,
5,264,0,0,379,381,1,0,0,0,380,376,1,0,0,0,381,384,1,0,0,0,382,380,1,0,
0,0,382,383,1,0,0,0,383,385,1,0,0,0,384,382,1,0,0,0,385,386,3,4,2,0,386,
387,6,1,-1,0,387,391,1,0,0,0,388,389,5,263,0,0,389,391,6,1,-1,0,390,374,
1,0,0,0,390,382,1,0,0,0,390,388,1,0,0,0,391,3,1,0,0,0,392,393,7,1,0,0,
393,5,1,0,0,0,394,395,5,262,0,0,395,396,6,3,-1,0,396,398,5,265,0,0,397,
394,1,0,0,0,398,401,1,0,0,0,399,397,1,0,0,0,399,400,1,0,0,0,400,402,1,
0,0,0,401,399,1,0,0,0,402,403,5,262,0,0,403,404,6,3,-1,0,404,7,1,0,0,0,
405,407,3,10,5,0,406,405,1,0,0,0,407,410,1,0,0,0,408,406,1,0,0,0,408,409,
1,0,0,0,409,9,1,0,0,0,410,408,1,0,0,0,411,412,3,76,38,0,412,413,5,17,0,
0,413,414,3,84,42,0,414,415,5,18,0,0,415,498,1,0,0,0,416,417,3,74,37,0,
417,418,5,17,0,0,418,419,3,8,4,0,419,420,5,18,0,0,420,498,1,0,0,0,421,
422,3,238,119,0,422,423,5,17,0,0,423,424,3,250,125,0,424,425,5,18,0,0,
425,498,1,0,0,0,426,498,3,204,102,0,427,428,6,5,-1,0,428,429,3,288,144,
0,429,430,6,5,-1,0,430,498,1,0,0,0,431,432,6,5,-1,0,432,433,3,72,36,0,
433,434,6,5,-1,0,434,498,1,0,0,0,435,436,6,5,-1,0,436,437,3,66,33,0,437,
438,6,5,-1,0,438,498,1,0,0,0,439,440,6,5,-1,0,440,441,3,90,45,0,441,442,
6,5,-1,0,442,498,1,0,0,0,443,444,6,5,-1,0,444,445,3,92,46,0,445,446,6,
5,-1,0,446,498,1,0,0,0,447,448,6,5,-1,0,448,449,3,22,11,0,449,450,6,5,
-1,0,450,498,1,0,0,0,451,452,6,5,-1,0,452,453,3,338,169,0,453,454,6,5,
-1,0,454,498,1,0,0,0,455,456,6,5,-1,0,456,457,3,346,173,0,457,458,6,5,
-1,0,458,498,1,0,0,0,459,460,6,5,-1,0,460,461,3,360,180,0,461,462,6,5,
-1,0,462,498,1,0,0,0,463,464,6,5,-1,0,464,465,3,64,32,0,465,466,6,5,-1,
0,466,498,1,0,0,0,467,468,6,5,-1,0,468,469,3,156,78,0,469,470,6,5,-1,0,
470,498,1,0,0,0,471,472,3,334,167,0,472,473,6,5,-1,0,473,498,1,0,0,0,474,
475,6,5,-1,0,475,498,3,12,6,0,476,477,6,5,-1,0,477,498,3,14,7,0,478,479,
6,5,-1,0,479,498,3,16,8,0,480,481,6,5,-1,0,481,498,3,18,9,0,482,483,6,
5,-1,0,483,498,3,20,10,0,484,485,6,5,-1,0,485,486,3,26,13,0,486,487,6,
5,-1,0,487,498,1,0,0,0,488,489,6,5,-1,0,489,490,3,42,21,0,490,491,6,5,
-1,0,491,498,1,0,0,0,492,493,6,5,-1,0,493,498,3,40,20,0,494,498,3,30,15,
0,495,496,6,5,-1,0,496,498,3,24,12,0,497,411,1,0,0,0,497,416,1,0,0,0,497,
421,1,0,0,0,497,426,1,0,0,0,497,427,1,0,0,0,497,431,1,0,0,0,497,435,1,
0,0,0,497,439,1,0,0,0,497,443,1,0,0,0,497,447,1,0,0,0,497,451,1,0,0,0,
497,455,1,0,0,0,497,459,1,0,0,0,497,463,1,0,0,0,497,467,1,0,0,0,497,471,
1,0,0,0,497,474,1,0,0,0,497,476,1,0,0,0,497,478,1,0,0,0,497,480,1,0,0,
0,497,482,1,0,0,0,497,484,1,0,0,0,497,488,1,0,0,0,497,492,1,0,0,0,497,
494,1,0,0,0,497,495,1,0,0,0,498,11,1,0,0,0,499,500,5,19,0,0,500,501,3,
32,16,0,501,502,6,6,-1,0,502,13,1,0,0,0,503,504,5,20,0,0,504,505,3,32,
16,0,505,506,6,7,-1,0,506,15,1,0,0,0,507,508,5,21,0,0,508,509,5,22,0,0,
509,510,3,32,16,0,510,511,6,8,-1,0,511,17,1,0,0,0,512,513,5,23,0,0,513,
514,3,34,17,0,514,515,6,9,-1,0,515,19,1,0,0,0,516,517,5,24,0,0,517,518,
3,34,17,0,518,519,6,10,-1,0,519,21,1,0,0,0,520,521,5,25,0,0,521,522,3,
100,50,0,522,523,3,2,1,0,523,524,5,17,0,0,524,525,3,122,61,0,525,526,5,
18,0,0,526,527,6,11,-1,0,527,23,1,0,0,0,528,529,5,26,0,0,529,25,1,0,0,
0,530,531,5,27,0,0,531,532,3,28,14,0,532,533,6,13,-1,0,533,549,1,0,0,0,
534,535,5,27,0,0,535,536,3,28,14,0,536,537,5,28,0,0,537,538,3,28,14,0,
538,539,6,13,-1,0,539,549,1,0,0,0,540,541,5,27,0,0,541,542,3,28,14,0,542,
543,5,28,0,0,543,544,3,28,14,0,544,545,5,28,0,0,545,546,3,28,14,0,546,
547,6,13,-1,0,547,549,1,0,0,0,548,530,1,0,0,0,548,534,1,0,0,0,548,540,
1,0,0,0,549,27,1,0,0,0,550,551,5,263,0,0,551,29,1,0,0,0,552,553,5,29,0,
0,553,559,5,17,0,0,554,555,3,118,59,0,555,556,6,15,-1,0,556,558,1,0,0,
0,557,554,1,0,0,0,558,561,1,0,0,0,559,557,1,0,0,0,559,560,1,0,0,0,560,
562,1,0,0,0,561,559,1,0,0,0,562,563,5,18,0,0,563,31,1,0,0,0,564,565,5,
172,0,0,565,33,1,0,0,0,566,567,7,2,0,0,567,35,1,0,0,0,568,569,5,174,0,
0,569,590,6,18,-1,0,570,571,3,32,16,0,571,572,5,264,0,0,572,573,6,18,-1,
0,573,590,1,0,0,0,574,575,3,32,16,0,575,576,6,18,-1,0,576,590,1,0,0,0,
577,578,5,187,0,0,578,579,5,30,0,0,579,580,3,32,16,0,580,581,5,31,0,0,
581,582,6,18,-1,0,582,590,1,0,0,0,583,584,5,188,0,0,584,585,5,30,0,0,585,
586,3,34,17,0,586,587,5,31,0,0,587,588,6,18,-1,0,588,590,1,0,0,0,589,568,
1,0,0,0,589,570,1,0,0,0,589,574,1,0,0,0,589,577,1,0,0,0,589,583,1,0,0,
0,590,37,1,0,0,0,591,592,3,32,16,0,592,593,6,19,-1,0,593,597,1,0,0,0,594,
595,5,261,0,0,595,597,6,19,-1,0,596,591,1,0,0,0,596,594,1,0,0,0,597,39,
1,0,0,0,598,599,5,266,0,0,599,615,5,288,0,0,600,601,5,266,0,0,601,602,
5,288,0,0,602,615,5,262,0,0,603,604,5,267,0,0,604,615,5,288,0,0,605,606,
5,268,0,0,606,615,5,288,0,0,607,608,5,269,0,0,608,615,5,288,0,0,609,615,
5,270,0,0,610,615,5,271,0,0,611,612,5,272,0,0,612,615,5,262,0,0,613,615,
5,32,0,0,614,598,1,0,0,0,614,600,1,0,0,0,614,603,1,0,0,0,614,605,1,0,0,
0,614,607,1,0,0,0,614,609,1,0,0,0,614,610,1,0,0,0,614,611,1,0,0,0,614,
613,1,0,0,0,615,41,1,0,0,0,616,617,5,33,0,0,617,618,3,142,71,0,618,619,
5,34,0,0,619,620,3,2,1,0,620,621,6,21,-1,0,621,647,1,0,0,0,622,623,5,33,
0,0,623,624,3,118,59,0,624,625,5,34,0,0,625,626,3,2,1,0,626,627,6,21,-1,
0,627,647,1,0,0,0,628,629,5,33,0,0,629,630,3,180,90,0,630,631,5,34,0,0,
631,632,3,2,1,0,632,633,6,21,-1,0,633,647,1,0,0,0,634,635,5,33,0,0,635,
636,3,44,22,0,636,637,5,34,0,0,637,638,3,2,1,0,638,639,6,21,-1,0,639,647,
1,0,0,0,640,641,5,33,0,0,641,642,3,46,23,0,642,643,5,34,0,0,643,644,3,
2,1,0,644,645,6,21,-1,0,645,647,1,0,0,0,646,616,1,0,0,0,646,622,1,0,0,
0,646,628,1,0,0,0,646,634,1,0,0,0,646,640,1,0,0,0,647,43,1,0,0,0,648,649,
5,35,0,0,649,650,3,48,24,0,650,651,6,22,-1,0,651,675,1,0,0,0,652,653,5,
35,0,0,653,654,3,48,24,0,654,655,5,36,0,0,655,656,3,6,3,0,656,657,6,22,
-1,0,657,675,1,0,0,0,658,659,5,35,0,0,659,660,3,48,24,0,660,661,5,36,0,
0,661,662,5,17,0,0,662,663,3,52,26,0,663,664,5,18,0,0,664,665,6,22,-1,
0,665,675,1,0,0,0,666,667,5,35,0,0,667,668,3,48,24,0,668,669,5,36,0,0,
669,670,5,30,0,0,670,671,3,304,152,0,671,672,5,31,0,0,672,673,6,22,-1,
0,673,675,1,0,0,0,674,648,1,0,0,0,674,652,1,0,0,0,674,658,1,0,0,0,674,
666,1,0,0,0,675,45,1,0,0,0,676,677,5,35,0,0,677,678,5,30,0,0,678,679,3,
50,25,0,679,680,5,31,0,0,680,681,3,48,24,0,681,682,6,23,-1,0,682,715,1,
0,0,0,683,684,5,35,0,0,684,685,5,30,0,0,685,686,3,50,25,0,686,687,5,31,
0,0,687,688,3,48,24,0,688,689,5,36,0,0,689,690,3,6,3,0,690,691,6,23,-1,
0,691,715,1,0,0,0,692,693,5,35,0,0,693,694,5,30,0,0,694,695,3,50,25,0,
695,696,5,31,0,0,696,697,3,48,24,0,697,698,5,36,0,0,698,699,5,17,0,0,699,
700,3,52,26,0,700,701,5,18,0,0,701,702,6,23,-1,0,702,715,1,0,0,0,703,704,
5,35,0,0,704,705,5,30,0,0,705,706,3,50,25,0,706,707,5,31,0,0,707,708,3,
48,24,0,708,709,5,36,0,0,709,710,5,30,0,0,710,711,3,304,152,0,711,712,
5,31,0,0,712,713,6,23,-1,0,713,715,1,0,0,0,714,676,1,0,0,0,714,683,1,0,
0,0,714,692,1,0,0,0,714,703,1,0,0,0,715,47,1,0,0,0,716,717,3,172,86,0,
717,718,6,24,-1,0,718,49,1,0,0,0,719,720,3,128,64,0,720,721,6,25,-1,0,
721,726,1,0,0,0,722,723,3,180,90,0,723,724,6,25,-1,0,724,726,1,0,0,0,725,
719,1,0,0,0,725,722,1,0,0,0,726,51,1,0,0,0,727,728,3,54,27,0,728,729,3,
56,28,0,729,730,6,26,-1,0,730,53,1,0,0,0,731,732,3,310,155,0,732,733,6,
27,-1,0,733,736,1,0,0,0,734,736,3,40,20,0,735,731,1,0,0,0,735,734,1,0,
0,0,736,739,1,0,0,0,737,735,1,0,0,0,737,738,1,0,0,0,738,55,1,0,0,0,739,
737,1,0,0,0,740,741,3,58,29,0,741,742,3,60,30,0,742,743,3,2,1,0,743,744,
5,36,0,0,744,745,3,310,155,0,745,746,6,28,-1,0,746,749,1,0,0,0,747,749,
3,40,20,0,748,740,1,0,0,0,748,747,1,0,0,0,749,752,1,0,0,0,750,748,1,0,
0,0,750,751,1,0,0,0,751,57,1,0,0,0,752,750,1,0,0,0,753,754,7,3,0,0,754,
755,6,29,-1,0,755,59,1,0,0,0,756,758,3,62,31,0,757,759,5,260,0,0,758,757,
1,0,0,0,758,759,1,0,0,0,759,760,1,0,0,0,760,761,6,30,-1,0,761,61,1,0,0,
0,762,763,3,148,74,0,763,764,6,31,-1,0,764,781,1,0,0,0,765,766,3,2,1,0,
766,767,6,31,-1,0,767,781,1,0,0,0,768,769,5,195,0,0,769,781,6,31,-1,0,
770,771,5,196,0,0,771,781,6,31,-1,0,772,773,5,201,0,0,773,774,5,39,0,0,
774,775,5,263,0,0,775,781,6,31,-1,0,776,777,5,201,0,0,777,778,3,118,59,
0,778,779,6,31,-1,0,779,781,1,0,0,0,780,762,1,0,0,0,780,765,1,0,0,0,780,
768,1,0,0,0,780,770,1,0,0,0,780,772,1,0,0,0,780,776,1,0,0,0,781,63,1,0,
0,0,782,783,5,197,0,0,783,784,5,40,0,0,784,785,3,2,1,0,785,786,6,32,-1,
0,786,794,1,0,0,0,787,788,5,197,0,0,788,789,3,2,1,0,789,790,6,32,-1,0,
790,794,1,0,0,0,791,792,5,197,0,0,792,794,6,32,-1,0,793,782,1,0,0,0,793,
787,1,0,0,0,793,791,1,0,0,0,794,65,1,0,0,0,795,796,5,41,0,0,796,797,5,
42,0,0,797,798,3,32,16,0,798,799,5,43,0,0,799,800,3,68,34,0,800,801,5,
44,0,0,801,802,3,0,0,0,802,803,6,33,-1,0,803,67,1,0,0,0,804,805,3,70,35,
0,805,806,6,34,-1,0,806,808,1,0,0,0,807,804,1,0,0,0,808,811,1,0,0,0,809,
807,1,0,0,0,809,810,1,0,0,0,810,812,1,0,0,0,811,809,1,0,0,0,812,813,6,
34,-1,0,813,69,1,0,0,0,814,815,7,4,0,0,815,71,1,0,0,0,816,817,5,48,0,0,
817,818,5,36,0,0,818,819,5,30,0,0,819,820,3,304,152,0,820,821,5,31,0,0,
821,822,6,36,-1,0,822,73,1,0,0,0,823,824,5,49,0,0,824,825,3,2,1,0,825,
826,6,37,-1,0,826,75,1,0,0,0,827,833,5,50,0,0,828,829,3,78,39,0,829,830,
6,38,-1,0,830,832,1,0,0,0,831,828,1,0,0,0,832,835,1,0,0,0,833,831,1,0,
0,0,833,834,1,0,0,0,834,836,1,0,0,0,835,833,1,0,0,0,836,837,3,2,1,0,837,
838,3,186,93,0,838,839,3,80,40,0,839,840,3,82,41,0,840,841,6,38,-1,0,841,
77,1,0,0,0,842,843,5,51,0,0,843,907,6,39,-1,0,844,845,5,52,0,0,845,907,
6,39,-1,0,846,847,5,198,0,0,847,907,6,39,-1,0,848,849,5,201,0,0,849,907,
6,39,-1,0,850,851,5,220,0,0,851,907,6,39,-1,0,852,853,5,53,0,0,853,907,
6,39,-1,0,854,855,5,54,0,0,855,907,6,39,-1,0,856,857,5,55,0,0,857,907,
6,39,-1,0,858,859,5,56,0,0,859,907,6,39,-1,0,860,861,5,243,0,0,861,907,
6,39,-1,0,862,863,5,15,0,0,863,907,6,39,-1,0,864,865,5,223,0,0,865,907,
6,39,-1,0,866,867,5,57,0,0,867,907,6,39,-1,0,868,869,5,58,0,0,869,907,
6,39,-1,0,870,871,5,59,0,0,871,907,6,39,-1,0,872,873,5,60,0,0,873,907,
6,39,-1,0,874,875,5,61,0,0,875,907,6,39,-1,0,876,877,5,62,0,0,877,878,
5,51,0,0,878,907,6,39,-1,0,879,880,5,62,0,0,880,881,5,52,0,0,881,907,6,
39,-1,0,882,883,5,62,0,0,883,884,5,63,0,0,884,907,6,39,-1,0,885,886,5,
62,0,0,886,887,5,64,0,0,887,907,6,39,-1,0,888,889,5,62,0,0,889,890,5,65,
0,0,890,907,6,39,-1,0,891,892,5,62,0,0,892,893,5,66,0,0,893,907,6,39,-1,
0,894,895,5,67,0,0,895,907,6,39,-1,0,896,897,5,68,0,0,897,907,6,39,-1,
0,898,899,5,69,0,0,899,907,6,39,-1,0,900,901,5,70,0,0,901,902,5,30,0,0,
902,903,3,32,16,0,903,904,5,31,0,0,904,905,6,39,-1,0,905,907,1,0,0,0,906,
842,1,0,0,0,906,844,1,0,0,0,906,846,1,0,0,0,906,848,1,0,0,0,906,850,1,
0,0,0,906,852,1,0,0,0,906,854,1,0,0,0,906,856,1,0,0,0,906,858,1,0,0,0,
906,860,1,0,0,0,906,862,1,0,0,0,906,864,1,0,0,0,906,866,1,0,0,0,906,868,
1,0,0,0,906,870,1,0,0,0,906,872,1,0,0,0,906,874,1,0,0,0,906,876,1,0,0,
0,906,879,1,0,0,0,906,882,1,0,0,0,906,885,1,0,0,0,906,888,1,0,0,0,906,
891,1,0,0,0,906,894,1,0,0,0,906,896,1,0,0,0,906,898,1,0,0,0,906,900,1,
0,0,0,907,79,1,0,0,0,908,914,1,0,0,0,909,910,5,71,0,0,910,911,3,126,63,
0,911,912,6,40,-1,0,912,914,1,0,0,0,913,908,1,0,0,0,913,909,1,0,0,0,914,
81,1,0,0,0,915,921,1,0,0,0,916,917,5,72,0,0,917,918,3,86,43,0,918,919,
6,41,-1,0,919,921,1,0,0,0,920,915,1,0,0,0,920,916,1,0,0,0,921,83,1,0,0,
0,922,924,3,202,101,0,923,922,1,0,0,0,924,927,1,0,0,0,925,923,1,0,0,0,
925,926,1,0,0,0,926,85,1,0,0,0,927,925,1,0,0,0,928,929,3,126,63,0,929,
930,6,43,-1,0,930,931,5,28,0,0,931,933,1,0,0,0,932,928,1,0,0,0,933,936,
1,0,0,0,934,932,1,0,0,0,934,935,1,0,0,0,935,937,1,0,0,0,936,934,1,0,0,
0,937,938,3,126,63,0,938,939,6,43,-1,0,939,87,1,0,0,0,940,941,7,5,0,0,
941,89,1,0,0,0,942,943,3,88,44,0,943,945,3,32,16,0,944,946,7,6,0,0,945,
944,1,0,0,0,945,946,1,0,0,0,946,947,1,0,0,0,947,948,6,45,-1,0,948,994,
1,0,0,0,949,950,3,88,44,0,950,951,3,32,16,0,951,952,5,75,0,0,952,954,3,
32,16,0,953,955,5,263,0,0,954,953,1,0,0,0,954,955,1,0,0,0,955,956,1,0,
0,0,956,957,6,45,-1,0,957,994,1,0,0,0,958,959,3,88,44,0,959,960,3,32,16,
0,960,961,5,75,0,0,961,962,3,32,16,0,962,963,5,28,0,0,963,965,3,32,16,
0,964,966,5,263,0,0,965,964,1,0,0,0,965,966,1,0,0,0,966,967,1,0,0,0,967,
968,6,45,-1,0,968,994,1,0,0,0,969,970,3,88,44,0,970,971,3,32,16,0,971,
972,5,28,0,0,972,973,3,32,16,0,973,974,5,75,0,0,974,976,3,32,16,0,975,
977,5,263,0,0,976,975,1,0,0,0,976,977,1,0,0,0,977,978,1,0,0,0,978,979,
6,45,-1,0,979,994,1,0,0,0,980,981,3,88,44,0,981,982,3,32,16,0,982,983,
5,28,0,0,983,984,3,32,16,0,984,985,5,75,0,0,985,986,3,32,16,0,986,987,
5,28,0,0,987,989,3,32,16,0,988,990,5,263,0,0,989,988,1,0,0,0,989,990,1,
0,0,0,990,991,1,0,0,0,991,992,6,45,-1,0,992,994,1,0,0,0,993,942,1,0,0,
0,993,949,1,0,0,0,993,958,1,0,0,0,993,969,1,0,0,0,993,980,1,0,0,0,994,
91,1,0,0,0,995,1001,5,21,0,0,996,997,3,94,47,0,997,998,6,46,-1,0,998,1000,
1,0,0,0,999,996,1,0,0,0,1000,1003,1,0,0,0,1001,999,1,0,0,0,1001,1002,1,
0,0,0,1002,1004,1,0,0,0,1003,1001,1,0,0,0,1004,1005,3,2,1,0,1005,1006,
6,46,-1,0,1006,1007,3,96,48,0,1007,1017,6,46,-1,0,1008,1009,5,179,0,0,
1009,1010,5,36,0,0,1010,1011,5,30,0,0,1011,1012,3,304,152,0,1012,1013,
5,31,0,0,1013,1014,6,46,-1,0,1014,1015,3,96,48,0,1015,1016,6,46,-1,0,1016,
1018,1,0,0,0,1017,1008,1,0,0,0,1017,1018,1,0,0,0,1018,93,1,0,0,0,1019,
1020,5,76,0,0,1020,95,1,0,0,0,1021,1025,1,0,0,0,1022,1023,5,297,0,0,1023,
1025,6,48,-1,0,1024,1021,1,0,0,0,1024,1022,1,0,0,0,1025,97,1,0,0,0,1026,
1027,7,7,0,0,1027,99,1,0,0,0,1028,1029,3,98,49,0,1029,1030,6,50,-1,0,1030,
1032,1,0,0,0,1031,1028,1,0,0,0,1032,1035,1,0,0,0,1033,1031,1,0,0,0,1033,
1034,1,0,0,0,1034,101,1,0,0,0,1035,1033,1,0,0,0,1036,1062,3,104,52,0,1037,
1038,5,279,0,0,1038,1039,3,172,86,0,1039,1040,6,51,-1,0,1040,1062,1,0,
0,0,1041,1042,5,285,0,0,1042,1043,3,182,91,0,1043,1044,6,51,-1,0,1044,
1062,1,0,0,0,1045,1046,5,285,0,0,1046,1047,3,178,89,0,1047,1048,6,51,-1,
0,1048,1062,1,0,0,0,1049,1050,5,283,0,0,1050,1051,3,126,63,0,1051,1052,
6,51,-1,0,1052,1062,1,0,0,0,1053,1054,5,280,0,0,1054,1055,3,106,53,0,1055,
1056,6,51,-1,0,1056,1062,1,0,0,0,1057,1058,5,286,0,0,1058,1059,3,50,25,
0,1059,1060,6,51,-1,0,1060,1062,1,0,0,0,1061,1036,1,0,0,0,1061,1037,1,
0,0,0,1061,1041,1,0,0,0,1061,1045,1,0,0,0,1061,1049,1,0,0,0,1061,1053,
1,0,0,0,1061,1057,1,0,0,0,1062,103,1,0,0,0,1063,1064,5,274,0,0,1064,1142,
6,52,-1,0,1065,1066,5,275,0,0,1066,1067,3,32,16,0,1067,1068,6,52,-1,0,
1068,1142,1,0,0,0,1069,1070,5,275,0,0,1070,1071,3,0,0,0,1071,1072,6,52,
-1,0,1072,1142,1,0,0,0,1073,1074,5,276,0,0,1074,1075,3,32,16,0,1075,1076,
6,52,-1,0,1076,1142,1,0,0,0,1077,1078,5,277,0,0,1078,1079,3,34,17,0,1079,
1080,6,52,-1,0,1080,1142,1,0,0,0,1081,1082,5,278,0,0,1082,1083,3,36,18,
0,1083,1084,6,52,-1,0,1084,1142,1,0,0,0,1085,1086,5,278,0,0,1086,1087,
3,34,17,0,1087,1088,6,52,-1,0,1088,1142,1,0,0,0,1089,1090,5,278,0,0,1090,
1091,5,30,0,0,1091,1092,3,304,152,0,1092,1093,5,31,0,0,1093,1094,6,52,
-1,0,1094,1142,1,0,0,0,1095,1096,5,278,0,0,1096,1097,5,84,0,0,1097,1098,
5,30,0,0,1098,1099,3,304,152,0,1099,1100,5,31,0,0,1100,1101,6,52,-1,0,
1101,1142,1,0,0,0,1102,1103,5,281,0,0,1103,1104,3,32,16,0,1104,1105,6,
52,-1,0,1105,1142,1,0,0,0,1106,1107,5,281,0,0,1107,1108,3,0,0,0,1108,1109,
6,52,-1,0,1109,1142,1,0,0,0,1110,1111,5,284,0,0,1111,1112,3,6,3,0,1112,
1113,6,52,-1,0,1113,1142,1,0,0,0,1114,1115,5,284,0,0,1115,1116,5,223,0,
0,1116,1117,5,30,0,0,1117,1118,3,6,3,0,1118,1119,5,31,0,0,1119,1120,6,
52,-1,0,1120,1142,1,0,0,0,1121,1122,5,284,0,0,1122,1123,5,84,0,0,1123,
1124,5,30,0,0,1124,1125,3,304,152,0,1125,1126,5,31,0,0,1126,1127,6,52,
-1,0,1127,1142,1,0,0,0,1128,1129,5,286,0,0,1129,1130,3,32,16,0,1130,1131,
6,52,-1,0,1131,1142,1,0,0,0,1132,1133,5,282,0,0,1133,1139,6,52,-1,0,1134,
1135,5,30,0,0,1135,1136,3,108,54,0,1136,1137,5,31,0,0,1137,1140,1,0,0,
0,1138,1140,5,85,0,0,1139,1134,1,0,0,0,1139,1138,1,0,0,0,1140,1142,1,0,
0,0,1141,1063,1,0,0,0,1141,1065,1,0,0,0,1141,1069,1,0,0,0,1141,1073,1,
0,0,0,1141,1077,1,0,0,0,1141,1081,1,0,0,0,1141,1085,1,0,0,0,1141,1089,
1,0,0,0,1141,1095,1,0,0,0,1141,1102,1,0,0,0,1141,1106,1,0,0,0,1141,1110,
1,0,0,0,1141,1114,1,0,0,0,1141,1121,1,0,0,0,1141,1128,1,0,0,0,1141,1132,
1,0,0,0,1142,105,1,0,0,0,1143,1144,3,174,87,0,1144,1145,3,142,71,0,1145,
1146,3,114,57,0,1146,1147,6,53,-1,0,1147,107,1,0,0,0,1148,1173,1,0,0,0,
1149,1150,3,0,0,0,1150,1151,6,54,-1,0,1151,1156,1,0,0,0,1152,1153,3,32,
16,0,1153,1154,6,54,-1,0,1154,1156,1,0,0,0,1155,1149,1,0,0,0,1155,1152,
1,0,0,0,1156,1157,1,0,0,0,1157,1158,5,28,0,0,1158,1160,1,0,0,0,1159,1155,
1,0,0,0,1160,1163,1,0,0,0,1161,1159,1,0,0,0,1161,1162,1,0,0,0,1162,1170,
1,0,0,0,1163,1161,1,0,0,0,1164,1165,3,0,0,0,1165,1166,6,54,-1,0,1166,1171,
1,0,0,0,1167,1168,3,32,16,0,1168,1169,6,54,-1,0,1169,1171,1,0,0,0,1170,
1164,1,0,0,0,1170,1167,1,0,0,0,1171,1173,1,0,0,0,1172,1148,1,0,0,0,1172,
1161,1,0,0,0,1173,109,1,0,0,0,1174,1181,5,86,0,0,1175,1176,3,142,71,0,
1176,1177,6,55,-1,0,1177,1178,5,28,0,0,1178,1180,1,0,0,0,1179,1175,1,0,
0,0,1180,1183,1,0,0,0,1181,1179,1,0,0,0,1181,1182,1,0,0,0,1182,1184,1,
0,0,0,1183,1181,1,0,0,0,1184,1185,3,142,71,0,1185,1186,6,55,-1,0,1186,
1187,5,87,0,0,1187,111,1,0,0,0,1188,1195,5,42,0,0,1189,1190,3,150,75,0,
1190,1191,6,56,-1,0,1191,1192,5,28,0,0,1192,1194,1,0,0,0,1193,1189,1,0,
0,0,1194,1197,1,0,0,0,1195,1193,1,0,0,0,1195,1196,1,0,0,0,1196,1198,1,
0,0,0,1197,1195,1,0,0,0,1198,1199,3,150,75,0,1199,1200,6,56,-1,0,1200,
1201,5,43,0,0,1201,113,1,0,0,0,1202,1209,5,30,0,0,1203,1204,3,116,58,0,
1204,1205,6,57,-1,0,1205,1206,5,28,0,0,1206,1208,1,0,0,0,1207,1203,1,0,
0,0,1208,1211,1,0,0,0,1209,1207,1,0,0,0,1209,1210,1,0,0,0,1210,1212,1,
0,0,0,1211,1209,1,0,0,0,1212,1213,3,116,58,0,1213,1214,6,57,-1,0,1214,
1215,5,31,0,0,1215,1218,1,0,0,0,1216,1218,5,85,0,0,1217,1202,1,0,0,0,1217,
1216,1,0,0,0,1218,115,1,0,0,0,1219,1220,5,176,0,0,1220,1230,6,58,-1,0,
1221,1222,3,234,117,0,1222,1223,3,142,71,0,1223,1225,3,230,115,0,1224,
1226,3,0,0,0,1225,1224,1,0,0,0,1225,1226,1,0,0,0,1226,1227,1,0,0,0,1227,
1228,6,58,-1,0,1228,1230,1,0,0,0,1229,1219,1,0,0,0,1229,1221,1,0,0,0,1230,
117,1,0,0,0,1231,1232,5,42,0,0,1232,1233,3,2,1,0,1233,1234,5,43,0,0,1234,
1235,3,120,60,0,1235,1236,6,59,-1,0,1236,1269,1,0,0,0,1237,1238,5,42,0,
0,1238,1239,3,178,89,0,1239,1240,5,43,0,0,1240,1241,3,120,60,0,1241,1242,
6,59,-1,0,1242,1269,1,0,0,0,1243,1244,5,42,0,0,1244,1245,5,261,0,0,1245,
1246,5,43,0,0,1246,1247,3,120,60,0,1247,1248,6,59,-1,0,1248,1269,1,0,0,
0,1249,1250,5,42,0,0,1250,1251,5,197,0,0,1251,1252,3,2,1,0,1252,1253,5,
43,0,0,1253,1254,3,120,60,0,1254,1255,6,59,-1,0,1255,1269,1,0,0,0,1256,
1257,3,120,60,0,1257,1258,6,59,-1,0,1258,1269,1,0,0,0,1259,1260,3,178,
89,0,1260,1261,6,59,-1,0,1261,1269,1,0,0,0,1262,1263,5,256,0,0,1263,1269,
6,59,-1,0,1264,1265,5,257,0,0,1265,1269,6,59,-1,0,1266,1267,5,258,0,0,
1267,1269,6,59,-1,0,1268,1231,1,0,0,0,1268,1237,1,0,0,0,1268,1243,1,0,
0,0,1268,1249,1,0,0,0,1268,1256,1,0,0,0,1268,1259,1,0,0,0,1268,1262,1,
0,0,0,1268,1264,1,0,0,0,1268,1266,1,0,0,0,1269,119,1,0,0,0,1270,1271,3,
2,1,0,1271,1272,6,60,-1,0,1272,1273,5,88,0,0,1273,1275,1,0,0,0,1274,1270,
1,0,0,0,1275,1278,1,0,0,0,1276,1274,1,0,0,0,1276,1277,1,0,0,0,1277,1279,
1,0,0,0,1278,1276,1,0,0,0,1279,1280,3,2,1,0,1280,1281,6,60,-1,0,1281,121,
1,0,0,0,1282,1283,3,124,62,0,1283,1284,6,61,-1,0,1284,1286,1,0,0,0,1285,
1282,1,0,0,0,1286,1289,1,0,0,0,1287,1285,1,0,0,0,1287,1288,1,0,0,0,1288,
123,1,0,0,0,1289,1287,1,0,0,0,1290,1291,5,179,0,0,1291,1292,5,89,0,0,1292,
1293,3,32,16,0,1293,1294,6,62,-1,0,1294,1302,1,0,0,0,1295,1296,3,156,78,
0,1296,1297,6,62,-1,0,1297,1302,1,0,0,0,1298,1299,3,336,168,0,1299,1300,
6,62,-1,0,1300,1302,1,0,0,0,1301,1290,1,0,0,0,1301,1295,1,0,0,0,1301,1298,
1,0,0,0,1302,125,1,0,0,0,1303,1304,3,118,59,0,1304,1305,6,63,-1,0,1305,
1310,1,0,0,0,1306,1307,3,142,71,0,1307,1308,6,63,-1,0,1308,1310,1,0,0,
0,1309,1303,1,0,0,0,1309,1306,1,0,0,0,1310,127,1,0,0,0,1311,1312,3,126,
63,0,1312,1313,6,64,-1,0,1313,1326,1,0,0,0,1314,1315,5,42,0,0,1315,1316,
3,2,1,0,1316,1317,5,43,0,0,1317,1318,6,64,-1,0,1318,1326,1,0,0,0,1319,
1320,5,42,0,0,1320,1321,5,197,0,0,1321,1322,3,2,1,0,1322,1323,5,43,0,0,
1323,1324,6,64,-1,0,1324,1326,1,0,0,0,1325,1311,1,0,0,0,1325,1314,1,0,
0,0,1325,1319,1,0,0,0,1326,129,1,0,0,0,1327,1339,1,0,0,0,1328,1329,3,134,
67,0,1329,1335,6,65,-1,0,1330,1331,3,132,66,0,1331,1332,6,65,-1,0,1332,
1334,1,0,0,0,1333,1330,1,0,0,0,1334,1337,1,0,0,0,1335,1333,1,0,0,0,1335,
1336,1,0,0,0,1336,1339,1,0,0,0,1337,1335,1,0,0,0,1338,1327,1,0,0,0,1338,
1328,1,0,0,0,1339,131,1,0,0,0,1340,1341,5,261,0,0,1341,1363,6,66,-1,0,
1342,1343,5,260,0,0,1343,1363,6,66,-1,0,1344,1345,5,42,0,0,1345,1346,3,
32,16,0,1346,1347,5,43,0,0,1347,1348,6,66,-1,0,1348,1363,1,0,0,0,1349,
1350,5,42,0,0,1350,1351,3,32,16,0,1351,1352,5,265,0,0,1352,1353,3,32,16,
0,1353,1354,5,43,0,0,1354,1355,6,66,-1,0,1355,1363,1,0,0,0,1356,1357,5,
42,0,0,1357,1358,5,265,0,0,1358,1359,3,32,16,0,1359,1360,5,43,0,0,1360,
1361,6,66,-1,0,1361,1363,1,0,0,0,1362,1340,1,0,0,0,1362,1342,1,0,0,0,1362,
1344,1,0,0,0,1362,1349,1,0,0,0,1362,1356,1,0,0,0,1363,133,1,0,0,0,1364,
1510,6,67,-1,0,1365,1366,5,202,0,0,1366,1367,5,30,0,0,1367,1368,3,6,3,
0,1368,1369,5,28,0,0,1369,1370,3,6,3,0,1370,1371,5,28,0,0,1371,1372,3,
6,3,0,1372,1373,5,28,0,0,1373,1374,3,6,3,0,1374,1375,5,31,0,0,1375,1376,
6,67,-1,0,1376,1510,1,0,0,0,1377,1378,5,202,0,0,1378,1379,5,30,0,0,1379,
1380,3,6,3,0,1380,1381,5,28,0,0,1381,1382,3,6,3,0,1382,1383,5,31,0,0,1383,
1384,6,67,-1,0,1384,1510,1,0,0,0,1385,1386,5,203,0,0,1386,1387,5,204,0,
0,1387,1388,5,42,0,0,1388,1389,3,32,16,0,1389,1390,5,43,0,0,1390,1391,
6,67,-1,0,1391,1510,1,0,0,0,1392,1393,5,203,0,0,1393,1394,5,205,0,0,1394,
1395,5,42,0,0,1395,1396,3,32,16,0,1396,1397,5,43,0,0,1397,1398,3,130,65,
0,1398,1399,6,67,-1,0,1399,1510,1,0,0,0,1400,1401,5,206,0,0,1401,1510,
6,67,-1,0,1402,1403,5,207,0,0,1403,1510,6,67,-1,0,1404,1405,5,208,0,0,
1405,1510,6,67,-1,0,1406,1407,5,200,0,0,1407,1510,6,67,-1,0,1408,1409,
5,182,0,0,1409,1510,6,67,-1,0,1410,1411,5,183,0,0,1411,1510,6,67,-1,0,
1412,1413,5,184,0,0,1413,1510,6,67,-1,0,1414,1415,5,185,0,0,1415,1510,
6,67,-1,0,1416,1417,5,186,0,0,1417,1510,6,67,-1,0,1418,1419,5,187,0,0,
1419,1510,6,67,-1,0,1420,1421,5,188,0,0,1421,1510,6,67,-1,0,1422,1423,
5,209,0,0,1423,1510,6,67,-1,0,1424,1425,5,189,0,0,1425,1510,6,67,-1,0,
1426,1427,5,190,0,0,1427,1510,6,67,-1,0,1428,1429,5,191,0,0,1429,1510,
6,67,-1,0,1430,1431,5,192,0,0,1431,1510,6,67,-1,0,1432,1433,5,210,0,0,
1433,1510,6,67,-1,0,1434,1435,5,211,0,0,1435,1510,6,67,-1,0,1436,1437,
5,212,0,0,1437,1510,6,67,-1,0,1438,1439,5,213,0,0,1439,1510,6,67,-1,0,
1440,1441,5,214,0,0,1441,1510,6,67,-1,0,1442,1443,5,215,0,0,1443,1510,
6,67,-1,0,1444,1445,5,216,0,0,1445,1510,6,67,-1,0,1446,1447,5,217,0,0,
1447,1448,3,136,68,0,1448,1449,6,67,-1,0,1449,1510,1,0,0,0,1450,1451,5,
218,0,0,1451,1452,3,136,68,0,1452,1453,6,67,-1,0,1453,1510,1,0,0,0,1454,
1455,5,219,0,0,1455,1510,6,67,-1,0,1456,1457,5,220,0,0,1457,1458,3,136,
68,0,1458,1459,6,67,-1,0,1459,1510,1,0,0,0,1460,1461,5,221,0,0,1461,1462,
3,138,69,0,1462,1463,6,67,-1,0,1463,1510,1,0,0,0,1464,1465,5,221,0,0,1465,
1466,3,138,69,0,1466,1467,5,28,0,0,1467,1468,3,6,3,0,1468,1469,6,67,-1,
0,1469,1510,1,0,0,0,1470,1471,5,193,0,0,1471,1510,6,67,-1,0,1472,1473,
5,194,0,0,1473,1510,6,67,-1,0,1474,1475,5,90,0,0,1475,1476,5,183,0,0,1476,
1510,6,67,-1,0,1477,1478,5,90,0,0,1478,1479,5,184,0,0,1479,1510,6,67,-1,
0,1480,1481,5,90,0,0,1481,1482,5,185,0,0,1482,1510,6,67,-1,0,1483,1484,
5,90,0,0,1484,1485,5,186,0,0,1485,1510,6,67,-1,0,1486,1487,5,62,0,0,1487,
1488,5,219,0,0,1488,1510,6,67,-1,0,1489,1490,5,222,0,0,1490,1510,6,67,
-1,0,1491,1492,5,223,0,0,1492,1493,5,212,0,0,1493,1510,6,67,-1,0,1494,
1495,5,224,0,0,1495,1510,6,67,-1,0,1496,1497,5,206,0,0,1497,1498,5,182,
0,0,1498,1510,6,67,-1,0,1499,1500,5,225,0,0,1500,1510,6,67,-1,0,1501,1502,
5,227,0,0,1502,1510,6,67,-1,0,1503,1504,5,34,0,0,1504,1505,5,226,0,0,1505,
1510,6,67,-1,0,1506,1507,3,2,1,0,1507,1508,6,67,-1,0,1508,1510,1,0,0,0,
1509,1364,1,0,0,0,1509,1365,1,0,0,0,1509,1377,1,0,0,0,1509,1385,1,0,0,
0,1509,1392,1,0,0,0,1509,1400,1,0,0,0,1509,1402,1,0,0,0,1509,1404,1,0,
0,0,1509,1406,1,0,0,0,1509,1408,1,0,0,0,1509,1410,1,0,0,0,1509,1412,1,
0,0,0,1509,1414,1,0,0,0,1509,1416,1,0,0,0,1509,1418,1,0,0,0,1509,1420,
1,0,0,0,1509,1422,1,0,0,0,1509,1424,1,0,0,0,1509,1426,1,0,0,0,1509,1428,
1,0,0,0,1509,1430,1,0,0,0,1509,1432,1,0,0,0,1509,1434,1,0,0,0,1509,1436,
1,0,0,0,1509,1438,1,0,0,0,1509,1440,1,0,0,0,1509,1442,1,0,0,0,1509,1444,
1,0,0,0,1509,1446,1,0,0,0,1509,1450,1,0,0,0,1509,1454,1,0,0,0,1509,1456,
1,0,0,0,1509,1460,1,0,0,0,1509,1464,1,0,0,0,1509,1470,1,0,0,0,1509,1472,
1,0,0,0,1509,1474,1,0,0,0,1509,1477,1,0,0,0,1509,1480,1,0,0,0,1509,1483,
1,0,0,0,1509,1486,1,0,0,0,1509,1489,1,0,0,0,1509,1491,1,0,0,0,1509,1494,
1,0,0,0,1509,1496,1,0,0,0,1509,1499,1,0,0,0,1509,1501,1,0,0,0,1509,1503,
1,0,0,0,1509,1506,1,0,0,0,1510,135,1,0,0,0,1511,1520,1,0,0,0,1512,1513,
5,30,0,0,1513,1514,5,91,0,0,1514,1515,5,36,0,0,1515,1516,3,32,16,0,1516,
1517,5,31,0,0,1517,1518,6,68,-1,0,1518,1520,1,0,0,0,1519,1511,1,0,0,0,
1519,1512,1,0,0,0,1520,137,1,0,0,0,1521,1532,1,0,0,0,1522,1523,3,140,70,
0,1523,1528,6,69,-1,0,1524,1525,7,8,0,0,1525,1527,6,69,-1,0,1526,1524,
1,0,0,0,1527,1530,1,0,0,0,1528,1526,1,0,0,0,1528,1529,1,0,0,0,1529,1532,
1,0,0,0,1530,1528,1,0,0,0,1531,1521,1,0,0,0,1531,1522,1,0,0,0,1532,139,
1,0,0,0,1533,1534,5,177,0,0,1534,1614,6,70,-1,0,1535,1536,5,206,0,0,1536,
1614,6,70,-1,0,1537,1538,5,207,0,0,1538,1614,6,70,-1,0,1539,1540,5,200,
0,0,1540,1614,6,70,-1,0,1541,1542,5,182,0,0,1542,1614,6,70,-1,0,1543,1544,
5,183,0,0,1544,1614,6,70,-1,0,1545,1546,5,184,0,0,1546,1614,6,70,-1,0,
1547,1548,5,185,0,0,1548,1614,6,70,-1,0,1549,1550,5,186,0,0,1550,1614,
6,70,-1,0,1551,1552,5,187,0,0,1552,1614,6,70,-1,0,1553,1554,5,188,0,0,
1554,1614,6,70,-1,0,1555,1556,5,189,0,0,1556,1614,6,70,-1,0,1557,1558,
5,190,0,0,1558,1614,6,70,-1,0,1559,1560,5,191,0,0,1560,1614,6,70,-1,0,
1561,1562,5,192,0,0,1562,1614,6,70,-1,0,1563,1564,5,261,0,0,1564,1614,
6,70,-1,0,1565,1566,5,210,0,0,1566,1614,6,70,-1,0,1567,1568,5,211,0,0,
1568,1614,6,70,-1,0,1569,1570,5,212,0,0,1570,1614,6,70,-1,0,1571,1572,
5,213,0,0,1572,1614,6,70,-1,0,1573,1574,5,214,0,0,1574,1614,6,70,-1,0,
1575,1576,5,217,0,0,1576,1614,6,70,-1,0,1577,1578,5,218,0,0,1578,1614,
6,70,-1,0,1579,1580,5,221,0,0,1580,1614,6,70,-1,0,1581,1582,5,193,0,0,
1582,1614,6,70,-1,0,1583,1584,5,194,0,0,1584,1614,6,70,-1,0,1585,1586,
5,209,0,0,1586,1614,6,70,-1,0,1587,1588,5,229,0,0,1588,1614,6,70,-1,0,
1589,1590,5,230,0,0,1590,1614,6,70,-1,0,1591,1592,5,231,0,0,1592,1614,
6,70,-1,0,1593,1594,5,232,0,0,1594,1614,6,70,-1,0,1595,1596,5,233,0,0,
1596,1614,6,70,-1,0,1597,1598,5,234,0,0,1598,1614,6,70,-1,0,1599,1600,
5,235,0,0,1600,1614,6,70,-1,0,1601,1602,5,236,0,0,1602,1614,6,70,-1,0,
1603,1604,5,237,0,0,1604,1614,6,70,-1,0,1605,1606,5,238,0,0,1606,1614,
6,70,-1,0,1607,1608,5,239,0,0,1608,1614,6,70,-1,0,1609,1610,5,240,0,0,
1610,1614,6,70,-1,0,1611,1612,5,241,0,0,1612,1614,6,70,-1,0,1613,1533,
1,0,0,0,1613,1535,1,0,0,0,1613,1537,1,0,0,0,1613,1539,1,0,0,0,1613,1541,
1,0,0,0,1613,1543,1,0,0,0,1613,1545,1,0,0,0,1613,1547,1,0,0,0,1613,1549,
1,0,0,0,1613,1551,1,0,0,0,1613,1553,1,0,0,0,1613,1555,1,0,0,0,1613,1557,
1,0,0,0,1613,1559,1,0,0,0,1613,1561,1,0,0,0,1613,1563,1,0,0,0,1613,1565,
1,0,0,0,1613,1567,1,0,0,0,1613,1569,1,0,0,0,1613,1571,1,0,0,0,1613,1573,
1,0,0,0,1613,1575,1,0,0,0,1613,1577,1,0,0,0,1613,1579,1,0,0,0,1613,1581,
1,0,0,0,1613,1583,1,0,0,0,1613,1585,1,0,0,0,1613,1587,1,0,0,0,1613,1589,
1,0,0,0,1613,1591,1,0,0,0,1613,1593,1,0,0,0,1613,1595,1,0,0,0,1613,1597,
1,0,0,0,1613,1599,1,0,0,0,1613,1601,1,0,0,0,1613,1603,1,0,0,0,1613,1605,
1,0,0,0,1613,1607,1,0,0,0,1613,1609,1,0,0,0,1613,1611,1,0,0,0,1614,141,
1,0,0,0,1615,1616,3,146,73,0,1616,1622,6,71,-1,0,1617,1618,3,144,72,0,
1618,1619,6,71,-1,0,1619,1621,1,0,0,0,1620,1617,1,0,0,0,1621,1624,1,0,
0,0,1622,1620,1,0,0,0,1622,1623,1,0,0,0,1623,143,1,0,0,0,1624,1622,1,0,
0,0,1625,1626,5,260,0,0,1626,1655,6,72,-1,0,1627,1628,5,42,0,0,1628,1629,
5,43,0,0,1629,1655,6,72,-1,0,1630,1631,3,112,56,0,1631,1632,6,72,-1,0,
1632,1655,1,0,0,0,1633,1634,5,259,0,0,1634,1655,6,72,-1,0,1635,1636,5,
261,0,0,1636,1655,6,72,-1,0,1637,1638,5,92,0,0,1638,1655,6,72,-1,0,1639,
1640,5,93,0,0,1640,1641,5,30,0,0,1641,1642,3,126,63,0,1642,1643,5,31,0,
0,1643,1644,6,72,-1,0,1644,1655,1,0,0,0,1645,1646,5,94,0,0,1646,1647,5,
30,0,0,1647,1648,3,126,63,0,1648,1649,5,31,0,0,1649,1650,6,72,-1,0,1650,
1655,1,0,0,0,1651,1652,3,110,55,0,1652,1653,6,72,-1,0,1653,1655,1,0,0,
0,1654,1625,1,0,0,0,1654,1627,1,0,0,0,1654,1630,1,0,0,0,1654,1633,1,0,
0,0,1654,1635,1,0,0,0,1654,1637,1,0,0,0,1654,1639,1,0,0,0,1654,1645,1,
0,0,0,1654,1651,1,0,0,0,1655,145,1,0,0,0,1656,1657,5,39,0,0,1657,1658,
3,118,59,0,1658,1659,6,73,-1,0,1659,1715,1,0,0,0,1660,1661,5,196,0,0,1661,
1715,6,73,-1,0,1662,1663,5,198,0,0,1663,1664,5,39,0,0,1664,1665,3,118,
59,0,1665,1666,6,73,-1,0,1666,1715,1,0,0,0,1667,1668,5,199,0,0,1668,1669,
3,118,59,0,1669,1670,6,73,-1,0,1670,1715,1,0,0,0,1671,1672,5,225,0,0,1672,
1673,3,174,87,0,1673,1674,3,142,71,0,1674,1675,5,261,0,0,1675,1676,3,114,
57,0,1676,1677,6,73,-1,0,1677,1715,1,0,0,0,1678,1679,5,252,0,0,1679,1680,
3,32,16,0,1680,1681,6,73,-1,0,1681,1715,1,0,0,0,1682,1683,5,251,0,0,1683,
1684,3,32,16,0,1684,1685,6,73,-1,0,1685,1715,1,0,0,0,1686,1687,5,252,0,
0,1687,1688,3,2,1,0,1688,1689,6,73,-1,0,1689,1715,1,0,0,0,1690,1691,5,
251,0,0,1691,1692,3,2,1,0,1692,1693,6,73,-1,0,1693,1715,1,0,0,0,1694,1695,
5,253,0,0,1695,1715,6,73,-1,0,1696,1697,5,200,0,0,1697,1715,6,73,-1,0,
1698,1699,3,152,76,0,1699,1700,6,73,-1,0,1700,1715,1,0,0,0,1701,1702,3,
154,77,0,1702,1703,6,73,-1,0,1703,1715,1,0,0,0,1704,1705,3,148,74,0,1705,
1706,6,73,-1,0,1706,1715,1,0,0,0,1707,1708,3,2,1,0,1708,1709,6,73,-1,0,
1709,1715,1,0,0,0,1710,1711,5,176,0,0,1711,1712,3,142,71,0,1712,1713,6,
73,-1,0,1713,1715,1,0,0,0,1714,1656,1,0,0,0,1714,1660,1,0,0,0,1714,1662,
1,0,0,0,1714,1667,1,0,0,0,1714,1671,1,0,0,0,1714,1678,1,0,0,0,1714,1682,
1,0,0,0,1714,1686,1,0,0,0,1714,1690,1,0,0,0,1714,1694,1,0,0,0,1714,1696,
1,0,0,0,1714,1698,1,0,0,0,1714,1701,1,0,0,0,1714,1704,1,0,0,0,1714,1707,
1,0,0,0,1714,1710,1,0,0,0,1715,147,1,0,0,0,1716,1717,5,180,0,0,1717,1755,
6,74,-1,0,1718,1719,5,181,0,0,1719,1755,6,74,-1,0,1720,1721,5,182,0,0,
1721,1755,6,74,-1,0,1722,1723,5,183,0,0,1723,1755,6,74,-1,0,1724,1725,
5,184,0,0,1725,1755,6,74,-1,0,1726,1727,5,185,0,0,1727,1755,6,74,-1,0,
1728,1729,5,186,0,0,1729,1755,6,74,-1,0,1730,1731,5,187,0,0,1731,1755,
6,74,-1,0,1732,1733,5,188,0,0,1733,1755,6,74,-1,0,1734,1735,5,189,0,0,
1735,1755,6,74,-1,0,1736,1737,5,190,0,0,1737,1755,6,74,-1,0,1738,1739,
5,191,0,0,1739,1755,6,74,-1,0,1740,1741,5,192,0,0,1741,1755,6,74,-1,0,
1742,1743,5,90,0,0,1743,1744,5,183,0,0,1744,1755,6,74,-1,0,1745,1746,5,
90,0,0,1746,1747,5,184,0,0,1747,1755,6,74,-1,0,1748,1749,5,90,0,0,1749,
1750,5,185,0,0,1750,1755,6,74,-1,0,1751,1752,5,90,0,0,1752,1753,5,186,
0,0,1753,1755,6,74,-1,0,1754,1716,1,0,0,0,1754,1718,1,0,0,0,1754,1720,
1,0,0,0,1754,1722,1,0,0,0,1754,1724,1,0,0,0,1754,1726,1,0,0,0,1754,1728,
1,0,0,0,1754,1730,1,0,0,0,1754,1732,1,0,0,0,1754,1734,1,0,0,0,1754,1736,
1,0,0,0,1754,1738,1,0,0,0,1754,1740,1,0,0,0,1754,1742,1,0,0,0,1754,1745,
1,0,0,0,1754,1748,1,0,0,0,1754,1751,1,0,0,0,1755,149,1,0,0,0,1756,1771,
1,0,0,0,1757,1771,5,176,0,0,1758,1759,3,32,16,0,1759,1760,6,75,-1,0,1760,
1771,1,0,0,0,1761,1762,3,32,16,0,1762,1763,5,176,0,0,1763,1764,3,32,16,
0,1764,1765,6,75,-1,0,1765,1771,1,0,0,0,1766,1767,3,32,16,0,1767,1768,
5,176,0,0,1768,1769,6,75,-1,0,1769,1771,1,0,0,0,1770,1756,1,0,0,0,1770,
1757,1,0,0,0,1770,1758,1,0,0,0,1770,1761,1,0,0,0,1770,1766,1,0,0,0,1771,
151,1,0,0,0,1772,1773,5,1,0,0,1773,1774,5,193,0,0,1774,1775,6,76,-1,0,
1775,153,1,0,0,0,1776,1780,5,1,0,0,1777,1778,5,90,0,0,1778,1781,5,193,
0,0,1779,1781,5,194,0,0,1780,1777,1,0,0,0,1780,1779,1,0,0,0,1781,1782,
1,0,0,0,1782,1783,6,77,-1,0,1783,155,1,0,0,0,1784,1785,5,293,0,0,1785,
1786,3,170,85,0,1786,1787,3,126,63,0,1787,1788,5,30,0,0,1788,1789,3,162,
81,0,1789,1790,5,31,0,0,1790,1791,6,78,-1,0,1791,1839,1,0,0,0,1792,1793,
5,293,0,0,1793,1794,3,170,85,0,1794,1795,3,126,63,0,1795,1796,5,36,0,0,
1796,1797,5,17,0,0,1797,1798,3,52,26,0,1798,1799,5,18,0,0,1799,1800,6,
78,-1,0,1800,1839,1,0,0,0,1801,1802,5,293,0,0,1802,1803,3,170,85,0,1803,
1804,3,126,63,0,1804,1805,6,78,-1,0,1805,1839,1,0,0,0,1806,1807,5,294,
0,0,1807,1808,3,170,85,0,1808,1810,5,36,0,0,1809,1811,5,84,0,0,1810,1809,
1,0,0,0,1810,1811,1,0,0,0,1811,1812,1,0,0,0,1812,1813,5,30,0,0,1813,1814,
3,304,152,0,1814,1815,5,31,0,0,1815,1816,6,78,-1,0,1816,1839,1,0,0,0,1817,
1818,5,294,0,0,1818,1819,3,170,85,0,1819,1820,5,84,0,0,1820,1821,5,30,
0,0,1821,1822,3,304,152,0,1822,1823,5,31,0,0,1823,1824,6,78,-1,0,1824,
1839,1,0,0,0,1825,1826,5,294,0,0,1826,1827,3,170,85,0,1827,1828,3,6,3,
0,1828,1829,6,78,-1,0,1829,1839,1,0,0,0,1830,1831,5,294,0,0,1831,1832,
3,170,85,0,1832,1833,5,36,0,0,1833,1834,5,17,0,0,1834,1835,3,158,79,0,
1835,1836,5,18,0,0,1836,1837,6,78,-1,0,1837,1839,1,0,0,0,1838,1784,1,0,
0,0,1838,1792,1,0,0,0,1838,1801,1,0,0,0,1838,1806,1,0,0,0,1838,1817,1,
0,0,0,1838,1825,1,0,0,0,1838,1830,1,0,0,0,1839,157,1,0,0,0,1840,1854,1,
0,0,0,1841,1842,3,160,80,0,1842,1843,6,79,-1,0,1843,1844,5,28,0,0,1844,
1846,1,0,0,0,1845,1841,1,0,0,0,1846,1849,1,0,0,0,1847,1845,1,0,0,0,1847,
1848,1,0,0,0,1848,1850,1,0,0,0,1849,1847,1,0,0,0,1850,1851,3,160,80,0,
1851,1852,6,79,-1,0,1852,1854,1,0,0,0,1853,1840,1,0,0,0,1853,1847,1,0,
0,0,1854,159,1,0,0,0,1855,1856,5,39,0,0,1856,1857,5,263,0,0,1857,1858,
5,36,0,0,1858,1859,5,17,0,0,1859,1860,3,56,28,0,1860,1861,5,18,0,0,1861,
1862,6,80,-1,0,1862,1871,1,0,0,0,1863,1864,3,126,63,0,1864,1865,5,36,0,
0,1865,1866,5,17,0,0,1866,1867,3,56,28,0,1867,1868,5,18,0,0,1868,1869,
6,80,-1,0,1869,1871,1,0,0,0,1870,1855,1,0,0,0,1870,1863,1,0,0,0,1871,161,
1,0,0,0,1872,1873,3,164,82,0,1873,1874,6,81,-1,0,1874,1875,5,28,0,0,1875,
1877,1,0,0,0,1876,1872,1,0,0,0,1877,1880,1,0,0,0,1878,1876,1,0,0,0,1878,
1879,1,0,0,0,1879,1881,1,0,0,0,1880,1878,1,0,0,0,1881,1882,3,164,82,0,
1882,1883,6,81,-1,0,1883,163,1,0,0,0,1884,1885,3,6,3,0,1885,1886,5,36,
0,0,1886,1887,3,168,84,0,1887,1888,6,82,-1,0,1888,165,1,0,0,0,1889,1890,
7,9,0,0,1890,167,1,0,0,0,1891,1892,3,166,83,0,1892,1893,6,84,-1,0,1893,
1937,1,0,0,0,1894,1895,3,32,16,0,1895,1896,6,84,-1,0,1896,1937,1,0,0,0,
1897,1898,5,185,0,0,1898,1899,5,30,0,0,1899,1900,3,32,16,0,1900,1901,5,
31,0,0,1901,1902,6,84,-1,0,1902,1937,1,0,0,0,1903,1904,3,6,3,0,1904,1905,
6,84,-1,0,1905,1937,1,0,0,0,1906,1907,3,118,59,0,1907,1908,5,30,0,0,1908,
1909,5,183,0,0,1909,1910,5,75,0,0,1910,1911,3,32,16,0,1911,1912,5,31,0,
0,1912,1913,6,84,-1,0,1913,1937,1,0,0,0,1914,1915,3,118,59,0,1915,1916,
5,30,0,0,1916,1917,5,184,0,0,1917,1918,5,75,0,0,1918,1919,3,32,16,0,1919,
1920,5,31,0,0,1920,1921,6,84,-1,0,1921,1937,1,0,0,0,1922,1923,3,118,59,
0,1923,1924,5,30,0,0,1924,1925,5,185,0,0,1925,1926,5,75,0,0,1926,1927,
3,32,16,0,1927,1928,5,31,0,0,1928,1929,6,84,-1,0,1929,1937,1,0,0,0,1930,
1931,3,118,59,0,1931,1932,5,30,0,0,1932,1933,3,32,16,0,1933,1934,5,31,
0,0,1934,1935,6,84,-1,0,1935,1937,1,0,0,0,1936,1891,1,0,0,0,1936,1894,
1,0,0,0,1936,1897,1,0,0,0,1936,1903,1,0,0,0,1936,1906,1,0,0,0,1936,1914,
1,0,0,0,1936,1922,1,0,0,0,1936,1930,1,0,0,0,1937,169,1,0,0,0,1938,1939,
7,10,0,0,1939,171,1,0,0,0,1940,1941,3,174,87,0,1941,1942,3,142,71,0,1942,
1943,3,128,64,0,1943,1944,5,175,0,0,1944,1946,3,246,123,0,1945,1947,3,
110,55,0,1946,1945,1,0,0,0,1946,1947,1,0,0,0,1947,1948,1,0,0,0,1948,1949,
3,114,57,0,1949,1950,6,86,-1,0,1950,1983,1,0,0,0,1951,1952,3,174,87,0,
1952,1953,3,142,71,0,1953,1954,3,128,64,0,1954,1955,5,175,0,0,1955,1956,
3,246,123,0,1956,1957,3,200,100,0,1957,1958,3,114,57,0,1958,1959,6,86,
-1,0,1959,1983,1,0,0,0,1960,1961,3,174,87,0,1961,1962,3,142,71,0,1962,
1964,3,246,123,0,1963,1965,3,110,55,0,1964,1963,1,0,0,0,1964,1965,1,0,
0,0,1965,1966,1,0,0,0,1966,1967,3,114,57,0,1967,1968,6,86,-1,0,1968,1983,
1,0,0,0,1969,1970,3,174,87,0,1970,1971,3,142,71,0,1971,1972,3,246,123,
0,1972,1973,3,200,100,0,1973,1974,3,114,57,0,1974,1975,6,86,-1,0,1975,
1983,1,0,0,0,1976,1977,3,178,89,0,1977,1978,6,86,-1,0,1978,1983,1,0,0,
0,1979,1980,3,2,1,0,1980,1981,6,86,-1,0,1981,1983,1,0,0,0,1982,1940,1,
0,0,0,1982,1951,1,0,0,0,1982,1960,1,0,0,0,1982,1969,1,0,0,0,1982,1976,
1,0,0,0,1982,1979,1,0,0,0,1983,173,1,0,0,0,1984,1985,5,242,0,0,1985,1986,
3,174,87,0,1986,1987,6,87,-1,0,1987,2002,1,0,0,0,1988,1989,5,243,0,0,1989,
1990,3,174,87,0,1990,1991,6,87,-1,0,1991,2002,1,0,0,0,1992,1993,3,176,
88,0,1993,1994,6,87,-1,0,1994,2002,1,0,0,0,1995,1996,5,112,0,0,1996,1997,
5,30,0,0,1997,1998,3,32,16,0,1998,1999,5,31,0,0,1999,2000,6,87,-1,0,2000,
2002,1,0,0,0,2001,1984,1,0,0,0,2001,1988,1,0,0,0,2001,1992,1,0,0,0,2001,
1995,1,0,0,0,2002,175,1,0,0,0,2003,2023,1,0,0,0,2004,2005,5,244,0,0,2005,
2023,6,88,-1,0,2006,2007,5,245,0,0,2007,2023,6,88,-1,0,2008,2009,5,246,
0,0,2009,2010,5,247,0,0,2010,2023,6,88,-1,0,2011,2012,5,246,0,0,2012,2013,
5,248,0,0,2013,2023,6,88,-1,0,2014,2015,5,246,0,0,2015,2016,5,249,0,0,
2016,2023,6,88,-1,0,2017,2018,5,246,0,0,2018,2019,5,250,0,0,2019,2023,
6,88,-1,0,2020,2021,5,246,0,0,2021,2023,6,88,-1,0,2022,2003,1,0,0,0,2022,
2004,1,0,0,0,2022,2006,1,0,0,0,2022,2008,1,0,0,0,2022,2011,1,0,0,0,2022,
2014,1,0,0,0,2022,2017,1,0,0,0,2022,2020,1,0,0,0,2023,177,1,0,0,0,2024,
2025,5,113,0,0,2025,2026,5,30,0,0,2026,2027,3,32,16,0,2027,2028,5,31,0,
0,2028,2029,6,89,-1,0,2029,179,1,0,0,0,2030,2031,5,225,0,0,2031,2032,3,
172,86,0,2032,2033,6,90,-1,0,2033,2042,1,0,0,0,2034,2035,5,37,0,0,2035,
2036,3,182,91,0,2036,2037,6,90,-1,0,2037,2042,1,0,0,0,2038,2039,3,178,
89,0,2039,2040,6,90,-1,0,2040,2042,1,0,0,0,2041,2030,1,0,0,0,2041,2034,
1,0,0,0,2041,2038,1,0,0,0,2042,181,1,0,0,0,2043,2044,3,142,71,0,2044,2045,
3,128,64,0,2045,2046,5,175,0,0,2046,2047,3,2,1,0,2047,2048,6,91,-1,0,2048,
2057,1,0,0,0,2049,2050,3,142,71,0,2050,2051,3,2,1,0,2051,2052,6,91,-1,
0,2052,2057,1,0,0,0,2053,2054,3,2,1,0,2054,2055,6,91,-1,0,2055,2057,1,
0,0,0,2056,2043,1,0,0,0,2056,2049,1,0,0,0,2056,2053,1,0,0,0,2057,183,1,
0,0,0,2058,2059,3,126,63,0,2059,2060,6,92,-1,0,2060,2061,5,28,0,0,2061,
2063,1,0,0,0,2062,2058,1,0,0,0,2063,2066,1,0,0,0,2064,2062,1,0,0,0,2064,
2065,1,0,0,0,2065,2067,1,0,0,0,2066,2064,1,0,0,0,2067,2068,3,126,63,0,
2068,2069,6,92,-1,0,2069,185,1,0,0,0,2070,2077,1,0,0,0,2071,2072,5,86,
0,0,2072,2073,3,194,97,0,2073,2074,5,87,0,0,2074,2075,6,93,-1,0,2075,2077,
1,0,0,0,2076,2070,1,0,0,0,2076,2071,1,0,0,0,2077,187,1,0,0,0,2078,2079,
5,265,0,0,2079,2097,6,94,-1,0,2080,2081,5,114,0,0,2081,2097,6,94,-1,0,
2082,2083,5,39,0,0,2083,2097,6,94,-1,0,2084,2085,5,199,0,0,2085,2097,6,
94,-1,0,2086,2087,5,115,0,0,2087,2097,6,94,-1,0,2088,2089,5,116,0,0,2089,
2097,6,94,-1,0,2090,2091,5,70,0,0,2091,2092,5,30,0,0,2092,2093,3,32,16,
0,2093,2094,5,31,0,0,2094,2095,6,94,-1,0,2095,2097,1,0,0,0,2096,2078,1,
0,0,0,2096,2080,1,0,0,0,2096,2082,1,0,0,0,2096,2084,1,0,0,0,2096,2086,
1,0,0,0,2096,2088,1,0,0,0,2096,2090,1,0,0,0,2097,189,1,0,0,0,2098,2099,
3,188,94,0,2099,2100,6,95,-1,0,2100,2102,1,0,0,0,2101,2098,1,0,0,0,2102,
2105,1,0,0,0,2103,2101,1,0,0,0,2103,2104,1,0,0,0,2104,191,1,0,0,0,2105,
2103,1,0,0,0,2106,2108,3,190,95,0,2107,2109,3,196,98,0,2108,2107,1,0,0,
0,2108,2109,1,0,0,0,2109,2110,1,0,0,0,2110,2111,3,2,1,0,2111,2112,6,96,
-1,0,2112,193,1,0,0,0,2113,2114,3,192,96,0,2114,2115,6,97,-1,0,2115,2116,
5,28,0,0,2116,2118,1,0,0,0,2117,2113,1,0,0,0,2118,2121,1,0,0,0,2119,2117,
1,0,0,0,2119,2120,1,0,0,0,2120,2122,1,0,0,0,2121,2119,1,0,0,0,2122,2123,
3,192,96,0,2123,2124,6,97,-1,0,2124,195,1,0,0,0,2125,2126,5,30,0,0,2126,
2127,3,184,92,0,2127,2128,5,31,0,0,2128,2129,6,98,-1,0,2129,197,1,0,0,
0,2130,2132,3,200,100,0,2131,2130,1,0,0,0,2131,2132,1,0,0,0,2132,2133,
1,0,0,0,2133,2134,6,99,-1,0,2134,199,1,0,0,0,2135,2136,5,86,0,0,2136,2137,
5,42,0,0,2137,2138,3,32,16,0,2138,2139,5,43,0,0,2139,2140,5,87,0,0,2140,
2141,6,100,-1,0,2141,201,1,0,0,0,2142,2143,3,238,119,0,2143,2144,5,17,
0,0,2144,2145,3,250,125,0,2145,2146,5,18,0,0,2146,2293,1,0,0,0,2147,2148,
3,76,38,0,2148,2149,5,17,0,0,2149,2150,3,84,42,0,2150,2151,5,18,0,0,2151,
2293,1,0,0,0,2152,2153,3,214,107,0,2153,2154,6,101,-1,0,2154,2155,5,17,
0,0,2155,2156,3,218,109,0,2156,2157,5,18,0,0,2157,2293,1,0,0,0,2158,2159,
3,222,111,0,2159,2160,6,101,-1,0,2160,2161,5,17,0,0,2161,2162,3,226,113,
0,2162,2163,5,18,0,0,2163,2293,1,0,0,0,2164,2293,3,204,102,0,2165,2166,
3,288,144,0,2166,2167,6,101,-1,0,2167,2293,1,0,0,0,2168,2169,3,156,78,
0,2169,2170,6,101,-1,0,2170,2293,1,0,0,0,2171,2172,3,90,45,0,2172,2173,
6,101,-1,0,2173,2293,1,0,0,0,2174,2175,3,334,167,0,2175,2176,6,101,-1,
0,2176,2293,1,0,0,0,2177,2178,5,117,0,0,2178,2179,3,32,16,0,2179,2180,
6,101,-1,0,2180,2293,1,0,0,0,2181,2182,5,118,0,0,2182,2183,3,32,16,0,2183,
2184,6,101,-1,0,2184,2293,1,0,0,0,2185,2186,3,350,175,0,2186,2187,5,17,
0,0,2187,2188,3,356,178,0,2188,2189,5,18,0,0,2189,2190,6,101,-1,0,2190,
2293,1,0,0,0,2191,2192,5,301,0,0,2192,2193,3,128,64,0,2193,2194,5,175,
0,0,2194,2195,3,246,123,0,2195,2196,5,119,0,0,2196,2197,3,174,87,0,2197,
2198,3,142,71,0,2198,2199,3,128,64,0,2199,2200,5,175,0,0,2200,2201,3,246,
123,0,2201,2202,3,114,57,0,2202,2203,6,101,-1,0,2203,2293,1,0,0,0,2204,
2205,5,301,0,0,2205,2206,5,225,0,0,2206,2207,3,174,87,0,2207,2208,3,142,
71,0,2208,2209,3,128,64,0,2209,2210,5,175,0,0,2210,2211,3,246,123,0,2211,
2212,3,198,99,0,2212,2213,3,114,57,0,2213,2214,5,119,0,0,2214,2215,5,225,
0,0,2215,2216,3,174,87,0,2216,2217,3,142,71,0,2217,2218,3,128,64,0,2218,
2219,5,175,0,0,2219,2220,3,246,123,0,2220,2221,3,198,99,0,2221,2222,3,
114,57,0,2222,2223,6,101,-1,0,2223,2293,1,0,0,0,2224,2225,3,26,13,0,2225,
2226,6,101,-1,0,2226,2293,1,0,0,0,2227,2228,3,40,20,0,2228,2229,6,101,
-1,0,2229,2293,1,0,0,0,2230,2231,5,254,0,0,2231,2232,5,195,0,0,2232,2233,
5,42,0,0,2233,2234,3,32,16,0,2234,2235,5,43,0,0,2235,2241,6,101,-1,0,2236,
2237,3,334,167,0,2237,2238,6,101,-1,0,2238,2240,1,0,0,0,2239,2236,1,0,
0,0,2240,2243,1,0,0,0,2241,2239,1,0,0,0,2241,2242,1,0,0,0,2242,2293,1,
0,0,0,2243,2241,1,0,0,0,2244,2245,5,254,0,0,2245,2246,5,195,0,0,2246,2247,
3,2,1,0,2247,2253,6,101,-1,0,2248,2249,3,334,167,0,2249,2250,6,101,-1,
0,2250,2252,1,0,0,0,2251,2248,1,0,0,0,2252,2255,1,0,0,0,2253,2251,1,0,
0,0,2253,2254,1,0,0,0,2254,2293,1,0,0,0,2255,2253,1,0,0,0,2256,2257,5,
254,0,0,2257,2258,5,255,0,0,2258,2259,5,42,0,0,2259,2260,3,32,16,0,2260,
2261,5,43,0,0,2261,2262,5,28,0,0,2262,2263,3,126,63,0,2263,2269,6,101,
-1,0,2264,2265,3,334,167,0,2265,2266,6,101,-1,0,2266,2268,1,0,0,0,2267,
2264,1,0,0,0,2268,2271,1,0,0,0,2269,2267,1,0,0,0,2269,2270,1,0,0,0,2270,
2293,1,0,0,0,2271,2269,1,0,0,0,2272,2273,5,254,0,0,2273,2274,5,255,0,0,
2274,2275,3,2,1,0,2275,2276,5,28,0,0,2276,2277,3,126,63,0,2277,2283,6,
101,-1,0,2278,2279,3,334,167,0,2279,2280,6,101,-1,0,2280,2282,1,0,0,0,
2281,2278,1,0,0,0,2282,2285,1,0,0,0,2283,2281,1,0,0,0,2283,2284,1,0,0,
0,2284,2293,1,0,0,0,2285,2283,1,0,0,0,2286,2287,5,120,0,0,2287,2288,5,
195,0,0,2288,2289,3,126,63,0,2289,2290,3,44,22,0,2290,2291,6,101,-1,0,
2291,2293,1,0,0,0,2292,2142,1,0,0,0,2292,2147,1,0,0,0,2292,2152,1,0,0,
0,2292,2158,1,0,0,0,2292,2164,1,0,0,0,2292,2165,1,0,0,0,2292,2168,1,0,
0,0,2292,2171,1,0,0,0,2292,2174,1,0,0,0,2292,2177,1,0,0,0,2292,2181,1,
0,0,0,2292,2185,1,0,0,0,2292,2191,1,0,0,0,2292,2204,1,0,0,0,2292,2224,
1,0,0,0,2292,2227,1,0,0,0,2292,2230,1,0,0,0,2292,2244,1,0,0,0,2292,2256,
1,0,0,0,2292,2272,1,0,0,0,2292,2286,1,0,0,0,2293,203,1,0,0,0,2294,2295,
5,121,0,0,2295,2307,3,212,106,0,2296,2297,3,206,103,0,2297,2298,6,102,
-1,0,2298,2306,1,0,0,0,2299,2300,5,122,0,0,2300,2301,5,30,0,0,2301,2302,
3,232,116,0,2302,2303,5,31,0,0,2303,2304,6,102,-1,0,2304,2306,1,0,0,0,
2305,2296,1,0,0,0,2305,2299,1,0,0,0,2306,2309,1,0,0,0,2307,2305,1,0,0,
0,2307,2308,1,0,0,0,2308,2310,1,0,0,0,2309,2307,1,0,0,0,2310,2311,3,142,
71,0,2311,2312,3,2,1,0,2312,2313,3,208,104,0,2313,2314,3,210,105,0,2314,
2315,6,102,-1,0,2315,205,1,0,0,0,2316,2317,5,123,0,0,2317,2351,6,103,-1,
0,2318,2319,5,51,0,0,2319,2351,6,103,-1,0,2320,2321,5,52,0,0,2321,2351,
6,103,-1,0,2322,2323,5,63,0,0,2323,2351,6,103,-1,0,2324,2325,5,124,0,0,
2325,2351,6,103,-1,0,2326,2327,5,69,0,0,2327,2351,6,103,-1,0,2328,2329,
5,68,0,0,2329,2351,6,103,-1,0,2330,2331,5,64,0,0,2331,2351,6,103,-1,0,
2332,2333,5,65,0,0,2333,2351,6,103,-1,0,2334,2335,5,66,0,0,2335,2351,6,
103,-1,0,2336,2337,5,125,0,0,2337,2351,6,103,-1,0,2338,2339,5,126,0,0,
2339,2351,6,103,-1,0,2340,2341,5,127,0,0,2341,2351,6,103,-1,0,2342,2343,
5,16,0,0,2343,2351,6,103,-1,0,2344,2345,5,70,0,0,2345,2346,5,30,0,0,2346,
2347,3,32,16,0,2347,2348,5,31,0,0,2348,2349,6,103,-1,0,2349,2351,1,0,0,
0,2350,2316,1,0,0,0,2350,2318,1,0,0,0,2350,2320,1,0,0,0,2350,2322,1,0,
0,0,2350,2324,1,0,0,0,2350,2326,1,0,0,0,2350,2328,1,0,0,0,2350,2330,1,
0,0,0,2350,2332,1,0,0,0,2350,2334,1,0,0,0,2350,2336,1,0,0,0,2350,2338,
1,0,0,0,2350,2340,1,0,0,0,2350,2342,1,0,0,0,2350,2344,1,0,0,0,2351,207,
1,0,0,0,2352,2362,1,0,0,0,2353,2354,5,44,0,0,2354,2355,3,0,0,0,2355,2356,
6,104,-1,0,2356,2362,1,0,0,0,2357,2358,5,44,0,0,2358,2359,3,32,16,0,2359,
2360,6,104,-1,0,2360,2362,1,0,0,0,2361,2352,1,0,0,0,2361,2353,1,0,0,0,
2361,2357,1,0,0,0,2362,209,1,0,0,0,2363,2369,1,0,0,0,2364,2365,5,36,0,
0,2365,2366,3,308,154,0,2366,2367,6,105,-1,0,2367,2369,1,0,0,0,2368,2363,
1,0,0,0,2368,2364,1,0,0,0,2369,211,1,0,0,0,2370,2377,1,0,0,0,2371,2372,
5,42,0,0,2372,2373,3,32,16,0,2373,2374,5,43,0,0,2374,2375,6,106,-1,0,2375,
2377,1,0,0,0,2376,2370,1,0,0,0,2376,2371,1,0,0,0,2377,213,1,0,0,0,2378,
2384,5,128,0,0,2379,2380,3,216,108,0,2380,2381,6,107,-1,0,2381,2383,1,
0,0,0,2382,2379,1,0,0,0,2383,2386,1,0,0,0,2384,2382,1,0,0,0,2384,2385,
1,0,0,0,2385,2387,1,0,0,0,2386,2384,1,0,0,0,2387,2388,3,126,63,0,2388,
2389,3,2,1,0,2389,2390,6,107,-1,0,2390,2404,1,0,0,0,2391,2397,5,128,0,
0,2392,2393,3,216,108,0,2393,2394,6,107,-1,0,2394,2396,1,0,0,0,2395,2392,
1,0,0,0,2396,2399,1,0,0,0,2397,2395,1,0,0,0,2397,2398,1,0,0,0,2398,2400,
1,0,0,0,2399,2397,1,0,0,0,2400,2401,3,2,1,0,2401,2402,6,107,-1,0,2402,
2404,1,0,0,0,2403,2378,1,0,0,0,2403,2391,1,0,0,0,2404,215,1,0,0,0,2405,
2406,5,69,0,0,2406,2410,6,108,-1,0,2407,2408,5,68,0,0,2408,2410,6,108,
-1,0,2409,2405,1,0,0,0,2409,2407,1,0,0,0,2410,217,1,0,0,0,2411,2413,3,
220,110,0,2412,2411,1,0,0,0,2413,2416,1,0,0,0,2414,2412,1,0,0,0,2414,2415,
1,0,0,0,2415,219,1,0,0,0,2416,2414,1,0,0,0,2417,2418,5,129,0,0,2418,2419,
3,172,86,0,2419,2420,6,110,-1,0,2420,2444,1,0,0,0,2421,2422,5,130,0,0,
2422,2423,3,172,86,0,2423,2424,6,110,-1,0,2424,2444,1,0,0,0,2425,2426,
5,131,0,0,2426,2427,3,172,86,0,2427,2428,6,110,-1,0,2428,2444,1,0,0,0,
2429,2430,5,132,0,0,2430,2431,3,172,86,0,2431,2432,6,110,-1,0,2432,2444,
1,0,0,0,2433,2434,3,90,45,0,2434,2435,6,110,-1,0,2435,2444,1,0,0,0,2436,
2437,3,334,167,0,2437,2438,6,110,-1,0,2438,2444,1,0,0,0,2439,2440,3,26,
13,0,2440,2441,6,110,-1,0,2441,2444,1,0,0,0,2442,2444,3,40,20,0,2443,2417,
1,0,0,0,2443,2421,1,0,0,0,2443,2425,1,0,0,0,2443,2429,1,0,0,0,2443,2433,
1,0,0,0,2443,2436,1,0,0,0,2443,2439,1,0,0,0,2443,2442,1,0,0,0,2444,221,
1,0,0,0,2445,2451,5,133,0,0,2446,2447,3,224,112,0,2447,2448,6,111,-1,0,
2448,2450,1,0,0,0,2449,2446,1,0,0,0,2450,2453,1,0,0,0,2451,2449,1,0,0,
0,2451,2452,1,0,0,0,2452,2454,1,0,0,0,2453,2451,1,0,0,0,2454,2455,3,174,
87,0,2455,2456,3,142,71,0,2456,2457,3,2,1,0,2457,2458,3,114,57,0,2458,
2459,3,210,105,0,2459,2460,6,111,-1,0,2460,223,1,0,0,0,2461,2462,5,69,
0,0,2462,2466,6,112,-1,0,2463,2464,5,68,0,0,2464,2466,6,112,-1,0,2465,
2461,1,0,0,0,2465,2463,1,0,0,0,2466,225,1,0,0,0,2467,2469,3,228,114,0,
2468,2467,1,0,0,0,2469,2472,1,0,0,0,2470,2468,1,0,0,0,2470,2471,1,0,0,
0,2471,227,1,0,0,0,2472,2470,1,0,0,0,2473,2474,5,134,0,0,2474,2475,3,172,
86,0,2475,2476,6,114,-1,0,2476,2496,1,0,0,0,2477,2478,5,135,0,0,2478,2479,
3,172,86,0,2479,2480,6,114,-1,0,2480,2496,1,0,0,0,2481,2482,5,132,0,0,
2482,2483,3,172,86,0,2483,2484,6,114,-1,0,2484,2496,1,0,0,0,2485,2486,
3,334,167,0,2486,2487,6,114,-1,0,2487,2496,1,0,0,0,2488,2489,3,90,45,0,
2489,2490,6,114,-1,0,2490,2496,1,0,0,0,2491,2492,3,26,13,0,2492,2493,6,
114,-1,0,2493,2496,1,0,0,0,2494,2496,3,40,20,0,2495,2473,1,0,0,0,2495,
2477,1,0,0,0,2495,2481,1,0,0,0,2495,2485,1,0,0,0,2495,2488,1,0,0,0,2495,
2491,1,0,0,0,2495,2494,1,0,0,0,2496,229,1,0,0,0,2497,2505,6,115,-1,0,2498,
2499,5,122,0,0,2499,2500,5,30,0,0,2500,2501,3,232,116,0,2501,2502,5,31,
0,0,2502,2503,6,115,-1,0,2503,2505,1,0,0,0,2504,2497,1,0,0,0,2504,2498,
1,0,0,0,2505,231,1,0,0,0,2506,2507,3,130,65,0,2507,2508,6,116,-1,0,2508,
2520,1,0,0,0,2509,2513,5,17,0,0,2510,2511,3,306,153,0,2511,2512,6,116,
-1,0,2512,2514,1,0,0,0,2513,2510,1,0,0,0,2514,2515,1,0,0,0,2515,2513,1,
0,0,0,2515,2516,1,0,0,0,2516,2517,1,0,0,0,2517,2518,5,18,0,0,2518,2520,
1,0,0,0,2519,2506,1,0,0,0,2519,2509,1,0,0,0,2520,233,1,0,0,0,2521,2522,
3,236,118,0,2522,2523,6,117,-1,0,2523,2525,1,0,0,0,2524,2521,1,0,0,0,2525,
2528,1,0,0,0,2526,2524,1,0,0,0,2526,2527,1,0,0,0,2527,235,1,0,0,0,2528,
2526,1,0,0,0,2529,2530,5,42,0,0,2530,2531,5,136,0,0,2531,2532,5,43,0,0,
2532,2547,6,118,-1,0,2533,2534,5,42,0,0,2534,2535,5,137,0,0,2535,2536,
5,43,0,0,2536,2547,6,118,-1,0,2537,2538,5,42,0,0,2538,2539,5,138,0,0,2539,
2540,5,43,0,0,2540,2547,6,118,-1,0,2541,2542,5,42,0,0,2542,2543,3,32,16,
0,2543,2544,5,43,0,0,2544,2545,6,118,-1,0,2545,2547,1,0,0,0,2546,2529,
1,0,0,0,2546,2533,1,0,0,0,2546,2537,1,0,0,0,2546,2541,1,0,0,0,2547,237,
1,0,0,0,2548,2557,5,139,0,0,2549,2550,3,240,120,0,2550,2551,6,119,-1,0,
2551,2556,1,0,0,0,2552,2553,3,242,121,0,2553,2554,6,119,-1,0,2554,2556,
1,0,0,0,2555,2549,1,0,0,0,2555,2552,1,0,0,0,2556,2559,1,0,0,0,2557,2555,
1,0,0,0,2557,2558,1,0,0,0,2558,2560,1,0,0,0,2559,2557,1,0,0,0,2560,2561,
3,174,87,0,2561,2562,3,234,117,0,2562,2563,3,142,71,0,2563,2564,3,230,
115,0,2564,2565,3,246,123,0,2565,2566,3,186,93,0,2566,2572,3,114,57,0,
2567,2568,3,248,124,0,2568,2569,6,119,-1,0,2569,2571,1,0,0,0,2570,2567,
1,0,0,0,2571,2574,1,0,0,0,2572,2570,1,0,0,0,2572,2573,1,0,0,0,2573,2575,
1,0,0,0,2574,2572,1,0,0,0,2575,2576,6,119,-1,0,2576,239,1,0,0,0,2577,2578,
5,123,0,0,2578,2620,6,120,-1,0,2579,2580,5,51,0,0,2580,2620,6,120,-1,0,
2581,2582,5,52,0,0,2582,2620,6,120,-1,0,2583,2584,5,63,0,0,2584,2620,6,
120,-1,0,2585,2586,5,140,0,0,2586,2620,6,120,-1,0,2587,2588,5,68,0,0,2588,
2620,6,120,-1,0,2589,2590,5,141,0,0,2590,2620,6,120,-1,0,2591,2592,5,142,
0,0,2592,2620,6,120,-1,0,2593,2594,5,54,0,0,2594,2620,6,120,-1,0,2595,
2596,5,64,0,0,2596,2620,6,120,-1,0,2597,2598,5,65,0,0,2598,2620,6,120,
-1,0,2599,2600,5,66,0,0,2600,2620,6,120,-1,0,2601,2602,5,125,0,0,2602,
2620,6,120,-1,0,2603,2604,5,143,0,0,2604,2620,6,120,-1,0,2605,2606,5,144,
0,0,2606,2620,6,120,-1,0,2607,2608,5,69,0,0,2608,2620,6,120,-1,0,2609,
2610,5,145,0,0,2610,2620,6,120,-1,0,2611,2612,5,146,0,0,2612,2620,6,120,
-1,0,2613,2614,5,70,0,0,2614,2615,5,30,0,0,2615,2616,3,32,16,0,2616,2617,
5,31,0,0,2617,2618,6,120,-1,0,2618,2620,1,0,0,0,2619,2577,1,0,0,0,2619,
2579,1,0,0,0,2619,2581,1,0,0,0,2619,2583,1,0,0,0,2619,2585,1,0,0,0,2619,
2587,1,0,0,0,2619,2589,1,0,0,0,2619,2591,1,0,0,0,2619,2593,1,0,0,0,2619,
2595,1,0,0,0,2619,2597,1,0,0,0,2619,2599,1,0,0,0,2619,2601,1,0,0,0,2619,
2603,1,0,0,0,2619,2605,1,0,0,0,2619,2607,1,0,0,0,2619,2609,1,0,0,0,2619,
2611,1,0,0,0,2619,2613,1,0,0,0,2620,241,1,0,0,0,2621,2622,5,147,0,0,2622,
2631,5,30,0,0,2623,2624,3,6,3,0,2624,2629,6,121,-1,0,2625,2626,5,34,0,
0,2626,2627,3,6,3,0,2627,2628,6,121,-1,0,2628,2630,1,0,0,0,2629,2625,1,
0,0,0,2629,2630,1,0,0,0,2630,2632,1,0,0,0,2631,2623,1,0,0,0,2631,2632,
1,0,0,0,2632,2638,1,0,0,0,2633,2634,3,244,122,0,2634,2635,6,121,-1,0,2635,
2637,1,0,0,0,2636,2633,1,0,0,0,2637,2640,1,0,0,0,2638,2636,1,0,0,0,2638,
2639,1,0,0,0,2639,2641,1,0,0,0,2640,2638,1,0,0,0,2641,2645,5,31,0,0,2642,
2643,5,147,0,0,2643,2645,5,85,0,0,2644,2621,1,0,0,0,2644,2642,1,0,0,0,
2645,243,1,0,0,0,2646,2647,5,148,0,0,2647,2689,6,122,-1,0,2648,2649,5,
223,0,0,2649,2689,6,122,-1,0,2650,2651,5,57,0,0,2651,2689,6,122,-1,0,2652,
2653,5,58,0,0,2653,2689,6,122,-1,0,2654,2655,5,149,0,0,2655,2689,6,122,
-1,0,2656,2657,5,150,0,0,2657,2689,6,122,-1,0,2658,2659,5,247,0,0,2659,
2689,6,122,-1,0,2660,2661,5,248,0,0,2661,2689,6,122,-1,0,2662,2663,5,249,
0,0,2663,2689,6,122,-1,0,2664,2665,5,250,0,0,2665,2689,6,122,-1,0,2666,
2667,5,151,0,0,2667,2668,5,75,0,0,2668,2669,5,152,0,0,2669,2689,6,122,
-1,0,2670,2671,5,151,0,0,2671,2672,5,75,0,0,2672,2673,5,153,0,0,2673,2689,
6,122,-1,0,2674,2675,5,154,0,0,2675,2676,5,75,0,0,2676,2677,5,152,0,0,
2677,2689,6,122,-1,0,2678,2679,5,154,0,0,2679,2680,5,75,0,0,2680,2681,
5,153,0,0,2681,2689,6,122,-1,0,2682,2683,5,70,0,0,2683,2684,5,30,0,0,2684,
2685,3,32,16,0,2685,2686,5,31,0,0,2686,2687,6,122,-1,0,2687,2689,1,0,0,
0,2688,2646,1,0,0,0,2688,2648,1,0,0,0,2688,2650,1,0,0,0,2688,2652,1,0,
0,0,2688,2654,1,0,0,0,2688,2656,1,0,0,0,2688,2658,1,0,0,0,2688,2660,1,
0,0,0,2688,2662,1,0,0,0,2688,2664,1,0,0,0,2688,2666,1,0,0,0,2688,2670,
1,0,0,0,2688,2674,1,0,0,0,2688,2678,1,0,0,0,2688,2682,1,0,0,0,2689,245,
1,0,0,0,2690,2691,5,116,0,0,2691,2698,6,123,-1,0,2692,2693,5,155,0,0,2693,
2698,6,123,-1,0,2694,2695,3,2,1,0,2695,2696,6,123,-1,0,2696,2698,1,0,0,
0,2697,2690,1,0,0,0,2697,2692,1,0,0,0,2697,2694,1,0,0,0,2698,247,1,0,0,
0,2699,2700,5,1,0,0,2700,2738,6,124,-1,0,2701,2702,5,2,0,0,2702,2738,6,
124,-1,0,2703,2704,5,156,0,0,2704,2738,6,124,-1,0,2705,2706,5,3,0,0,2706,
2738,6,124,-1,0,2707,2708,5,4,0,0,2708,2738,6,124,-1,0,2709,2710,5,246,
0,0,2710,2738,6,124,-1,0,2711,2712,5,5,0,0,2712,2738,6,124,-1,0,2713,2714,
5,6,0,0,2714,2738,6,124,-1,0,2715,2716,5,7,0,0,2716,2738,6,124,-1,0,2717,
2718,5,8,0,0,2718,2738,6,124,-1,0,2719,2720,5,9,0,0,2720,2738,6,124,-1,
0,2721,2722,5,10,0,0,2722,2738,6,124,-1,0,2723,2724,5,11,0,0,2724,2738,
6,124,-1,0,2725,2726,5,12,0,0,2726,2738,6,124,-1,0,2727,2728,5,13,0,0,
2728,2738,6,124,-1,0,2729,2730,5,14,0,0,2730,2738,6,124,-1,0,2731,2732,
5,70,0,0,2732,2733,5,30,0,0,2733,2734,3,32,16,0,2734,2735,5,31,0,0,2735,
2736,6,124,-1,0,2736,2738,1,0,0,0,2737,2699,1,0,0,0,2737,2701,1,0,0,0,
2737,2703,1,0,0,0,2737,2705,1,0,0,0,2737,2707,1,0,0,0,2737,2709,1,0,0,
0,2737,2711,1,0,0,0,2737,2713,1,0,0,0,2737,2715,1,0,0,0,2737,2717,1,0,
0,0,2737,2719,1,0,0,0,2737,2721,1,0,0,0,2737,2723,1,0,0,0,2737,2725,1,
0,0,0,2737,2727,1,0,0,0,2737,2729,1,0,0,0,2737,2731,1,0,0,0,2738,249,1,
0,0,0,2739,2741,3,252,126,0,2740,2739,1,0,0,0,2741,2744,1,0,0,0,2742,2740,
1,0,0,0,2742,2743,1,0,0,0,2743,251,1,0,0,0,2744,2742,1,0,0,0,2745,2783,
3,102,51,0,2746,2747,5,295,0,0,2747,2748,3,32,16,0,2748,2749,6,126,-1,
0,2749,2783,1,0,0,0,2750,2783,3,270,135,0,2751,2752,5,296,0,0,2752,2753,
3,32,16,0,2753,2754,6,126,-1,0,2754,2783,1,0,0,0,2755,2756,5,297,0,0,2756,
2783,6,126,-1,0,2757,2758,5,298,0,0,2758,2783,6,126,-1,0,2759,2783,3,264,
132,0,2760,2783,3,268,134,0,2761,2783,3,254,127,0,2762,2763,3,288,144,
0,2763,2764,6,126,-1,0,2764,2783,1,0,0,0,2765,2766,3,156,78,0,2766,2767,
6,126,-1,0,2767,2783,1,0,0,0,2768,2769,3,90,45,0,2769,2770,6,126,-1,0,
2770,2783,1,0,0,0,2771,2772,3,26,13,0,2772,2773,6,126,-1,0,2773,2783,1,
0,0,0,2774,2775,3,266,133,0,2775,2776,6,126,-1,0,2776,2783,1,0,0,0,2777,
2783,3,40,20,0,2778,2783,3,256,128,0,2779,2783,3,258,129,0,2780,2783,3,
260,130,0,2781,2783,3,262,131,0,2782,2745,1,0,0,0,2782,2746,1,0,0,0,2782,
2750,1,0,0,0,2782,2751,1,0,0,0,2782,2755,1,0,0,0,2782,2757,1,0,0,0,2782,
2759,1,0,0,0,2782,2760,1,0,0,0,2782,2761,1,0,0,0,2782,2762,1,0,0,0,2782,
2765,1,0,0,0,2782,2768,1,0,0,0,2782,2771,1,0,0,0,2782,2774,1,0,0,0,2782,
2777,1,0,0,0,2782,2778,1,0,0,0,2782,2779,1,0,0,0,2782,2780,1,0,0,0,2782,
2781,1,0,0,0,2783,253,1,0,0,0,2784,2786,5,299,0,0,2785,2787,5,157,0,0,
2786,2785,1,0,0,0,2786,2787,1,0,0,0,2787,2788,1,0,0,0,2788,2789,3,114,
57,0,2789,255,1,0,0,0,2790,2791,5,300,0,0,2791,2792,5,42,0,0,2792,2793,
3,32,16,0,2793,2796,5,43,0,0,2794,2795,5,34,0,0,2795,2797,3,0,0,0,2796,
2794,1,0,0,0,2796,2797,1,0,0,0,2797,257,1,0,0,0,2798,2799,5,302,0,0,2799,
2800,3,32,16,0,2800,2801,5,75,0,0,2801,2802,3,32,16,0,2802,259,1,0,0,0,
2803,2804,5,301,0,0,2804,2805,3,128,64,0,2805,2806,5,175,0,0,2806,2807,
3,246,123,0,2807,2819,1,0,0,0,2808,2809,5,301,0,0,2809,2810,5,225,0,0,
2810,2811,3,174,87,0,2811,2812,3,142,71,0,2812,2813,3,128,64,0,2813,2814,
5,175,0,0,2814,2815,3,246,123,0,2815,2816,3,198,99,0,2816,2817,3,114,57,
0,2817,2819,1,0,0,0,2818,2803,1,0,0,0,2818,2808,1,0,0,0,2819,261,1,0,0,
0,2820,2821,5,254,0,0,2821,2822,5,195,0,0,2822,2823,5,42,0,0,2823,2824,
3,32,16,0,2824,2830,5,43,0,0,2825,2826,3,334,167,0,2826,2827,6,131,-1,
0,2827,2829,1,0,0,0,2828,2825,1,0,0,0,2829,2832,1,0,0,0,2830,2828,1,0,
0,0,2830,2831,1,0,0,0,2831,2886,1,0,0,0,2832,2830,1,0,0,0,2833,2834,5,
254,0,0,2834,2835,5,195,0,0,2835,2841,3,2,1,0,2836,2837,3,334,167,0,2837,
2838,6,131,-1,0,2838,2840,1,0,0,0,2839,2836,1,0,0,0,2840,2843,1,0,0,0,
2841,2839,1,0,0,0,2841,2842,1,0,0,0,2842,2886,1,0,0,0,2843,2841,1,0,0,
0,2844,2845,5,254,0,0,2845,2846,5,255,0,0,2846,2847,5,42,0,0,2847,2848,
3,32,16,0,2848,2849,5,43,0,0,2849,2850,5,28,0,0,2850,2856,3,126,63,0,2851,
2852,3,334,167,0,2852,2853,6,131,-1,0,2853,2855,1,0,0,0,2854,2851,1,0,
0,0,2855,2858,1,0,0,0,2856,2854,1,0,0,0,2856,2857,1,0,0,0,2857,2886,1,
0,0,0,2858,2856,1,0,0,0,2859,2860,5,254,0,0,2860,2861,5,255,0,0,2861,2862,
3,2,1,0,2862,2863,5,28,0,0,2863,2869,3,126,63,0,2864,2865,3,334,167,0,
2865,2866,6,131,-1,0,2866,2868,1,0,0,0,2867,2864,1,0,0,0,2868,2871,1,0,
0,0,2869,2867,1,0,0,0,2869,2870,1,0,0,0,2870,2886,1,0,0,0,2871,2869,1,
0,0,0,2872,2873,5,254,0,0,2873,2874,5,42,0,0,2874,2875,3,32,16,0,2875,
2876,5,43,0,0,2876,2882,3,210,105,0,2877,2878,3,334,167,0,2878,2879,6,
131,-1,0,2879,2881,1,0,0,0,2880,2877,1,0,0,0,2881,2884,1,0,0,0,2882,2880,
1,0,0,0,2882,2883,1,0,0,0,2883,2886,1,0,0,0,2884,2882,1,0,0,0,2885,2820,
1,0,0,0,2885,2833,1,0,0,0,2885,2844,1,0,0,0,2885,2859,1,0,0,0,2885,2872,
1,0,0,0,2886,263,1,0,0,0,2887,2888,3,0,0,0,2888,2889,5,75,0,0,2889,2890,
6,132,-1,0,2890,265,1,0,0,0,2891,2892,3,44,22,0,2892,2893,6,133,-1,0,2893,
2898,1,0,0,0,2894,2895,3,46,23,0,2895,2896,6,133,-1,0,2896,2898,1,0,0,
0,2897,2891,1,0,0,0,2897,2894,1,0,0,0,2898,267,1,0,0,0,2899,2900,5,17,
0,0,2900,2901,3,250,125,0,2901,2902,5,18,0,0,2902,269,1,0,0,0,2903,2904,
3,274,137,0,2904,2905,3,272,136,0,2905,271,1,0,0,0,2906,2907,3,276,138,
0,2907,2908,6,136,-1,0,2908,2910,1,0,0,0,2909,2906,1,0,0,0,2910,2911,1,
0,0,0,2911,2909,1,0,0,0,2911,2912,1,0,0,0,2912,273,1,0,0,0,2913,2914,5,
158,0,0,2914,2915,3,268,134,0,2915,2916,6,137,-1,0,2916,2930,1,0,0,0,2917,
2918,5,158,0,0,2918,2919,3,0,0,0,2919,2920,5,159,0,0,2920,2921,3,0,0,0,
2921,2922,6,137,-1,0,2922,2930,1,0,0,0,2923,2924,5,158,0,0,2924,2925,3,
32,16,0,2925,2926,5,159,0,0,2926,2927,3,32,16,0,2927,2928,6,137,-1,0,2928,
2930,1,0,0,0,2929,2913,1,0,0,0,2929,2917,1,0,0,0,2929,2923,1,0,0,0,2930,
275,1,0,0,0,2931,2932,3,280,140,0,2932,2933,3,286,143,0,2933,2934,6,138,
-1,0,2934,2948,1,0,0,0,2935,2936,3,278,139,0,2936,2937,3,286,143,0,2937,
2938,6,138,-1,0,2938,2948,1,0,0,0,2939,2940,3,282,141,0,2940,2941,3,286,
143,0,2941,2942,6,138,-1,0,2942,2948,1,0,0,0,2943,2944,3,284,142,0,2944,
2945,3,286,143,0,2945,2946,6,138,-1,0,2946,2948,1,0,0,0,2947,2931,1,0,
0,0,2947,2935,1,0,0,0,2947,2939,1,0,0,0,2947,2943,1,0,0,0,2948,277,1,0,
0,0,2949,2950,5,160,0,0,2950,2951,3,268,134,0,2951,2952,6,139,-1,0,2952,
2962,1,0,0,0,2953,2954,5,160,0,0,2954,2955,3,0,0,0,2955,2956,6,139,-1,
0,2956,2962,1,0,0,0,2957,2958,5,160,0,0,2958,2959,3,32,16,0,2959,2960,
6,139,-1,0,2960,2962,1,0,0,0,2961,2949,1,0,0,0,2961,2953,1,0,0,0,2961,
2957,1,0,0,0,2962,279,1,0,0,0,2963,2964,5,161,0,0,2964,2965,3,126,63,0,
2965,281,1,0,0,0,2966,2967,5,162,0,0,2967,283,1,0,0,0,2968,2969,5,163,
0,0,2969,285,1,0,0,0,2970,2971,3,268,134,0,2971,2972,6,143,-1,0,2972,2986,
1,0,0,0,2973,2974,5,164,0,0,2974,2975,3,0,0,0,2975,2976,5,159,0,0,2976,
2977,3,0,0,0,2977,2978,6,143,-1,0,2978,2986,1,0,0,0,2979,2980,5,164,0,
0,2980,2981,3,32,16,0,2981,2982,5,159,0,0,2982,2983,3,32,16,0,2983,2984,
6,143,-1,0,2984,2986,1,0,0,0,2985,2970,1,0,0,0,2985,2973,1,0,0,0,2985,
2979,1,0,0,0,2986,287,1,0,0,0,2987,2988,3,290,145,0,2988,2989,3,294,147,
0,2989,289,1,0,0,0,2990,2991,5,165,0,0,2991,2992,3,292,146,0,2992,2993,
3,0,0,0,2993,2994,5,36,0,0,2994,2995,6,145,-1,0,2995,3001,1,0,0,0,2996,
2997,5,165,0,0,2997,2998,3,292,146,0,2998,2999,6,145,-1,0,2999,3001,1,
0,0,0,3000,2990,1,0,0,0,3000,2996,1,0,0,0,3001,291,1,0,0,0,3002,3008,1,
0,0,0,3003,3004,5,166,0,0,3004,3008,6,146,-1,0,3005,3006,5,2,0,0,3006,
3008,6,146,-1,0,3007,3002,1,0,0,0,3007,3003,1,0,0,0,3007,3005,1,0,0,0,
3008,293,1,0,0,0,3009,3010,5,17,0,0,3010,3011,3,296,148,0,3011,3012,5,
18,0,0,3012,3019,1,0,0,0,3013,3015,3,300,150,0,3014,3013,1,0,0,0,3015,
3016,1,0,0,0,3016,3014,1,0,0,0,3016,3017,1,0,0,0,3017,3019,1,0,0,0,3018,
3009,1,0,0,0,3018,3014,1,0,0,0,3019,295,1,0,0,0,3020,3021,3,300,150,0,
3021,3022,5,28,0,0,3022,3024,1,0,0,0,3023,3020,1,0,0,0,3024,3027,1,0,0,
0,3025,3023,1,0,0,0,3025,3026,1,0,0,0,3026,3028,1,0,0,0,3027,3025,1,0,
0,0,3028,3029,3,300,150,0,3029,297,1,0,0,0,3030,3037,1,0,0,0,3031,3032,
5,42,0,0,3032,3033,3,32,16,0,3033,3034,5,43,0,0,3034,3035,6,149,-1,0,3035,
3037,1,0,0,0,3036,3030,1,0,0,0,3036,3031,1,0,0,0,3037,299,1,0,0,0,3038,
3039,5,180,0,0,3039,3040,5,261,0,0,3040,3041,5,30,0,0,3041,3042,3,6,3,
0,3042,3043,5,31,0,0,3043,3044,6,150,-1,0,3044,3087,1,0,0,0,3045,3046,
5,259,0,0,3046,3047,5,30,0,0,3047,3048,3,0,0,0,3048,3049,5,31,0,0,3049,
3050,6,150,-1,0,3050,3087,1,0,0,0,3051,3052,5,259,0,0,3052,3053,3,0,0,
0,3053,3054,6,150,-1,0,3054,3087,1,0,0,0,3055,3056,5,84,0,0,3056,3057,
5,30,0,0,3057,3058,3,304,152,0,3058,3059,5,31,0,0,3059,3060,6,150,-1,0,
3060,3087,1,0,0,0,3061,3062,7,11,0,0,3062,3063,5,30,0,0,3063,3064,3,36,
18,0,3064,3065,5,31,0,0,3065,3066,3,298,149,0,3066,3067,6,150,-1,0,3067,
3087,1,0,0,0,3068,3069,5,186,0,0,3069,3070,5,30,0,0,3070,3071,3,34,17,
0,3071,3072,5,31,0,0,3072,3073,3,298,149,0,3073,3074,6,150,-1,0,3074,3087,
1,0,0,0,3075,3076,7,12,0,0,3076,3077,5,30,0,0,3077,3078,3,32,16,0,3078,
3079,5,31,0,0,3079,3080,3,298,149,0,3080,3081,6,150,-1,0,3081,3087,1,0,
0,0,3082,3083,7,13,0,0,3083,3084,3,298,149,0,3084,3085,6,150,-1,0,3085,
3087,1,0,0,0,3086,3038,1,0,0,0,3086,3045,1,0,0,0,3086,3051,1,0,0,0,3086,
3055,1,0,0,0,3086,3061,1,0,0,0,3086,3068,1,0,0,0,3086,3075,1,0,0,0,3086,
3082,1,0,0,0,3087,301,1,0,0,0,3088,3089,5,187,0,0,3089,3090,5,30,0,0,3090,
3091,3,36,18,0,3091,3092,5,31,0,0,3092,3093,6,151,-1,0,3093,3179,1,0,0,
0,3094,3095,5,188,0,0,3095,3096,5,30,0,0,3096,3097,3,36,18,0,3097,3098,
5,31,0,0,3098,3099,6,151,-1,0,3099,3179,1,0,0,0,3100,3101,5,187,0,0,3101,
3102,5,30,0,0,3102,3103,3,32,16,0,3103,3104,5,31,0,0,3104,3105,6,151,-1,
0,3105,3179,1,0,0,0,3106,3107,5,188,0,0,3107,3108,5,30,0,0,3108,3109,3,
34,17,0,3109,3110,5,31,0,0,3110,3111,6,151,-1,0,3111,3179,1,0,0,0,3112,
3113,5,186,0,0,3113,3114,5,30,0,0,3114,3115,3,34,17,0,3115,3116,5,31,0,
0,3116,3117,6,151,-1,0,3117,3179,1,0,0,0,3118,3119,5,185,0,0,3119,3120,
5,30,0,0,3120,3121,3,32,16,0,3121,3122,5,31,0,0,3122,3123,6,151,-1,0,3123,
3179,1,0,0,0,3124,3125,5,184,0,0,3125,3126,5,30,0,0,3126,3127,3,32,16,
0,3127,3128,5,31,0,0,3128,3129,6,151,-1,0,3129,3179,1,0,0,0,3130,3131,
5,183,0,0,3131,3132,5,30,0,0,3132,3133,3,32,16,0,3133,3134,5,31,0,0,3134,
3135,6,151,-1,0,3135,3179,1,0,0,0,3136,3137,5,192,0,0,3137,3138,5,30,0,
0,3138,3139,3,34,17,0,3139,3140,5,31,0,0,3140,3141,6,151,-1,0,3141,3179,
1,0,0,0,3142,3143,5,191,0,0,3143,3144,5,30,0,0,3144,3145,3,32,16,0,3145,
3146,5,31,0,0,3146,3147,6,151,-1,0,3147,3179,1,0,0,0,3148,3149,5,190,0,
0,3149,3150,5,30,0,0,3150,3151,3,32,16,0,3151,3152,5,31,0,0,3152,3153,
6,151,-1,0,3153,3179,1,0,0,0,3154,3155,5,189,0,0,3155,3156,5,30,0,0,3156,
3157,3,32,16,0,3157,3158,5,31,0,0,3158,3159,6,151,-1,0,3159,3179,1,0,0,
0,3160,3161,5,180,0,0,3161,3162,5,30,0,0,3162,3163,3,32,16,0,3163,3164,
5,31,0,0,3164,3165,6,151,-1,0,3165,3179,1,0,0,0,3166,3167,5,182,0,0,3167,
3168,5,30,0,0,3168,3169,3,166,83,0,3169,3170,5,31,0,0,3170,3171,6,151,
-1,0,3171,3179,1,0,0,0,3172,3173,5,84,0,0,3173,3174,5,30,0,0,3174,3175,
3,304,152,0,3175,3176,5,31,0,0,3176,3177,6,151,-1,0,3177,3179,1,0,0,0,
3178,3088,1,0,0,0,3178,3094,1,0,0,0,3178,3100,1,0,0,0,3178,3106,1,0,0,
0,3178,3112,1,0,0,0,3178,3118,1,0,0,0,3178,3124,1,0,0,0,3178,3130,1,0,
0,0,3178,3136,1,0,0,0,3178,3142,1,0,0,0,3178,3148,1,0,0,0,3178,3154,1,
0,0,0,3178,3160,1,0,0,0,3178,3166,1,0,0,0,3178,3172,1,0,0,0,3179,303,1,
0,0,0,3180,3181,3,306,153,0,3181,3182,6,152,-1,0,3182,3184,1,0,0,0,3183,
3180,1,0,0,0,3184,3187,1,0,0,0,3185,3183,1,0,0,0,3185,3186,1,0,0,0,3186,
305,1,0,0,0,3187,3185,1,0,0,0,3188,3189,7,14,0,0,3189,307,1,0,0,0,3190,
3191,3,302,151,0,3191,3192,6,154,-1,0,3192,3199,1,0,0,0,3193,3194,3,6,
3,0,3194,3195,6,154,-1,0,3195,3199,1,0,0,0,3196,3197,5,178,0,0,3197,3199,
6,154,-1,0,3198,3190,1,0,0,0,3198,3193,1,0,0,0,3198,3196,1,0,0,0,3199,
309,1,0,0,0,3200,3201,3,302,151,0,3201,3202,6,155,-1,0,3202,3372,1,0,0,
0,3203,3204,5,181,0,0,3204,3205,5,30,0,0,3205,3206,5,178,0,0,3206,3207,
5,31,0,0,3207,3372,6,155,-1,0,3208,3209,5,181,0,0,3209,3210,5,30,0,0,3210,
3211,5,263,0,0,3211,3212,5,31,0,0,3212,3372,6,155,-1,0,3213,3214,5,195,
0,0,3214,3215,5,30,0,0,3215,3216,5,39,0,0,3216,3217,5,263,0,0,3217,3218,
5,31,0,0,3218,3372,6,155,-1,0,3219,3220,5,195,0,0,3220,3221,5,30,0,0,3221,
3222,3,118,59,0,3222,3223,5,31,0,0,3223,3224,6,155,-1,0,3224,3372,1,0,
0,0,3225,3226,5,195,0,0,3226,3227,5,30,0,0,3227,3228,5,178,0,0,3228,3229,
5,31,0,0,3229,3372,6,155,-1,0,3230,3231,5,196,0,0,3231,3232,5,30,0,0,3232,
3233,3,310,155,0,3233,3234,5,31,0,0,3234,3235,6,155,-1,0,3235,3372,1,0,
0,0,3236,3237,5,187,0,0,3237,3238,5,42,0,0,3238,3239,3,32,16,0,3239,3240,
5,43,0,0,3240,3241,5,30,0,0,3241,3242,3,312,156,0,3242,3243,5,31,0,0,3243,
3244,6,155,-1,0,3244,3372,1,0,0,0,3245,3246,5,188,0,0,3246,3247,5,42,0,
0,3247,3248,3,32,16,0,3248,3249,5,43,0,0,3249,3250,5,30,0,0,3250,3251,
3,314,157,0,3251,3252,5,31,0,0,3252,3253,6,155,-1,0,3253,3372,1,0,0,0,
3254,3255,5,186,0,0,3255,3256,5,42,0,0,3256,3257,3,32,16,0,3257,3258,5,
43,0,0,3258,3259,5,30,0,0,3259,3260,3,316,158,0,3260,3261,5,31,0,0,3261,
3262,6,155,-1,0,3262,3372,1,0,0,0,3263,3264,5,185,0,0,3264,3265,5,42,0,
0,3265,3266,3,32,16,0,3266,3267,5,43,0,0,3267,3268,5,30,0,0,3268,3269,
3,318,159,0,3269,3270,5,31,0,0,3270,3271,6,155,-1,0,3271,3372,1,0,0,0,
3272,3273,5,184,0,0,3273,3274,5,42,0,0,3274,3275,3,32,16,0,3275,3276,5,
43,0,0,3276,3277,5,30,0,0,3277,3278,3,320,160,0,3278,3279,5,31,0,0,3279,
3280,6,155,-1,0,3280,3372,1,0,0,0,3281,3282,5,183,0,0,3282,3283,5,42,0,
0,3283,3284,3,32,16,0,3284,3285,5,43,0,0,3285,3286,5,30,0,0,3286,3287,
3,322,161,0,3287,3288,5,31,0,0,3288,3289,6,155,-1,0,3289,3372,1,0,0,0,
3290,3291,5,192,0,0,3291,3292,5,42,0,0,3292,3293,3,32,16,0,3293,3294,5,
43,0,0,3294,3295,5,30,0,0,3295,3296,3,316,158,0,3296,3297,5,31,0,0,3297,
3298,6,155,-1,0,3298,3372,1,0,0,0,3299,3300,5,191,0,0,3300,3301,5,42,0,
0,3301,3302,3,32,16,0,3302,3303,5,43,0,0,3303,3304,5,30,0,0,3304,3305,
3,318,159,0,3305,3306,5,31,0,0,3306,3307,6,155,-1,0,3307,3372,1,0,0,0,
3308,3309,5,190,0,0,3309,3310,5,42,0,0,3310,3311,3,32,16,0,3311,3312,5,
43,0,0,3312,3313,5,30,0,0,3313,3314,3,320,160,0,3314,3315,5,31,0,0,3315,
3316,6,155,-1,0,3316,3372,1,0,0,0,3317,3318,5,189,0,0,3318,3319,5,42,0,
0,3319,3320,3,32,16,0,3320,3321,5,43,0,0,3321,3322,5,30,0,0,3322,3323,
3,322,161,0,3323,3324,5,31,0,0,3324,3325,6,155,-1,0,3325,3372,1,0,0,0,
3326,3327,5,180,0,0,3327,3328,5,42,0,0,3328,3329,3,32,16,0,3329,3330,5,
43,0,0,3330,3331,5,30,0,0,3331,3332,3,320,160,0,3332,3333,5,31,0,0,3333,
3334,6,155,-1,0,3334,3372,1,0,0,0,3335,3336,5,182,0,0,3336,3337,5,42,0,
0,3337,3338,3,32,16,0,3338,3339,5,43,0,0,3339,3340,5,30,0,0,3340,3341,
3,324,162,0,3341,3342,5,31,0,0,3342,3343,6,155,-1,0,3343,3372,1,0,0,0,
3344,3345,5,181,0,0,3345,3346,5,42,0,0,3346,3347,3,32,16,0,3347,3348,5,
43,0,0,3348,3349,5,30,0,0,3349,3350,3,326,163,0,3350,3351,5,31,0,0,3351,
3352,6,155,-1,0,3352,3372,1,0,0,0,3353,3354,5,195,0,0,3354,3355,5,42,0,
0,3355,3356,3,32,16,0,3356,3357,5,43,0,0,3357,3358,5,30,0,0,3358,3359,
3,328,164,0,3359,3360,5,31,0,0,3360,3361,6,155,-1,0,3361,3372,1,0,0,0,
3362,3363,5,196,0,0,3363,3364,5,42,0,0,3364,3365,3,32,16,0,3365,3366,5,
43,0,0,3366,3367,5,30,0,0,3367,3368,3,332,166,0,3368,3369,5,31,0,0,3369,
3370,6,155,-1,0,3370,3372,1,0,0,0,3371,3200,1,0,0,0,3371,3203,1,0,0,0,
3371,3208,1,0,0,0,3371,3213,1,0,0,0,3371,3219,1,0,0,0,3371,3225,1,0,0,
0,3371,3230,1,0,0,0,3371,3236,1,0,0,0,3371,3245,1,0,0,0,3371,3254,1,0,
0,0,3371,3263,1,0,0,0,3371,3272,1,0,0,0,3371,3281,1,0,0,0,3371,3290,1,
0,0,0,3371,3299,1,0,0,0,3371,3308,1,0,0,0,3371,3317,1,0,0,0,3371,3326,
1,0,0,0,3371,3335,1,0,0,0,3371,3344,1,0,0,0,3371,3353,1,0,0,0,3371,3362,
1,0,0,0,3372,311,1,0,0,0,3373,3374,3,36,18,0,3374,3375,6,156,-1,0,3375,
3380,1,0,0,0,3376,3377,3,32,16,0,3377,3378,6,156,-1,0,3378,3380,1,0,0,
0,3379,3373,1,0,0,0,3379,3376,1,0,0,0,3380,3383,1,0,0,0,3381,3379,1,0,
0,0,3381,3382,1,0,0,0,3382,313,1,0,0,0,3383,3381,1,0,0,0,3384,3385,3,36,
18,0,3385,3386,6,157,-1,0,3386,3391,1,0,0,0,3387,3388,3,34,17,0,3388,3389,
6,157,-1,0,3389,3391,1,0,0,0,3390,3384,1,0,0,0,3390,3387,1,0,0,0,3391,
3394,1,0,0,0,3392,3390,1,0,0,0,3392,3393,1,0,0,0,3393,315,1,0,0,0,3394,
3392,1,0,0,0,3395,3396,3,34,17,0,3396,3397,6,158,-1,0,3397,3399,1,0,0,
0,3398,3395,1,0,0,0,3399,3402,1,0,0,0,3400,3398,1,0,0,0,3400,3401,1,0,
0,0,3401,317,1,0,0,0,3402,3400,1,0,0,0,3403,3404,3,32,16,0,3404,3405,6,
159,-1,0,3405,3407,1,0,0,0,3406,3403,1,0,0,0,3407,3410,1,0,0,0,3408,3406,
1,0,0,0,3408,3409,1,0,0,0,3409,319,1,0,0,0,3410,3408,1,0,0,0,3411,3412,
3,32,16,0,3412,3413,6,160,-1,0,3413,3415,1,0,0,0,3414,3411,1,0,0,0,3415,
3418,1,0,0,0,3416,3414,1,0,0,0,3416,3417,1,0,0,0,3417,321,1,0,0,0,3418,
3416,1,0,0,0,3419,3420,3,32,16,0,3420,3421,6,161,-1,0,3421,3423,1,0,0,
0,3422,3419,1,0,0,0,3423,3426,1,0,0,0,3424,3422,1,0,0,0,3424,3425,1,0,
0,0,3425,323,1,0,0,0,3426,3424,1,0,0,0,3427,3428,3,166,83,0,3428,3429,
6,162,-1,0,3429,3431,1,0,0,0,3430,3427,1,0,0,0,3431,3434,1,0,0,0,3432,
3430,1,0,0,0,3432,3433,1,0,0,0,3433,325,1,0,0,0,3434,3432,1,0,0,0,3435,
3436,5,178,0,0,3436,3440,6,163,-1,0,3437,3438,5,263,0,0,3438,3440,6,163,
-1,0,3439,3435,1,0,0,0,3439,3437,1,0,0,0,3440,3443,1,0,0,0,3441,3439,1,
0,0,0,3441,3442,1,0,0,0,3442,327,1,0,0,0,3443,3441,1,0,0,0,3444,3445,3,
330,165,0,3445,3446,6,164,-1,0,3446,3448,1,0,0,0,3447,3444,1,0,0,0,3448,
3451,1,0,0,0,3449,3447,1,0,0,0,3449,3450,1,0,0,0,3450,329,1,0,0,0,3451,
3449,1,0,0,0,3452,3453,5,178,0,0,3453,3461,6,165,-1,0,3454,3455,5,39,0,
0,3455,3456,5,263,0,0,3456,3461,6,165,-1,0,3457,3458,3,118,59,0,3458,3459,
6,165,-1,0,3459,3461,1,0,0,0,3460,3452,1,0,0,0,3460,3454,1,0,0,0,3460,
3457,1,0,0,0,3461,331,1,0,0,0,3462,3463,3,310,155,0,3463,3464,6,166,-1,
0,3464,3466,1,0,0,0,3465,3462,1,0,0,0,3466,3469,1,0,0,0,3467,3465,1,0,
0,0,3467,3468,1,0,0,0,3468,333,1,0,0,0,3469,3467,1,0,0,0,3470,3471,3,44,
22,0,3471,3472,6,167,-1,0,3472,3480,1,0,0,0,3473,3474,3,46,23,0,3474,3475,
6,167,-1,0,3475,3480,1,0,0,0,3476,3477,3,2,1,0,3477,3478,6,167,-1,0,3478,
3480,1,0,0,0,3479,3470,1,0,0,0,3479,3473,1,0,0,0,3479,3476,1,0,0,0,3480,
335,1,0,0,0,3481,3482,5,167,0,0,3482,3483,5,36,0,0,3483,3484,5,30,0,0,
3484,3485,3,304,152,0,3485,3486,5,31,0,0,3486,3487,6,168,-1,0,3487,3514,
1,0,0,0,3488,3489,5,168,0,0,3489,3490,3,38,19,0,3490,3491,5,75,0,0,3491,
3492,3,38,19,0,3492,3493,5,75,0,0,3493,3494,3,38,19,0,3494,3495,5,75,0,
0,3495,3496,3,38,19,0,3496,3497,6,168,-1,0,3497,3514,1,0,0,0,3498,3499,
5,169,0,0,3499,3500,3,6,3,0,3500,3501,6,168,-1,0,3501,3514,1,0,0,0,3502,
3503,5,169,0,0,3503,3504,5,36,0,0,3504,3505,5,30,0,0,3505,3506,3,304,152,
0,3506,3507,5,31,0,0,3507,3508,6,168,-1,0,3508,3514,1,0,0,0,3509,3510,
3,334,167,0,3510,3511,6,168,-1,0,3511,3514,1,0,0,0,3512,3514,3,40,20,0,
3513,3481,1,0,0,0,3513,3488,1,0,0,0,3513,3498,1,0,0,0,3513,3502,1,0,0,
0,3513,3509,1,0,0,0,3513,3512,1,0,0,0,3514,337,1,0,0,0,3515,3516,3,340,
170,0,3516,3517,5,17,0,0,3517,3518,3,342,171,0,3518,3519,5,18,0,0,3519,
3520,6,169,-1,0,3520,339,1,0,0,0,3521,3522,5,25,0,0,3522,3523,5,40,0,0,
3523,3524,3,100,50,0,3524,3525,3,2,1,0,3525,3526,6,170,-1,0,3526,3536,
1,0,0,0,3527,3528,5,25,0,0,3528,3529,5,40,0,0,3529,3530,3,100,50,0,3530,
3531,3,2,1,0,3531,3532,5,34,0,0,3532,3533,3,2,1,0,3533,3534,6,170,-1,0,
3534,3536,1,0,0,0,3535,3521,1,0,0,0,3535,3527,1,0,0,0,3536,341,1,0,0,0,
3537,3538,3,344,172,0,3538,3539,6,171,-1,0,3539,3541,1,0,0,0,3540,3537,
1,0,0,0,3541,3544,1,0,0,0,3542,3540,1,0,0,0,3542,3543,1,0,0,0,3543,343,
1,0,0,0,3544,3542,1,0,0,0,3545,3546,5,179,0,0,3546,3547,5,36,0,0,3547,
3548,5,30,0,0,3548,3549,3,304,152,0,3549,3550,5,31,0,0,3550,3551,6,172,
-1,0,3551,3565,1,0,0,0,3552,3553,3,336,168,0,3553,3554,6,172,-1,0,3554,
3565,1,0,0,0,3555,3556,5,170,0,0,3556,3557,5,36,0,0,3557,3558,5,30,0,0,
3558,3559,3,304,152,0,3559,3560,5,31,0,0,3560,3561,6,172,-1,0,3561,3565,
1,0,0,0,3562,3563,5,55,0,0,3563,3565,6,172,-1,0,3564,3545,1,0,0,0,3564,
3552,1,0,0,0,3564,3555,1,0,0,0,3564,3562,1,0,0,0,3565,345,1,0,0,0,3566,
3567,3,348,174,0,3567,3568,5,17,0,0,3568,3569,3,356,178,0,3569,3570,5,
18,0,0,3570,3571,6,173,-1,0,3571,347,1,0,0,0,3572,3573,5,50,0,0,3573,3574,
5,40,0,0,3574,3575,3,352,176,0,3575,3576,3,2,1,0,3576,3577,6,174,-1,0,
3577,349,1,0,0,0,3578,3579,5,300,0,0,3579,3580,3,352,176,0,3580,3581,3,
2,1,0,3581,3582,6,175,-1,0,3582,351,1,0,0,0,3583,3584,3,354,177,0,3584,
3585,6,176,-1,0,3585,3587,1,0,0,0,3586,3583,1,0,0,0,3587,3590,1,0,0,0,
3588,3586,1,0,0,0,3588,3589,1,0,0,0,3589,353,1,0,0,0,3590,3588,1,0,0,0,
3591,3607,5,52,0,0,3592,3607,5,51,0,0,3593,3607,5,171,0,0,3594,3595,5,
62,0,0,3595,3607,5,51,0,0,3596,3597,5,62,0,0,3597,3607,5,52,0,0,3598,3599,
5,62,0,0,3599,3607,5,63,0,0,3600,3601,5,62,0,0,3601,3607,5,64,0,0,3602,
3603,5,62,0,0,3603,3607,5,65,0,0,3604,3605,5,62,0,0,3605,3607,5,66,0,0,
3606,3591,1,0,0,0,3606,3592,1,0,0,0,3606,3593,1,0,0,0,3606,3594,1,0,0,
0,3606,3596,1,0,0,0,3606,3598,1,0,0,0,3606,3600,1,0,0,0,3606,3602,1,0,
0,0,3606,3604,1,0,0,0,3607,355,1,0,0,0,3608,3609,3,358,179,0,3609,3610,
6,178,-1,0,3610,3612,1,0,0,0,3611,3608,1,0,0,0,3612,3615,1,0,0,0,3613,
3611,1,0,0,0,3613,3614,1,0,0,0,3614,357,1,0,0,0,3615,3613,1,0,0,0,3616,
3617,5,21,0,0,3617,3618,3,2,1,0,3618,3619,6,179,-1,0,3619,3642,1,0,0,0,
3620,3621,5,50,0,0,3621,3622,5,40,0,0,3622,3623,3,120,60,0,3623,3624,6,
179,-1,0,3624,3642,1,0,0,0,3625,3626,5,25,0,0,3626,3627,5,40,0,0,3627,
3628,3,2,1,0,3628,3629,6,179,-1,0,3629,3642,1,0,0,0,3630,3631,3,178,89,
0,3631,3632,6,179,-1,0,3632,3642,1,0,0,0,3633,3634,5,50,0,0,3634,3635,
3,32,16,0,3635,3636,6,179,-1,0,3636,3642,1,0,0,0,3637,3638,3,334,167,0,
3638,3639,6,179,-1,0,3639,3642,1,0,0,0,3640,3642,3,40,20,0,3641,3616,1,
0,0,0,3641,3620,1,0,0,0,3641,3625,1,0,0,0,3641,3630,1,0,0,0,3641,3633,
1,0,0,0,3641,3637,1,0,0,0,3641,3640,1,0,0,0,3642,359,1,0,0,0,3643,3644,
3,362,181,0,3644,3645,5,17,0,0,3645,3646,3,368,184,0,3646,3647,5,18,0,
0,3647,3648,6,180,-1,0,3648,361,1,0,0,0,3649,3650,5,273,0,0,3650,3651,
3,364,182,0,3651,3652,3,2,1,0,3652,3653,6,181,-1,0,3653,3662,1,0,0,0,3654,
3655,5,273,0,0,3655,3656,3,364,182,0,3656,3657,3,2,1,0,3657,3658,5,34,
0,0,3658,3659,3,2,1,0,3659,3660,6,181,-1,0,3660,3662,1,0,0,0,3661,3649,
1,0,0,0,3661,3654,1,0,0,0,3662,363,1,0,0,0,3663,3664,3,366,183,0,3664,
3665,6,182,-1,0,3665,3667,1,0,0,0,3666,3663,1,0,0,0,3667,3670,1,0,0,0,
3668,3666,1,0,0,0,3668,3669,1,0,0,0,3669,365,1,0,0,0,3670,3668,1,0,0,0,
3671,3672,7,15,0,0,3672,367,1,0,0,0,3673,3674,3,370,185,0,3674,3675,6,
184,-1,0,3675,3677,1,0,0,0,3676,3673,1,0,0,0,3677,3680,1,0,0,0,3678,3676,
1,0,0,0,3678,3679,1,0,0,0,3679,369,1,0,0,0,3680,3678,1,0,0,0,3681,3682,
5,21,0,0,3682,3683,3,2,1,0,3683,3684,5,44,0,0,3684,3685,3,32,16,0,3685,
3686,6,185,-1,0,3686,3697,1,0,0,0,3687,3688,5,25,0,0,3688,3689,5,40,0,
0,3689,3690,3,2,1,0,3690,3691,6,185,-1,0,3691,3697,1,0,0,0,3692,3693,3,
334,167,0,3693,3694,6,185,-1,0,3694,3697,1,0,0,0,3695,3697,3,40,20,0,3696,
3681,1,0,0,0,3696,3687,1,0,0,0,3696,3692,1,0,0,0,3696,3695,1,0,0,0,3697,
371,1,0,0,0,184,382,390,399,408,497,548,559,589,596,614,646,674,714,725,
735,737,748,750,758,780,793,809,833,906,913,920,925,934,945,954,965,976,
989,993,1001,1017,1024,1033,1061,1139,1141,1155,1161,1170,1172,1181,1195,
1209,1217,1225,1229,1268,1276,1287,1301,1309,1325,1335,1338,1362,1509,
1519,1528,1531,1613,1622,1654,1714,1754,1770,1780,1810,1838,1847,1853,
1870,1878,1936,1946,1964,1982,2001,2022,2041,2056,2064,2076,2096,2103,
2108,2119,2131,2241,2253,2269,2283,2292,2305,2307,2350,2361,2368,2376,
2384,2397,2403,2409,2414,2443,2451,2465,2470,2495,2504,2515,2519,2526,
2546,2555,2557,2572,2619,2629,2631,2638,2644,2688,2697,2737,2742,2782,
2786,2796,2818,2830,2841,2856,2869,2882,2885,2897,2911,2929,2947,2961,
2985,3000,3007,3016,3018,3025,3036,3086,3178,3185,3198,3371,3379,3381,
3390,3392,3400,3408,3416,3424,3432,3439,3441,3449,3460,3467,3479,3513,
3535,3542,3564,3588,3606,3613,3641,3661,3668,3678,3696
};
public static readonly ATN _ATN =
new ATNDeserializer().Deserialize(_serializedATN);
}
} // namespace ILAssembler