Differences From Artifact [f07b94da1e]:
- File
bs/builtins/types/decl.cpp
— part of check-in
[55beba911a]
at
2021-09-12 16:48:57
on branch trunk
—
- Started work on extensibility api
- some code cleanup
To Artifact [c5fbff602d]:
- File bs/builtins/types/decl.cpp — part of check-in [24415e41e4] at 2021-09-30 23:37:41 on branch trunk — Fixed a couple of bugs, but the linux version is broken for now (due to language bugs that can't be worked around and need to be fixed) (user: zlodo size: 1372)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#include "builtins/builtins.h"
using namespace goose::builtins;
namespace goose::builtins
{
bool IsDecl( const Value& d )
{
auto typeVal = EIRToValue( d.type() );
auto result = Decompose( typeVal->val(),
Vec(
Lit( "decl"_sid ),
SubTerm()
)
);
| > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#include "builtins/builtins.h"
using namespace goose::builtins;
namespace goose::builtins
{
bool IsDecl( const Value& d )
{
auto typeVal = EIRToValue( d.type() );
if( !typeVal )
return false;
auto result = Decompose( typeVal->val(),
Vec(
Lit( "decl"_sid ),
SubTerm()
)
);
|
| ︙ | ︙ |