##// END OF EJS Templates
minor changes
cin -
r65:653c4e04968b default
parent child
Show More
@@ -16,6 +16,7 namespace Implab.Parsing {
16 static readonly T[] _symbols;
16 static readonly T[] _symbols;
17 static readonly EnumAlphabet<T> _fullAlphabet;
17 static readonly EnumAlphabet<T> _fullAlphabet;
18
18
19 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
19 static EnumAlphabet() {
20 static EnumAlphabet() {
20 if (!typeof(T).IsEnum)
21 if (!typeof(T).IsEnum)
21 throw new InvalidOperationException("Invalid generic parameter, enumeration is required");
22 throw new InvalidOperationException("Invalid generic parameter, enumeration is required");
@@ -607,7 +607,7 namespace Implab {
607 }
607 }
608 }
608 }
609
609
610 protected virtual void OnStateChanged() {
610 void OnStateChanged() {
611 HandlerDescriptor handler;
611 HandlerDescriptor handler;
612 while (m_handlers.TryDequeue(out handler))
612 while (m_handlers.TryDequeue(out handler))
613 InvokeHandler(handler);
613 InvokeHandler(handler);
General Comments 0
You need to be logged in to leave comments. Login now