Nicolas Winkler il y a 6 ans
Parent
commit
3cc1d47d9b
1 fichiers modifiés avec 2 ajouts et 6 suppressions
  1. 2 6
      src/AstVisitor.cpp

+ 2 - 6
src/AstVisitor.cpp

@@ -141,16 +141,12 @@ std::unique_ptr<sem::SemanticObject> StructureVisitor::visit(ast::FeatureCall& a
     auto* var = scope.getVariable(ast.name);
     
     if (var) {
-        
     }
     else if (method) {
-    auto fce = std::make_unique<sem::FeatureCallExpression>();
-    //fce->target = unique_dynamic_cast<sem::Expression>(ast.target.accept(*this, classes));
-    fce->callee = scope.getMethod(ast.name);
-    return fce;
+ce;
     }
     else {
-        throw sem::SemanticException(sem::SemanticException::METHOD_NOT_FOUND, ast.name, ast.pos);
+        throw sem::SemanticException(sem::SemanticException::FEATURE_NOT_FOUND, ast.name, ast.pos);
     }
 }