LCOV - code coverage report
Current view: top level - src/visitors/codeGeneration - codeGenVarDecl.cc (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 26 0
Test Date: 2025-04-18 15:53:49 Functions: 0.0 % 3 0

            Line data    Source code
       1              : #include "../../../inc/visitors/codeGeneration/codeGeneration.h"
       2              : #include "../../../inc/parsingAnalysis/ast/variables/ast_autoDecl.h"
       3              : #include "../../../inc/parsingAnalysis/ast/variables/ast_typedDecl.h"
       4              : #include "../../../inc/parsingAnalysis/ast/variables/ast_varCall.h"
       5              : #include <cstddef>
       6              : #include <memory>
       7              : #include <variant>
       8              : 
       9              : namespace nicole {
      10              : 
      11              : std::expected<std::shared_ptr<llvm::Value>, Error>
      12            0 : CodeGeneration::visit(const AST_AUTO_DECL *node) const noexcept {
      13            0 :   if (!node) {
      14            0 :     return createError(ERROR_TYPE::NULL_NODE, "invalid AST_AUTO_DECL");
      15            0 :   }
      16            0 :   const auto result{node->value()->accept(*this)};
      17            0 :   if (!result) {
      18            0 :     return createError(result.error());
      19            0 :   }
      20            0 :   return {};
      21            0 : }
      22              : 
      23              : std::expected<std::shared_ptr<llvm::Value>, Error>
      24            0 : CodeGeneration::visit(const AST_VAR_TYPED_DECL *node) const noexcept {
      25            0 :   if (!node) {
      26            0 :     return createError(ERROR_TYPE::NULL_NODE, "invalid AST_VAR_TYPED_DECL");
      27            0 :   }
      28            0 :   const auto result{node->value()->accept(*this)};
      29            0 :   if (!result) {
      30            0 :     return createError(result.error());
      31            0 :   }
      32            0 :   return {};
      33            0 : }
      34              : 
      35              : std::expected<std::shared_ptr<llvm::Value>, Error>
      36            0 : CodeGeneration::visit(const AST_VAR_CALL *node) const noexcept {
      37            0 :   if (!node) {
      38            0 :     return createError(ERROR_TYPE::NULL_NODE, "invalid AST_VAR_CALL");
      39            0 :   }
      40            0 :   return {};
      41            0 : }
      42              : 
      43              : }
        

Generated by: LCOV version 2.0-1