Exemple #1
0
            // Define scopes

            protected override object?Visit(Expression.StructType sty)
            {
                symbolTable.PushScope(ScopeKind.Struct);
                base.Visit(sty);
                symbolTable.PopScope();
                return(null);
            }
Exemple #2
0
 protected override object?Visit(Expression.StructType sty)
 {
     // NOTE: We don't visit declarations here to avoid recursion
     foreach (var field in sty.Fields)
     {
         Visit(field);
     }
     return(null);
 }
Exemple #3
0
        // Implementation details //////////////////////////////////////////////

        protected override Type?Visit(Expression.StructType sty) => Type.Type_;