Retrieving the Scope of a statement
Basile B.
b2.temp at gmx.com
Sun May 3 03:10:34 UTC 2020
On Saturday, 2 May 2020 at 21:36:00 UTC, Cristian Creteanu wrote:
> On Tuesday, 21 April 2020 at 07:45:23 UTC, Basile B. wrote:
>> alias OnStatementSemanticStart = void function(Statement,
>> Scope*);
>> alias OnStatementSemanticDone = void function(Statement,
>> Scope*);
>> alias OnExpressionSemanticStart = void function(Expression,
>> Scope*);
>> alias OnExpressionSemanticDone = void function(Expression,
>> Scope*);
>>
>> OnStatementSemanticStart onStatementSemanticStart;
>> OnStatementSemanticDone onStatementSemanticDone;
>> OnExpressionSemanticStart onExpressionSemanticStart;
>> OnExpressionSemanticDone onExpressionSemanticDone;
>>
>> and add the handlers in statementSemantic() and
>> expressionSemantic()
>
>
> Thank you so much! It worked :D
I've seen the PR [1], so it's ok, you manage to get something to
work with this ?
If so in DMD I would prefer a `version(callback_API)` because at
some point more callbacks might be required, added, but not
necessarily tied to the dmd library version.
[1] https://github.com/dlang/dmd/pull/11092
More information about the Digitalmars-d
mailing list