Example #1
0
        public ConstructorArgumentReflector(Constructor ctor, Parameter p, CompilerDataTypeProvider c) : base(c)
        {
            _ctor = ctor;
            _p    = p;

            Name = p.Name;

            var attr = p.Attributes.FirstOrDefault(x => x.Constructor.DeclaringType.GetCachedFullName() == "Uno.UX.UXParameterAttribute");

            if (attr != null)
            {
                Name = attr.Arguments[0].ConstantValue as string;
            }
        }
Example #2
0
        internal DataTypeReflector(Uno.Compiler.API.Domain.IL.DataType dt, CompilerDataTypeProvider c, AutoGenericInfo agi)
        {
            _c          = c;
            UnoDataType = dt;

            AutoGenericInfo = agi;

            foreach (var ctor in UnoDataType.Constructors)
            {
                if (ctor.Attributes.Any(x => x.Constructor.DeclaringType.GetCachedFullName() == "Uno.UX.UXConstructorAttribute"))
                {
                    _ctor = ctor;
                    break;
                }
            }
        }
Example #3
0
 public EnumReflector(Uno.Compiler.API.Domain.IL.Types.EnumType dt, CompilerDataTypeProvider c) : base(dt, c, null)
 {
 }
Example #4
0
 internal PropertyReflectorBase(CompilerDataTypeProvider c)
 {
     _c = c;
 }
Example #5
0
 public GlobalResourceReflector(Uno.Compiler.API.Domain.IL.Members.Member m, CompilerDataTypeProvider c)
 {
     _m = m;
     _c = c;
 }
Example #6
0
 public AttachedEventReflector(AttachedEvent ae, CompilerDataTypeProvider c)
 {
     _ae = ae;
     _c  = c;
 }
Example #7
0
 public PropertyReflector(Uno.Compiler.API.Domain.IL.Members.Property prop, CompilerDataTypeProvider c) : base(c)
 {
     _property = prop;
 }
Example #8
0
 public AttachedPropertyReflector(AttachedProperty apf, CompilerDataTypeProvider c) : base(c)
 {
     _apf = apf;
 }