UI\WebControls\Dynamic.cs (111)
442public TokenId id;
687ValidateToken(TokenId.End, AtlasWeb.ExpressionParser_SyntaxError);
705if (token.id != TokenId.Comma) break;
708ValidateToken(TokenId.End, AtlasWeb.ExpressionParser_SyntaxError);
717if (token.id == TokenId.Question) {
720ValidateToken(TokenId.Colon, AtlasWeb.ExpressionParser_ColonExpected);
731while (token.id == TokenId.DoubleBar || TokenIdentifierIs("or")) {
744while (token.id == TokenId.DoubleAmphersand || TokenIdentifierIs("and")) {
757while (token.id == TokenId.Equal || token.id == TokenId.DoubleEqual ||
758token.id == TokenId.ExclamationEqual || token.id == TokenId.LessGreater ||
759token.id == TokenId.GreaterThan || token.id == TokenId.GreaterThanEqual ||
760token.id == TokenId.LessThan || token.id == TokenId.LessThanEqual) {
764bool isEquality = op.id == TokenId.Equal || op.id == TokenId.DoubleEqual ||
765op.id == TokenId.ExclamationEqual || op.id == TokenId.LessGreater;
798case TokenId.Equal:
799case TokenId.DoubleEqual:
802case TokenId.ExclamationEqual:
803case TokenId.LessGreater:
806case TokenId.GreaterThan:
809case TokenId.GreaterThanEqual:
812case TokenId.LessThan:
815case TokenId.LessThanEqual:
826while (token.id == TokenId.Plus || token.id == TokenId.Minus ||
827token.id == TokenId.Amphersand) {
832case TokenId.Plus:
834goto case TokenId.Amphersand;
838case TokenId.Minus:
842case TokenId.Amphersand:
853while (token.id == TokenId.Asterisk || token.id == TokenId.Slash ||
854token.id == TokenId.Percent || TokenIdentifierIs("mod")) {
860case TokenId.Asterisk:
863case TokenId.Slash:
866case TokenId.Percent:
867case TokenId.Identifier:
877if (token.id == TokenId.Minus || token.id == TokenId.Exclamation ||
881if (op.id == TokenId.Minus && (token.id == TokenId.IntegerLiteral ||
882token.id == TokenId.RealLiteral)) {
888if (op.id == TokenId.Minus) {
904if (token.id == TokenId.Dot) {
908else if (token.id == TokenId.OpenBracket) {
920case TokenId.Identifier:
922case TokenId.StringLiteral:
924case TokenId.IntegerLiteral:
926case TokenId.RealLiteral:
928case TokenId.OpenParen:
936ValidateToken(TokenId.StringLiteral);
957ValidateToken(TokenId.IntegerLiteral);
981ValidateToken(TokenId.RealLiteral);
1006ValidateToken(TokenId.OpenParen, AtlasWeb.ExpressionParser_OpenParenExpected);
1009ValidateToken(TokenId.CloseParen, AtlasWeb.ExpressionParser_CloseParenOrOperatorExpected);
1015ValidateToken(TokenId.Identifier);
1083ValidateToken(TokenId.OpenParen, AtlasWeb.ExpressionParser_OpenParenExpected);
1103if (token.id != TokenId.Comma) break;
1106ValidateToken(TokenId.CloseParen, AtlasWeb.ExpressionParser_CloseParenOrCommaExpected);
1128if (token.id == TokenId.Question) {
1134if (token.id == TokenId.OpenParen) {
1148ValidateToken(TokenId.Dot, AtlasWeb.ExpressionParser_DotOrOpenParenExpected);
1176if (token.id == TokenId.OpenParen) {
1254ValidateToken(TokenId.OpenParen, AtlasWeb.ExpressionParser_OpenParenExpected);
1256Expression[] args = token.id != TokenId.CloseParen ? ParseArguments() : new Expression[0];
1257ValidateToken(TokenId.CloseParen, AtlasWeb.ExpressionParser_CloseParenOrCommaExpected);
1266if (token.id != TokenId.Comma) break;
1274ValidateToken(TokenId.OpenBracket, AtlasWeb.ExpressionParser_OpenParenExpected);
1277ValidateToken(TokenId.CloseBracket, AtlasWeb.ExpressionParser_CloseBracketOrCommaExpected);
1820TokenId t;
1827t = TokenId.ExclamationEqual;
1830t = TokenId.Exclamation;
1835t = TokenId.Percent;
1841t = TokenId.DoubleAmphersand;
1844t = TokenId.Amphersand;
1849t = TokenId.OpenParen;
1853t = TokenId.CloseParen;
1857t = TokenId.Asterisk;
1861t = TokenId.Plus;
1865t = TokenId.Comma;
1869t = TokenId.Minus;
1873t = TokenId.Dot;
1877t = TokenId.Slash;
1881t = TokenId.Colon;
1887t = TokenId.LessThanEqual;
1891t = TokenId.LessGreater;
1894t = TokenId.LessThan;
1901t = TokenId.DoubleEqual;
1904t = TokenId.Equal;
1911t = TokenId.GreaterThanEqual;
1914t = TokenId.GreaterThan;
1919t = TokenId.Question;
1923t = TokenId.OpenBracket;
1927t = TokenId.CloseBracket;
1933t = TokenId.DoubleBar;
1936t = TokenId.Bar;
1949t = TokenId.StringLiteral;
1956t = TokenId.Identifier;
1960t = TokenId.IntegerLiteral;
1965t = TokenId.RealLiteral;
1973t = TokenId.RealLiteral;
1985t = TokenId.End;
2025return token.id == TokenId.Identifier && String.Equals(id, token.text, StringComparison.OrdinalIgnoreCase);
2029ValidateToken(TokenId.Identifier, AtlasWeb.ExpressionParser_IdentifierExpected);
2039void ValidateToken(TokenId t, string errorMessage) {
2043void ValidateToken(TokenId t) {