summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/checks.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/analysis/checks.cpp b/src/analysis/checks.cpp
index a520b4d..96a4631 100644
--- a/src/analysis/checks.cpp
+++ b/src/analysis/checks.cpp
@@ -60,7 +60,7 @@ std::string mergeCollection(const std::set<std::string> &col)
std::string str;
FOR_EACH(it, col)
{
- str.append(it).append(",");
+ str.append("'").append(it).append("',");
}
return str;
}
@@ -209,6 +209,10 @@ void checkState(CallExprNode *node, const WalkItem &wi)
else
{
col1 = getCollection(node, name, wi);
+ if (isIn("this", col1))
+ {
+ col1.erase("this");
+ }
col2 = splitArgs(args[2], 0);
}
if (args[0] == "=")