Пример #1
0
 public ResElementCtorArg(
     IResAttributeRef attribute,
     IResExp value)
 {
     this.Attribute = attribute;
     this.Value     = value;
 }
Пример #2
0
        private MidExp EmitExpImpl(IResAttributeRef resAttrib, MidEmitEnv env)
        {
            var wrapper = (MidAttributeWrapperMemberRef)EmitMemberTerm(resAttrib.MemberTerm, env);

            var type = EmitTypeExp(resAttrib.Type, env);

            return(new MidAttributeRef(resAttrib.Range, type, env.Lazy(() => {
                return wrapper.Decl.Attribute;
            })));
        }