public JavaParseResultEventArgs(ITextSnapshot snapshot, IList<ParseErrorEventArgs> errors, TimeSpan elapsedTime, IList<IToken> tokens, IRuleReturnScope result, IList<CommonTree> types)
     : base(snapshot, errors, elapsedTime, tokens, result)
 {
     _types = types as ReadOnlyCollection<CommonTree>;
     if (_types == null)
         _types = new ReadOnlyCollection<CommonTree>(types ?? new CommonTree[0]);
 }
        public AntlrParseResultEventArgs(ITextSnapshot snapshot, IList<ParseErrorEventArgs> errors, TimeSpan elapsedTime, IList<IToken> tokens, IRuleReturnScope result)
            : base(snapshot, errors, elapsedTime)
        {
            Tokens = tokens as ReadOnlyCollection<IToken>;
            if (Tokens == null)
                Tokens = new ReadOnlyCollection<IToken>(tokens ?? new IToken[0]);

            Result = result;
        }
Beispiel #3
0
        public AntlrParseResultEventArgs(ITextSnapshot snapshot, IList <ParseErrorEventArgs> errors, TimeSpan elapsedTime, IList <IToken> tokens, IRuleReturnScope result)
            : base(snapshot, errors, elapsedTime)
        {
            Tokens = tokens as ReadOnlyCollection <IToken>;
            if (Tokens == null)
            {
                Tokens = new ReadOnlyCollection <IToken>(tokens ?? new IToken[0]);
            }

            Result = result;
        }
Beispiel #4
0
        public StringTemplateParseResultEventArgs(ITextSnapshot snapshot, IList <ParseErrorEventArgs> errors, TimeSpan elapsedTime, IList <IToken> tokens, IRuleReturnScope result, IList <Antlr4.Runtime.IToken> tokens4, Antlr4.Runtime.ParserRuleContext result4)
            : base(snapshot, errors, elapsedTime, tokens, result)
        {
            Tokens4 = tokens as ReadOnlyCollection <Antlr4.Runtime.IToken>;
            if (Tokens == null)
            {
                Tokens4 = new ReadOnlyCollection <Antlr4.Runtime.IToken>(tokens4 ?? new Antlr4.Runtime.IToken[0]);
            }

            Result4 = result4;
        }
 public JavaParseResultEventArgs(ITextSnapshot snapshot, IList <ParseErrorEventArgs> errors, TimeSpan elapsedTime, IList <IToken> tokens, IRuleReturnScope result, IList <CommonTree> types)
     : base(snapshot, errors, elapsedTime, tokens, result)
 {
     _types = types as ReadOnlyCollection <CommonTree>;
     if (_types == null)
     {
         _types = new ReadOnlyCollection <CommonTree>(types ?? new CommonTree[0]);
     }
 }