GCC Code Coverage Report


Directory: src/
File: src/mir/type-method.cpp
Date: 2025-10-15 09:43:47
Exec Total Coverage
Lines: 16 20 80.0%
Functions: 5 7 71.4%
Branches: 0 0 -%

Line Branch Exec Source
1 #include <gyoji-mir/types.hpp>
2 #include <variant>
3 #include <stdio.h>
4
5 using namespace Gyoji::context;
6 using namespace Gyoji::mir;
7
8 2 TypeMethod::TypeMethod(
9 std::string _method_name,
10 const Gyoji::context::SourceReference & _source_ref,
11 const Type *_class_type,
12 const Type *_return_type,
13 const std::vector<Argument> _arguments
14 2 )
15 2 : method_name(_method_name)
16 2 , source_ref(_source_ref)
17 2 , class_type(_class_type)
18 2 , return_type(_return_type)
19 2 , arguments(_arguments)
20 2 {}
21 10 TypeMethod::~TypeMethod()
22 10 {}
23
24 const std::string &
25 TypeMethod::get_name() const
26 { return method_name; }
27
28 const Gyoji::context::SourceReference &
29 TypeMethod::get_source_ref() const
30 { return source_ref; }
31
32 const Type *
33 2 TypeMethod::get_class_type() const
34 2 { return class_type; }
35
36 const Type *
37 2 TypeMethod::get_return_type() const
38 2 { return return_type; }
39
40 const std::vector<Argument> &
41 8 TypeMethod::get_arguments() const
42 8 { return arguments; }
43