From fbc8da34e36ddb7022d10d6b34df7b1246ec992a Mon Sep 17 00:00:00 2001 From: Cholerae Hu Date: Tue, 30 Jun 2020 20:15:16 +0800 Subject: [PATCH] parser: fix SimpleCondtition -> SimpleCondition Signed-off-by: Cholerae Hu --- euler/parser/attribute_calculator.cc | 2 +- euler/parser/attribute_calculator.h | 2 +- euler/parser/translator.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/euler/parser/attribute_calculator.cc b/euler/parser/attribute_calculator.cc index 32a64cd..f36b33d 100644 --- a/euler/parser/attribute_calculator.cc +++ b/euler/parser/attribute_calculator.cc @@ -21,7 +21,7 @@ limitations under the License. namespace euler { -bool SimpleCondtition(TreeNode* t) { +bool SimpleCondition(TreeNode* t) { std::vector children = t->GetChildren(); std::string op = children[0]->GetValue(); std::string p = children[1]->GetValue(); diff --git a/euler/parser/attribute_calculator.h b/euler/parser/attribute_calculator.h index 3add77d..065ca81 100644 --- a/euler/parser/attribute_calculator.h +++ b/euler/parser/attribute_calculator.h @@ -20,7 +20,7 @@ limitations under the License. namespace euler { -bool SimpleCondtition(TreeNode* t); +bool SimpleCondition(TreeNode* t); bool HasKey(TreeNode* t); bool HasLabel(TreeNode* t); bool Has(TreeNode* t); diff --git a/euler/parser/translator.h b/euler/parser/translator.h index 0f51d9d..8be9d2f 100644 --- a/euler/parser/translator.h +++ b/euler/parser/translator.h @@ -30,7 +30,7 @@ namespace euler { class Translator { public: explicit Translator(OptimizerType type) : env_type_(type) { - func_map_["SIMPLE_CONDITION"] = SimpleCondtition; + func_map_["SIMPLE_CONDITION"] = SimpleCondition; func_map_["HAS_KEY"] = HasKey; func_map_["HAS_LABEL"] = HasLabel; func_map_["HAS"] = Has;