|
|
@ -1,6 +1,3 @@ |
|
|
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
|
|
|
|
|
|
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this file was autogenerated by a tool.
|
|
|
|
// this file was autogenerated by a tool.
|
|
|
|
using System; |
|
|
|
using System; |
|
|
|
using System.Collections; |
|
|
|
using System.Collections; |
|
|
@ -159,8 +156,10 @@ namespace ICSharpCode.NRefactory.Parser.CSharp |
|
|
|
public const int Join = 142; |
|
|
|
public const int Join = 142; |
|
|
|
public const int On = 143; |
|
|
|
public const int On = 143; |
|
|
|
new public const int Equals = 144; |
|
|
|
new public const int Equals = 144; |
|
|
|
|
|
|
|
public const int Async = 145; |
|
|
|
|
|
|
|
public const int Await = 146; |
|
|
|
|
|
|
|
|
|
|
|
public const int MaxToken = 145; |
|
|
|
public const int MaxToken = 147; |
|
|
|
static BitArray NewSet(params int[] values) |
|
|
|
static BitArray NewSet(params int[] values) |
|
|
|
{ |
|
|
|
{ |
|
|
|
BitArray bitArray = new BitArray(MaxToken); |
|
|
|
BitArray bitArray = new BitArray(MaxToken); |
|
|
@ -169,28 +168,28 @@ namespace ICSharpCode.NRefactory.Parser.CSharp |
|
|
|
} |
|
|
|
} |
|
|
|
return bitArray; |
|
|
|
return bitArray; |
|
|
|
} |
|
|
|
} |
|
|
|
public static BitArray IdentifierTokens = NewSet(Identifier, Partial, Where, Get, Set, Add, Remove, Yield, Select, Group, By, Into, From, Ascending, Descending, Orderby, Let, Join, On, Equals); |
|
|
|
public static BitArray IdentifierTokens = NewSet(Identifier, Partial, Where, Get, Set, Add, Remove, Yield, Select, Group, By, Into, From, Ascending, Descending, Orderby, Let, Join, On, Equals, Async, Await); |
|
|
|
public static BitArray OverloadableUnaryOp = NewSet(Minus, Not, BitwiseComplement, Increment, Decrement, True, False); |
|
|
|
public static BitArray OverloadableUnaryOp = NewSet(Minus, Not, BitwiseComplement, Increment, Decrement, True, False); |
|
|
|
public static BitArray OverloadableBinaryOp = NewSet(Plus, Minus, Times, Div, Mod, BitwiseAnd, BitwiseOr, Xor, ShiftLeft, Equal, NotEqual, GreaterThan, LessThan, GreaterEqual, LessEqual); |
|
|
|
public static BitArray OverloadableBinaryOp = NewSet(Plus, Minus, Times, Div, Mod, BitwiseAnd, BitwiseOr, Xor, ShiftLeft, Equal, NotEqual, GreaterThan, LessThan, GreaterEqual, LessEqual); |
|
|
|
public static BitArray TypeKW = NewSet(Char, Bool, Object, String, Sbyte, Byte, Short, Ushort, Int, Uint, Long, Ulong, Float, Double, Decimal); |
|
|
|
public static BitArray TypeKW = NewSet(Char, Bool, Object, String, Sbyte, Byte, Short, Ushort, Int, Uint, Long, Ulong, Float, Double, Decimal); |
|
|
|
public static BitArray UnaryHead = NewSet(Plus, Minus, Not, BitwiseComplement, Times, Increment, Decrement, BitwiseAnd); |
|
|
|
public static BitArray UnaryHead = NewSet(Plus, Minus, Not, BitwiseComplement, Times, Increment, Decrement, BitwiseAnd); |
|
|
|
public static BitArray AssnStartOp = NewSet(Plus, Minus, Not, BitwiseComplement, Times); |
|
|
|
public static BitArray AssnStartOp = NewSet(Plus, Minus, Not, BitwiseComplement, Times); |
|
|
|
public static BitArray CastFollower = NewSet(Char, Bool, Object, String, Sbyte, Byte, Short, Ushort, Int, Uint, Long, Ulong, Float, Double, Decimal, Identifier, Partial, Where, Get, Set, Add, Remove, Yield, Select, Group, By, Into, From, Ascending, Descending, Orderby, Let, Join, On, Equals, Void, Literal, OpenParenthesis, BitwiseComplement, Not, Base, Delegate, False, New, Null, Sizeof, This, True, Typeof, Checked, Unchecked, From, Default); |
|
|
|
public static BitArray CastFollower = NewSet(Char, Bool, Object, String, Sbyte, Byte, Short, Ushort, Int, Uint, Long, Ulong, Float, Double, Decimal, Identifier, Partial, Where, Get, Set, Add, Remove, Yield, Select, Group, By, Into, From, Ascending, Descending, Orderby, Let, Join, On, Equals, Async, Await, Void, Literal, OpenParenthesis, BitwiseComplement, Not, Base, Delegate, False, New, Null, Sizeof, This, True, Typeof, Checked, Unchecked, From, Default, Await); |
|
|
|
public static BitArray AssgnOps = NewSet(Assign, PlusAssign, MinusAssign, TimesAssign, DivAssign, ModAssign, BitwiseAndAssign, BitwiseOrAssign, ShiftLeftAssign); |
|
|
|
public static BitArray AssgnOps = NewSet(Assign, PlusAssign, MinusAssign, TimesAssign, DivAssign, ModAssign, BitwiseAndAssign, BitwiseOrAssign, ShiftLeftAssign); |
|
|
|
public static BitArray UnaryOp = NewSet(Plus, Minus, Not, BitwiseComplement, Times, Increment, Decrement, BitwiseAnd); |
|
|
|
public static BitArray UnaryOp = NewSet(Plus, Minus, Not, BitwiseComplement, Times, Increment, Decrement, BitwiseAnd); |
|
|
|
public static BitArray TypeDeclarationKW = NewSet(Class, Interface, Struct, Enum, Delegate); |
|
|
|
public static BitArray TypeDeclarationKW = NewSet(Class, Interface, Struct, Enum, Delegate); |
|
|
|
public static BitArray GenericFollower = NewSet(OpenParenthesis, CloseParenthesis, CloseSquareBracket, CloseCurlyBrace, Colon, Semicolon, Comma, Dot, Question, Equal, NotEqual); |
|
|
|
public static BitArray GenericFollower = NewSet(OpenParenthesis, CloseParenthesis, CloseSquareBracket, CloseCurlyBrace, Colon, Semicolon, Comma, Dot, Question, Equal, NotEqual); |
|
|
|
public static BitArray ValidInsideTypeName = NewSet(Identifier, Partial, Where, Get, Set, Add, Remove, Yield, Select, Group, By, Into, From, Ascending, Descending, Orderby, Let, Join, On, Equals, Char, Bool, Object, String, Sbyte, Byte, Short, Ushort, Int, Uint, Long, Ulong, Float, Double, Decimal, LessThan, GreaterThan, Dot, Question, OpenSquareBracket, Comma, CloseSquareBracket, Times, DoubleColon); |
|
|
|
public static BitArray ValidInsideTypeName = NewSet(Identifier, Partial, Where, Get, Set, Add, Remove, Yield, Select, Group, By, Into, From, Ascending, Descending, Orderby, Let, Join, On, Equals, Async, Await, Char, Bool, Object, String, Sbyte, Byte, Short, Ushort, Int, Uint, Long, Ulong, Float, Double, Decimal, LessThan, GreaterThan, Dot, Question, OpenSquareBracket, Comma, CloseSquareBracket, Times, DoubleColon); |
|
|
|
public static BitArray KCCClassModifiers = NewSet(Abstract, Sealed, Static, Unsafe, Partial); |
|
|
|
public static BitArray KCCClassModifiers = NewSet(Abstract, Sealed, Static, Unsafe, Partial); |
|
|
|
public static BitArray KCCTypeDeclarationStart = NewSet(Public, Internal, Class, Interface, Struct, Enum, Delegate, Abstract, Sealed, Static, Unsafe, Partial); |
|
|
|
public static BitArray KCCTypeDeclarationStart = NewSet(Public, Internal, Class, Interface, Struct, Enum, Delegate, Abstract, Sealed, Static, Unsafe, Partial); |
|
|
|
public static BitArray KCCMemberVisibilityModifiers = NewSet(Protected, Private, Public, Internal); |
|
|
|
public static BitArray KCCMemberVisibilityModifiers = NewSet(Protected, Private, Public, Internal); |
|
|
|
public static BitArray SimpleTypeName = NewSet(Char, Bool, Object, String, Sbyte, Byte, Short, Ushort, Int, Uint, Long, Ulong, Float, Double, Decimal, Identifier, Partial, Where, Get, Set, Add, Remove, Yield, Select, Group, By, Into, From, Ascending, Descending, Orderby, Let, Join, On, Equals, Void); |
|
|
|
public static BitArray SimpleTypeName = NewSet(Char, Bool, Object, String, Sbyte, Byte, Short, Ushort, Int, Uint, Long, Ulong, Float, Double, Decimal, Identifier, Partial, Where, Get, Set, Add, Remove, Yield, Select, Group, By, Into, From, Ascending, Descending, Orderby, Let, Join, On, Equals, Async, Await, Void); |
|
|
|
public static BitArray GlobalLevel = NewSet(Namespace, Using, Extern, Public, Internal, Class, Interface, Struct, Enum, Delegate, Abstract, Sealed, Static, Unsafe, Partial); |
|
|
|
public static BitArray GlobalLevel = NewSet(Namespace, Using, Extern, Public, Internal, Class, Interface, Struct, Enum, Delegate, Abstract, Sealed, Static, Unsafe, Partial); |
|
|
|
public static BitArray ExpressionStart = NewSet(Base, Delegate, False, New, Null, Sizeof, This, True, Typeof, Checked, Unchecked, From, Default); |
|
|
|
public static BitArray ExpressionStart = NewSet(Base, Delegate, False, New, Null, Sizeof, This, True, Typeof, Checked, Unchecked, From, Default, Await); |
|
|
|
public static BitArray ExpressionContent = NewSet(As, Is, Out, Ref, In); |
|
|
|
public static BitArray ExpressionContent = NewSet(As, Is, Out, Ref, In); |
|
|
|
public static BitArray InterfaceLevel = NewSet(Event); |
|
|
|
public static BitArray InterfaceLevel = NewSet(Event); |
|
|
|
public static BitArray TypeLevel = NewSet(Public, Internal, Class, Interface, Struct, Enum, Delegate, Abstract, Sealed, Static, Unsafe, Partial, Protected, Private, Public, Internal, Const, Event, Explicit, Extern, Fixed, Implicit, New, Operator, Override, Readonly, Virtual, Volatile); |
|
|
|
public static BitArray TypeLevel = NewSet(Public, Internal, Class, Interface, Struct, Enum, Delegate, Abstract, Sealed, Static, Unsafe, Partial, Protected, Private, Public, Internal, Const, Event, Explicit, Extern, Fixed, Implicit, New, Operator, Override, Readonly, Virtual, Volatile, Async); |
|
|
|
public static BitArray StatementStart = NewSet(Base, Delegate, False, New, Null, Sizeof, This, True, Typeof, Checked, Unchecked, From, Default, As, Is, Out, Ref, In, Break, Case, Catch, Checked, Unchecked, Const, Continue, Default, Do, Else, Finally, Fixed, For, Foreach, Goto, If, Lock, Return, Stackalloc, Switch, Throw, Try, Unsafe, Using, While, Yield); |
|
|
|
public static BitArray StatementStart = NewSet(Base, Delegate, False, New, Null, Sizeof, This, True, Typeof, Checked, Unchecked, From, Default, Await, As, Is, Out, Ref, In, Break, Case, Catch, Checked, Unchecked, Const, Continue, Default, Do, Else, Finally, Fixed, For, Foreach, Goto, If, Lock, Return, Stackalloc, Switch, Throw, Try, Unsafe, Using, While, Yield); |
|
|
|
public static BitArray QueryExpressionClauseStart = NewSet(From, Let, Where, Join, Orderby, Group, Select); |
|
|
|
public static BitArray QueryExpressionClauseStart = NewSet(From, Let, Where, Join, Orderby, Group, Select); |
|
|
|
public static BitArray InPropertyDeclaration = NewSet(Protected, Private, Public, Internal, Get, Set); |
|
|
|
public static BitArray InPropertyDeclaration = NewSet(Protected, Private, Public, Internal, Get, Set); |
|
|
|
public static BitArray InEventDeclaration = NewSet(Add, Remove); |
|
|
|
public static BitArray InEventDeclaration = NewSet(Add, Remove); |
|
|
@ -344,6 +343,8 @@ namespace ICSharpCode.NRefactory.Parser.CSharp |
|
|
|
"join", |
|
|
|
"join", |
|
|
|
"on", |
|
|
|
"on", |
|
|
|
"equals", |
|
|
|
"equals", |
|
|
|
|
|
|
|
"async", |
|
|
|
|
|
|
|
"await", |
|
|
|
}; |
|
|
|
}; |
|
|
|
public static string GetTokenString(int token) |
|
|
|
public static string GetTokenString(int token) |
|
|
|
{ |
|
|
|
{ |
|
|
|