aboutsummaryrefslogtreecommitdiff
path: root/src/stmt.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stmt.cc')
-rw-r--r--src/stmt.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/stmt.cc b/src/stmt.cc
index 7315dc1..bdc3406 100644
--- a/src/stmt.cc
+++ b/src/stmt.cc
@@ -30,13 +30,13 @@ void Stmt::Eval(Evaluator* ev) const {
EvalStatement(ev);
}
-string RuleStmt::DebugString() const {
+std::string RuleStmt::DebugString() const {
return StringPrintf("RuleStmt(lhs=%s sep=%d rhs=%s loc=%s:%d)",
Value::DebugString(lhs).c_str(), sep,
Value::DebugString(rhs).c_str(), LOCF(loc()));
}
-string AssignStmt::DebugString() const {
+std::string AssignStmt::DebugString() const {
const char* opstr = "???";
switch (op) {
case AssignOp::EQ:
@@ -73,7 +73,7 @@ string AssignStmt::DebugString() const {
Symbol AssignStmt::GetLhsSymbol(Evaluator* ev) const {
if (!lhs->IsLiteral()) {
- string buf;
+ std::string buf;
lhs->Eval(ev, &buf);
return Intern(buf);
}
@@ -84,12 +84,12 @@ Symbol AssignStmt::GetLhsSymbol(Evaluator* ev) const {
return lhs_sym_cache_;
}
-string CommandStmt::DebugString() const {
+std::string CommandStmt::DebugString() const {
return StringPrintf("CommandStmt(%s, loc=%s:%d)",
Value::DebugString(expr).c_str(), LOCF(loc()));
}
-string IfStmt::DebugString() const {
+std::string IfStmt::DebugString() const {
const char* opstr = "???";
switch (op) {
case CondOp::IFEQ:
@@ -111,17 +111,17 @@ string IfStmt::DebugString() const {
false_stmts.size(), LOCF(loc()));
}
-string IncludeStmt::DebugString() const {
+std::string IncludeStmt::DebugString() const {
return StringPrintf("IncludeStmt(%s, loc=%s:%d)",
Value::DebugString(expr).c_str(), LOCF(loc()));
}
-string ExportStmt::DebugString() const {
+std::string ExportStmt::DebugString() const {
return StringPrintf("ExportStmt(%s, %d, loc=%s:%d)",
Value::DebugString(expr).c_str(), is_export, LOCF(loc()));
}
-string ParseErrorStmt::DebugString() const {
+std::string ParseErrorStmt::DebugString() const {
return StringPrintf("ParseErrorStmt(%s, loc=%s:%d)", msg.c_str(),
LOCF(loc()));
}