Beispiel #1
0
        public BoundVariableRef BindCatchVariable(AST.CatchItem x)
        {
            var tmask = _flowCtx.TypeRefContext.GetTypeMask(x.TypeRef, true);

            return(new BoundVariableRef(new BoundVariableName(x.Variable.VarName))
                   .WithAccess(BoundAccess.Write.WithWrite(tmask)));
        }
Beispiel #2
0
 /// <summary>
 /// Visit catch. Variable first then body statements.
 /// </summary>
 /// <param name="x"></param>
 virtual public void VisitCatchItem(CatchItem x)
 {
     VisitElement(x.TypeRef);
     VisitElement(x.Variable);
     VisitStatements(x.Statements);
 }