From 65c905fe84c0e8b7acd6839469d7bb9727f0632b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 20 Feb 2016 20:05:52 -0800 Subject: 2678 Start using type names from the type tree rather than the property tree in most places. Hopefully the only occurrences of 'properties.at(0).second' left are ones where we're managing it. Next we can stop writing to it. --- 014literal_string.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '014literal_string.cc') diff --git a/014literal_string.cc b/014literal_string.cc index 12015f3b..7975d63e 100644 --- a/014literal_string.cc +++ b/014literal_string.cc @@ -124,7 +124,7 @@ if (s.at(0) == '[') { :(code) bool is_literal_string(const reagent& x) { - return x.properties.at(0).second && x.properties.at(0).second->value == "literal-string"; + return x.type && x.type->name == "literal-string"; } string emit_literal_string(string name) { -- cgit 1.4.1-2-gfad0