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

            Line data    Source code
       1              : #include "../../../inc/parsingAnalysis/ast/literals/ast_bool.h"
       2              : #include "../../../inc/parsingAnalysis/ast/literals/ast_char.h"
       3              : #include "../../../inc/parsingAnalysis/ast/literals/ast_double.h"
       4              : #include "../../../inc/parsingAnalysis/ast/literals/ast_float.h"
       5              : #include "../../../inc/parsingAnalysis/ast/literals/ast_int.h"
       6              : #include "../../../inc/parsingAnalysis/ast/literals/ast_null.h"
       7              : #include "../../../inc/parsingAnalysis/ast/literals/ast_string.h"
       8              : #include "../../../inc/visitors/codeGeneration/codeGeneration.h"
       9              : #include <cstddef>
      10              : #include <memory>
      11              : #include <variant>
      12              : 
      13              : namespace nicole {
      14              : 
      15              : std::expected<std::shared_ptr<llvm::Value>, Error>
      16            0 : CodeGeneration::visit(const AST_BOOL *node) const noexcept {
      17            0 :   if (!node) {
      18            0 :     return createError(ERROR_TYPE::NULL_NODE, "invalid AST_BOOL");
      19            0 :   }
      20            0 :   return {};
      21            0 : }
      22              : 
      23              : std::expected<std::shared_ptr<llvm::Value>, Error>
      24            0 : CodeGeneration::visit(const AST_CHAR *node) const noexcept {
      25            0 :   if (!node) {
      26            0 :     return createError(ERROR_TYPE::NULL_NODE, "invalid AST_CHAR");
      27            0 :   }
      28            0 :   return {};
      29            0 : }
      30              : 
      31              : std::expected<std::shared_ptr<llvm::Value>, Error>
      32            0 : CodeGeneration::visit(const AST_DOUBLE *node) const noexcept {
      33            0 :   if (!node) {
      34            0 :     return createError(ERROR_TYPE::NULL_NODE, "invalid AST_DOUBLE");
      35            0 :   }
      36            0 :   return {};
      37            0 : }
      38              : 
      39              : std::expected<std::shared_ptr<llvm::Value>, Error>
      40            0 : CodeGeneration::visit(const AST_FLOAT *node) const noexcept {
      41            0 :   if (!node) {
      42            0 :     return createError(ERROR_TYPE::NULL_NODE, "invalid AST_FLOAT");
      43            0 :   }
      44            0 :   return {};
      45            0 : }
      46              : 
      47              : std::expected<std::shared_ptr<llvm::Value>, Error>
      48            0 : CodeGeneration::visit(const AST_INT *node) const noexcept {
      49            0 :   if (!node) {
      50            0 :     return createError(ERROR_TYPE::NULL_NODE, "invalid AST_INT");
      51            0 :   }
      52            0 :   return {};
      53            0 : }
      54              : 
      55              : std::expected<std::shared_ptr<llvm::Value>, Error>
      56            0 : CodeGeneration::visit(const AST_NULL *node) const noexcept {
      57            0 :   if (!node) {
      58            0 :     return createError(ERROR_TYPE::NULL_NODE, "invalid AST_NULL");
      59            0 :   }
      60            0 :   return {};
      61            0 : }
      62              : 
      63              : std::expected<std::shared_ptr<llvm::Value>, Error>
      64            0 : CodeGeneration::visit(const AST_STRING *node) const noexcept {
      65            0 :   if (!node) {
      66            0 :     return createError(ERROR_TYPE::NULL_NODE, "invalid AST_STRING");
      67            0 :   }
      68            0 :   return {};
      69            0 : }
      70              : 
      71              : } // namespace nicole
        

Generated by: LCOV version 2.0-1