public FunctionDeclaration( QualifiedMemberName name, Declaration parent, Declaration parentScope, string asTypeName, AsTypeClauseContext asTypeContext, string typeHint, Accessibility accessibility, ParserRuleContext context, ParserRuleContext attributesPassContext, Selection selection, bool isArray, bool isUserDefined, IEnumerable <IParseTreeAnnotation> annotations, Attributes attributes) : base( name, parent, parentScope, asTypeName, asTypeContext, typeHint, accessibility, DeclarationType.Function, context, attributesPassContext, selection, isArray, isUserDefined, annotations, attributes) { }
protected ModuleBodyElementDeclaration( QualifiedMemberName name, Declaration parent, Declaration parentScope, string asTypeName, AsTypeClauseContext asTypeContext, string typeHint, Accessibility accessibility, DeclarationType type, ParserRuleContext context, ParserRuleContext attributesPassContext, Selection selection, bool isArray, bool isUserDefined, IEnumerable <IParseTreeAnnotation> annotations, Attributes attributes) : base( name, parent, parentScope, asTypeName, typeHint, false, false, accessibility, type, context, attributesPassContext, selection, isArray, asTypeContext, isUserDefined, annotations, attributes) { if (!(parent is ModuleDeclaration module)) { return; } module.AddMember(this); _interface = new Lazy <(bool IsInterfaceImplementation, ClassModuleDeclaration InterfaceImplemented)>(() => ResolveInterface(this), true); _implemented = new Lazy <Declaration>(() => MemberImplemented(this), true); }
public AsTypeClauseContext asTypeClause() { AsTypeClauseContext _localctx = new AsTypeClauseContext(Context, State); EnterRule(_localctx, 260, RULE_asTypeClause); try { EnterOuterAlt(_localctx, 1); { State = 2636; Match(AS); State = 2637; Match(WS); State = 2640; switch ( Interpreter.AdaptivePredict(TokenStream,442,Context) ) { case 1: { State = 2638; Match(NEW); State = 2639; Match(WS); } break; } State = 2642; type(); State = 2645; switch ( Interpreter.AdaptivePredict(TokenStream,443,Context) ) { case 1: { State = 2643; Match(WS); State = 2644; fieldLength(); } break; } } } catch (RecognitionException re) { _localctx.exception = re; ErrorHandler.ReportError(this, re); ErrorHandler.Recover(this, re); } finally { ExitRule(); } return _localctx; }