@@ -761,17 +761,17 @@ class SymbolLiteral extends StringlikeLiteral, TSymbolLiteral {
761761// Tree-sitter gives us value text including the colon, which we skip.
762762private string getSimpleSymbolValue ( Ruby:: SimpleSymbol ss ) { result = ss .getValue ( ) .suffix ( 1 ) }
763763
764- private class RequiredStringConstantValue7 extends RequiredConstantValue {
765- override predicate requiredString ( string s ) { s = getSimpleSymbolValue ( _) }
764+ private class RequiredSymbolConstantValue extends RequiredConstantValue {
765+ override predicate requiredSymbol ( string s ) { s = getSimpleSymbolValue ( _) }
766766}
767767
768768private class SimpleSymbolLiteral extends SymbolLiteral , TSimpleSymbolLiteral {
769769 private Ruby:: SimpleSymbol g ;
770770
771771 SimpleSymbolLiteral ( ) { this = TSimpleSymbolLiteral ( g ) }
772772
773- final override ConstantValue:: ConstantStringValue getConstantValue ( ) {
774- result .isString ( getSimpleSymbolValue ( g ) )
773+ final override ConstantValue:: ConstantSymbolValue getConstantValue ( ) {
774+ result .isSymbol ( getSimpleSymbolValue ( g ) )
775775 }
776776
777777 final override string toString ( ) { result = g .getValue ( ) }
@@ -795,17 +795,17 @@ private class BareSymbolLiteral extends ComplexSymbolLiteral, TBareSymbolLiteral
795795 final override StringComponent getComponent ( int i ) { toGenerated ( result ) = g .getChild ( i ) }
796796}
797797
798- private class RequiredStringConstantValue8 extends RequiredConstantValue {
799- override predicate requiredString ( string s ) { s = any ( Ruby:: HashKeySymbol h ) .getValue ( ) }
798+ private class RequiredSymbolConstantValue2 extends RequiredConstantValue {
799+ override predicate requiredSymbol ( string s ) { s = any ( Ruby:: HashKeySymbol h ) .getValue ( ) }
800800}
801801
802802private class HashKeySymbolLiteral extends SymbolLiteral , THashKeySymbolLiteral {
803803 private Ruby:: HashKeySymbol g ;
804804
805805 HashKeySymbolLiteral ( ) { this = THashKeySymbolLiteral ( g ) }
806806
807- final override ConstantValue:: ConstantStringValue getConstantValue ( ) {
808- result .isString ( g .getValue ( ) )
807+ final override ConstantValue:: ConstantSymbolValue getConstantValue ( ) {
808+ result .isSymbol ( g .getValue ( ) )
809809 }
810810
811811 final override string toString ( ) { result = ":" + g .getValue ( ) }
@@ -829,7 +829,7 @@ class SubshellLiteral extends StringlikeLiteral, TSubshellLiteral {
829829 final override StringComponent getComponent ( int i ) { toGenerated ( result ) = g .getChild ( i ) }
830830}
831831
832- private class RequiredStringConstantValue9 extends RequiredConstantValue {
832+ private class RequiredStringConstantValue7 extends RequiredConstantValue {
833833 override predicate requiredString ( string s ) { s = any ( Ruby:: Character c ) .getValue ( ) }
834834}
835835
@@ -1131,7 +1131,7 @@ private string getMethodName(MethodName::Token t) {
11311131 result = t .( Ruby:: Setter ) .getName ( ) .getValue ( ) + "="
11321132}
11331133
1134- private class RequiredStringConstantValue10 extends RequiredConstantValue {
1134+ private class RequiredStringConstantValue8 extends RequiredConstantValue {
11351135 override predicate requiredString ( string s ) { s = getMethodName ( _) }
11361136}
11371137
0 commit comments