@@ -26,10 +26,10 @@ module Hashes {
2626 }
2727
2828 override string getName ( ) {
29- result = super .normalizeName ( this .asExpr ( ) .( StrConst ) .getText ( ) )
29+ result = super .normalizeName ( this .asExpr ( ) .( StringLiteral ) .getText ( ) )
3030 or
3131 // if not a known/static string, assume from an outside source and the algorithm is UNKNOWN
32- not this .asExpr ( ) instanceof StrConst and result = unknownAlgorithm ( )
32+ not this .asExpr ( ) instanceof StringLiteral and result = unknownAlgorithm ( )
3333 }
3434 }
3535
@@ -49,10 +49,10 @@ module Hashes {
4949 }
5050
5151 override string getName ( ) {
52- result = super .normalizeName ( this .asExpr ( ) .( StrConst ) .getText ( ) )
52+ result = super .normalizeName ( this .asExpr ( ) .( StringLiteral ) .getText ( ) )
5353 or
5454 // if not a known/static string, assume from an outside source and the algorithm is UNKNOWN
55- not this .asExpr ( ) instanceof StrConst and result = unknownAlgorithm ( )
55+ not this .asExpr ( ) instanceof StringLiteral and result = unknownAlgorithm ( )
5656 }
5757 }
5858
@@ -88,9 +88,9 @@ module Hashes {
8888 // Name is a string constant or consider the name unknown
8989 // NOTE: we are excluding hmac.new and hmac.HMAC constructor calls so we are expecting
9090 // a string or an outside configuration only
91- result = super .normalizeName ( this .asExpr ( ) .( StrConst ) .getText ( ) )
91+ result = super .normalizeName ( this .asExpr ( ) .( StringLiteral ) .getText ( ) )
9292 or
93- not this .asExpr ( ) instanceof StrConst and
93+ not this .asExpr ( ) instanceof StringLiteral and
9494 result = unknownAlgorithm ( )
9595 }
9696 }
0 commit comments