@@ -16,7 +16,7 @@ public interface IParseTreeValueVisitor : IParseTreeVisitor<IParseTreeVisitorRes
16
16
17
17
public interface ITestParseTreeVisitor
18
18
{
19
- bool IsVBStringConstantToLiteral ( string token , out string literalValue ) ;
19
+ bool IsVBStringConstant ( string token , out string literalValue ) ;
20
20
bool IsNonPrintingControlCharacter ( string token ) ;
21
21
void InjectValuedDeclarationEvaluator ( Func < Declaration , ( bool , string , string ) > func ) ;
22
22
}
@@ -336,7 +336,7 @@ private void GetContextValue(ParserRuleContext context, out string declaredTypeN
336
336
expressionValue = ExpressionValue ;
337
337
declaredTypeName = TypeName ;
338
338
339
- if ( IsVBStringConstantToLiteral ( expressionValue , out string constLiteral ) )
339
+ if ( IsVBStringConstant ( expressionValue , out string constLiteral ) )
340
340
{
341
341
declaredTypeName = Tokens . String ;
342
342
expressionValue = constLiteral ;
@@ -450,20 +450,14 @@ private static bool IsBinaryOpEvaluationContext<T>(T context)
450
450
return false ;
451
451
}
452
452
453
- public bool IsVBStringConstantToLiteral ( string candidate , out string literal )
454
- {
455
- return _vbStringConstants . TryGetValue ( candidate , out literal ) ;
456
- }
453
+ public bool IsVBStringConstant ( string candidate , out string literal )
454
+ => _vbStringConstants . TryGetValue ( candidate , out literal ) ;
457
455
458
456
public bool IsNonPrintingControlCharacter ( string controlChar )
459
- {
460
- return controlChar != null && _vbStringConstants . ContainsValue ( controlChar ) ;
461
- }
457
+ => controlChar != null && _vbStringConstants . ContainsValue ( controlChar ) ;
462
458
463
459
public void InjectValuedDeclarationEvaluator ( Func < Declaration , ( bool , string , string ) > func )
464
- {
465
- ValuedDeclarationEvaluator = func ;
466
- }
460
+ => ValuedDeclarationEvaluator = func ;
467
461
468
462
private void LoadEnumMemberValues ( )
469
463
{
0 commit comments