1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "builtins/builtins.h"
using namespace empathy::sema;
namespace empathy::builtins
{
class OverloadSetInvocationRule : public InvocationRule
{
public:
optional< Value > resolveInvocation( const Context& c, uint32_t loc, const Value& callee, const Value& args ) const final
{
auto pOvlSet = *FromValue< ptr< OverloadSet > >( callee );
UnificationContext uc( c );
optional< UnificationContext > bestUC;
optional< Term > bestSol;
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "builtins/builtins.h"
using namespace empathy::sema;
namespace empathy::builtins
{
class OverloadSetInvocationRule : public InvocationRule
{
public:
Value resolveInvocation( const Context& c, uint32_t loc, const Value& callee, const Value& args ) const final
{
auto pOvlSet = *FromValue< ptr< OverloadSet > >( callee );
UnificationContext uc( c );
optional< UnificationContext > bestUC;
optional< Term > bestSol;
|