Goose  Diff

Differences From Artifact [900895c6fe]:

  • File bs/builtins/types/overloadset/overloadset.cpp — part of check-in [f8f1fcd169] at 2019-07-23 19:02:40 on branch trunk — Moved overloadset's implementation into sema, as we'll need to keep pointers to some of them (used as extension points) in env. (user: achavasse size: 993)

To Artifact [3719b20b47]:

  • File bs/builtins/types/overloadset/overloadset.cpp — part of check-in [af650a9e95] at 2019-09-22 14:37:55 on branch trunk — Project renaming. (user: achavasse size: 987)

1
2
3

4
5

6
7
8
9
10

11
12
13
14
15
16
17
1
2

3
4

5
6
7
8
9

10
11
12
13
14
15
16
17


-
+

-
+




-
+







#include "builtins/builtins.h"

using namespace empathy::builtins;
using namespace goose::builtins;

bool empathy::builtins::IsOverloadSet( const Value& os )
bool goose::builtins::IsOverloadSet( const Value& os )
{
    return os.type() == GetValueType< ptr< OverloadSet > >();
}

namespace empathy::ir
namespace goose::ir
{
    const Term& Bridge< ptr< builtins::OverloadSet > >::Type()
    {
        static auto type = ValueToIRExpr( Value( TypeType(), TSID( overloadset ) ) );
        return type;
    }