Rules\Parser\Parser.cs (86)
940Token token = parserContext.CurrentToken;
1023if (parserContext.CurrentToken.TokenID == TokenID.EndOfInput)
1024throw new RuleSyntaxException(ErrorNumbers.Error_EmptyExpression, Messages.Parser_EmptyExpression, parserContext.CurrentToken.StartPosition);
1028if (parserContext.CurrentToken.TokenID != TokenID.EndOfInput)
1029throw new RuleSyntaxException(ErrorNumbers.Error_ExtraCharactersIgnored, Messages.Parser_ExtraCharactersIgnored, parserContext.CurrentToken.StartPosition);
1052if (parserContext.CurrentToken.TokenID != TokenID.EndOfInput)
1053throw new RuleSyntaxException(ErrorNumbers.Error_ExtraCharactersIgnored, Messages.Parser_ExtraCharactersIgnored, parserContext.CurrentToken.StartPosition);
1076while (parserContext.CurrentToken.TokenID != TokenID.EndOfInput)
1086while (parserContext.CurrentToken.TokenID == TokenID.Semicolon)
1103Token statementToken = parserContext.CurrentToken;
1117if (parserContext.CurrentToken.TokenID != TokenID.LParen)
1120throw new RuleSyntaxException(ErrorNumbers.Error_MissingLparenAfterCommand, message, parserContext.CurrentToken.StartPosition);
1127Token updateArgToken = parserContext.CurrentToken;
1155if (parserContext.CurrentToken.TokenID != TokenID.RParen)
1156throw new RuleSyntaxException(ErrorNumbers.Error_MissingRParenAfterArgumentList, Messages.Parser_MissingRParenAfterArgumentList, parserContext.CurrentToken.StartPosition);
1173parserContext.CurrentToken.TokenID == TokenID.LParen &&
1179int lparenPosition = parserContext.CurrentToken.StartPosition;
1225Token token = parserContext.CurrentToken;
1274Token operatorToken = parserContext.CurrentToken;
1300Token currentToken = parserContext.CurrentToken;
1338if (type == null || parserContext.CurrentToken.TokenID != TokenID.RParen)
1354if (parserContext.CurrentToken.TokenID != TokenID.RParen)
1355throw new RuleSyntaxException(ErrorNumbers.Error_MissingRParenInSubexpression, Messages.Parser_MissingRParenInSubexpression, parserContext.CurrentToken.StartPosition);
1407if (parserContext.CurrentToken.TokenID == TokenID.Dot)
1411else if (parserContext.CurrentToken.TokenID == TokenID.LBracket)
1423System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.LBracket);
1424int lbracketPosition = parserContext.CurrentToken.StartPosition;
1464while (parserContext.CurrentToken.TokenID == TokenID.Comma)
1472if (parserContext.CurrentToken.TokenID != TokenID.RBracket)
1473throw new RuleSyntaxException(ErrorNumbers.Error_MissingCloseSquareBracket, Messages.Parser_MissingCloseSquareBracket, parserContext.CurrentToken.StartPosition);
1494System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.Dot);
1506throw new RuleSyntaxException(ErrorNumbers.Error_MissingIdentifierAfterDot, Messages.Parser_MissingIdentifierAfterDot, parserContext.CurrentToken.StartPosition);
1529System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.LParen);
1532int lparenPosition = parserContext.CurrentToken.StartPosition;
1536if (parserContext.CurrentToken.TokenID == TokenID.EndOfInput && parserContext.provideIntellisense)
1556if (parserContext.CurrentToken.TokenID != TokenID.RParen)
1560while (parserContext.CurrentToken.TokenID == TokenID.Comma)
1568if (parserContext.CurrentToken.TokenID != TokenID.RParen)
1569throw new RuleSyntaxException(ErrorNumbers.Error_MissingRParenAfterArgumentList, Messages.Parser_MissingRParenAfterArgumentList, parserContext.CurrentToken.StartPosition);
1666System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.LParen);
1671int lparenPosition = parserContext.CurrentToken.StartPosition;
1674if (parserContext.CurrentToken.TokenID == TokenID.EndOfInput && parserContext.provideIntellisense)
1717Token token = parserContext.CurrentToken;
1770Token token = parserContext.CurrentToken;
1781token = parserContext.CurrentToken;
1783throw new RuleSyntaxException(ErrorNumbers.Error_MissingRParenInSubexpression, Messages.Parser_MissingRParenInSubexpression, parserContext.CurrentToken.StartPosition);
1849Token token = parserContext.CurrentToken;
1854if (parserContext.provideIntellisense && parserContext.CurrentToken.TokenID == TokenID.EndOfInput)
1869if (parserContext.CurrentToken.TokenID != TokenID.LParen)
1901parserContext.CurrentToken.StartPosition);
1912System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.LParen);
1915int lparenPosition = parserContext.CurrentToken.StartPosition;
1918if (parserContext.CurrentToken.TokenID == TokenID.EndOfInput && parserContext.provideIntellisense)
1969if (parserContext.CurrentToken.TokenID != TokenID.LCurlyBrace)
1975if (parserContext.CurrentToken.TokenID != TokenID.RCurlyBrace)
1978while (parserContext.CurrentToken.TokenID == TokenID.Comma)
1984if (parserContext.CurrentToken.TokenID != TokenID.RCurlyBrace)
1987parserContext.CurrentToken.StartPosition);
2009Token token = parserContext.CurrentToken;
2039Token token = parserContext.CurrentToken;
2045if (parserContext.CurrentToken.TokenID == TokenID.LParen)
2101int typePosition = parserContext.CurrentToken.StartPosition;
2128throw new RuleSyntaxException(ErrorNumbers.Error_BadTypeArgCount, message, parserContext.CurrentToken.StartPosition);
2137token = parserContext.CurrentToken;
2150Token token = parserContext.CurrentToken;
2184if (parserContext.CurrentToken.TokenID == TokenID.Dot)
2198if (parserContext.CurrentToken.TokenID == TokenID.LParen)
2203int lparenPosition = parserContext.CurrentToken.StartPosition;
2228System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.Dot);
2232while (parserContext.CurrentToken.TokenID == TokenID.Dot)
2248throw new RuleSyntaxException(ErrorNumbers.Error_MissingIdentifierAfterDot, Messages.Parser_MissingIdentifierAfterDot, parserContext.CurrentToken.StartPosition);
2315System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.Less);
2328throw new RuleSyntaxException(ErrorNumbers.Error_BadTypeArgCount, message, parserContext.CurrentToken.StartPosition);
2333System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.Less);
2348} while (parserContext.CurrentToken.TokenID == TokenID.Comma);
2350if (parserContext.CurrentToken.TokenID != TokenID.Greater)
2351throw new RuleSyntaxException(ErrorNumbers.Error_MissingCloseAngleBracket, Messages.Parser_MissingCloseAngleBracket, parserContext.CurrentToken.StartPosition);
2373Token currentToken = parserContext.CurrentToken;
2407Token currentToken = parserContext.CurrentToken;
2411if ((type != null) && (parserContext.CurrentToken.TokenID == TokenID.LBracket))
2420if (parserContext.CurrentToken.TokenID != TokenID.RBracket)
2423parserContext.CurrentToken.StartPosition);
2448while (parserContext.CurrentToken.TokenID == TokenID.LBracket)
2454if (parserContext.CurrentToken.TokenID == TokenID.RBracket)
2457throw new RuleSyntaxException(ErrorNumbers.Error_MissingCloseSquareBracket, Messages.Parser_MissingCloseSquareBracket, parserContext.CurrentToken.StartPosition);
2792if (parserContext.CurrentToken.TokenID == TokenID.Assign && !assignIsEquality)