Python: Change all remaining occurrences of StrConst

Done using
```
git grep StrConst | xargs sed -i 's/StrConst/StringLiteral/g'
```
This commit is contained in:
Taus
2024-04-17 16:03:45 +00:00
parent f6487d7b13
commit 1c68c987b0
101 changed files with 211 additions and 211 deletions

View File

@@ -8,7 +8,7 @@ where
not exists(val.getConversion()) and typeconv = " "
) and
(
format = val.getFormatSpec().getValue(0).(StrConst).getText()
format = val.getFormatSpec().getValue(0).(StringLiteral).getText()
or
not exists(val.getFormatSpec()) and format = ""
)

View File

@@ -1,9 +1,9 @@
import python
string repr(AstNode a) {
not a instanceof StrConst and result = a.toString()
not a instanceof StringLiteral and result = a.toString()
or
result = "\"" + a.(StrConst).getText() + "\""
result = "\"" + a.(StringLiteral).getText() + "\""
}
from ControlFlowNode p, ControlFlowNode s, BasicBlock b, int n

View File

@@ -1,9 +1,9 @@
import python
string repr(AstNode a) {
not a instanceof StrConst and result = a.toString()
not a instanceof StringLiteral and result = a.toString()
or
result = "\"" + a.(StrConst).getText() + "\""
result = "\"" + a.(StringLiteral).getText() + "\""
}
from ControlFlowNode p, ControlFlowNode s, BasicBlock b, int n

View File

@@ -1,4 +1,4 @@
import python
from StrConst s
from StringLiteral s
select s, s.getText()

View File

@@ -1,4 +1,4 @@
import python
from StrConst s
from StringLiteral s
select s.getLocation().getStartLine(), s.getText(), s.getPrefix()