@@ -137,8 +137,8 @@ internal IEnumerable<SimulatedStatementOutcome> CreateResultSetsForCommand(Simul
137137 case StatementTerminator :
138138 continue ;
139139
140- case UnquotedString unquotedString :
141- switch ( unquotedString . Parse ( ) )
140+ case ReservedKeyword reserved :
141+ switch ( reserved . Keyword )
142142 {
143143 case Keyword . Set :
144144 switch ( token = tokens . RequireNext ( ) )
@@ -150,8 +150,8 @@ internal IEnumerable<SimulatedStatementOutcome> CreateResultSetsForCommand(Simul
150150 case "NOCOUNT" :
151151 switch ( token = tokens . RequireNext ( ) )
152152 {
153- case UnquotedString onOff :
154- switch ( onOff . Parse ( ) )
153+ case ReservedKeyword onOff :
154+ switch ( onOff . Keyword )
155155 {
156156 case Keyword . On :
157157 case Keyword . Off :
@@ -168,8 +168,8 @@ internal IEnumerable<SimulatedStatementOutcome> CreateResultSetsForCommand(Simul
168168 case Keyword . Create :
169169 switch ( token = tokens . RequireNext ( ) )
170170 {
171- case UnquotedString whatToCreate :
172- switch ( whatToCreate . Parse ( ) )
171+ case ReservedKeyword whatToCreate :
172+ switch ( whatToCreate . Keyword )
173173 {
174174 case Keyword . Table :
175175 if ( tokens . RequireNext ( ) is not Name tableName )
@@ -194,12 +194,12 @@ internal IEnumerable<SimulatedStatementOutcome> CreateResultSetsForCommand(Simul
194194 var nullable = true ;
195195
196196 token = tokens . RequireNext ( ) ;
197- if ( token is UnquotedString next )
197+ if ( token is ReservedKeyword next )
198198 {
199- switch ( next . Parse ( ) )
199+ switch ( next . Keyword )
200200 {
201201 case Keyword . Not :
202- if ( ( token = tokens . RequireNext ( ) ) is not UnquotedString mustBeNull || mustBeNull . Parse ( ) != Keyword . Null )
202+ if ( ( token = tokens . RequireNext ( ) ) is not ReservedKeyword { Keyword : Keyword . Null } )
203203 throw new NotSupportedException ( $ "Simulated command processor doesn't know how to handle column definition token { token } .") ;
204204
205205 nullable = false ;
@@ -237,7 +237,7 @@ internal IEnumerable<SimulatedStatementOutcome> CreateResultSetsForCommand(Simul
237237 break ;
238238
239239 case Keyword . Insert :
240- if ( ( token = tokens . RequireNext ( ) ) is UnquotedString maybeInto && maybeInto . TryParse ( out var keyword ) && keyword == Keyword . Into )
240+ if ( ( token = tokens . RequireNext ( ) ) is ReservedKeyword { Keyword : Keyword . Into } )
241241 token = tokens . RequireNext ( ) ;
242242
243243 if ( token is not StringToken destinationTableToken )
@@ -270,7 +270,7 @@ internal IEnumerable<SimulatedStatementOutcome> CreateResultSetsForCommand(Simul
270270 destinationColumns = [ .. destinationTable . Columns ] ;
271271 }
272272
273- if ( token is not UnquotedString expectValues || expectValues . Parse ( ) != Keyword . Values )
273+ if ( token is not ReservedKeyword { Keyword : Keyword . Values } )
274274 break ;
275275
276276 if ( ( token = tokens . RequireNext ( ) ) is not OpenParentheses )
0 commit comments