Goose  Diff

Differences From Artifact [83559bf538]:

  • File bs/builtins/statements/break.cpp — part of check-in [c2b2425c0c] at 2019-08-26 00:18:30 on branch trunk — Implemented local variable destruction (through the DestroyValue() extension point), and setup proper visibility and lifetime rules for variables declared inside of statements. (user: achavasse size: 1497)

To Artifact [e85bc7d666]:

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

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"
#include "parse/parse.h"
#include "precedence.h"
#include "builtins/helpers.h"

using namespace empathy;
using namespace empathy::ir;
using namespace empathy::parse;
using namespace goose;
using namespace goose::ir;
using namespace goose::parse;

namespace empathy::builtins
namespace goose::builtins
{
    void SetupBreakStmt( Env& e )
    {
        auto handleBreak = []( Parser& p, uint32_t locationId, uint32_t prec )
        {
            auto& dm = DiagnosticsManager::GetInstance();