Example #1
0
 public VSharpResolvedAttribute(ResolveContext context, VSharpAttribute unresolved)
 {
     this.context    = context;
     this.unresolved = unresolved;
     // Pretty much any access to the attribute checks the type first, so
     // we don't need to use lazy-loading for that.
     this.attributeType = (unresolved.AttributeType as ITypeReference).Resolve(context);
 }
Example #2
0
        public void ResolveWithCurrentContext(ResolveContext rc)
        {
            foreach (var attr in moduleAttributes)
            {
                VSharpAttribute a = (VSharpAttribute)attr;
                a.DoResolve(rc);
                resolvedAttributes.Add(a.ResolvedAttribute);
            }



            RootPackage.DoResolve(rc);
        }
Example #3
0
 public void AddAttribute(VSharpAttribute attr)
 {
     Attrs.Add(attr);
 }
Example #4
0
 public VSharpAttributes(VSharpAttribute a)
 {
     Attrs = new List <VSharpAttribute>();
     Attrs.Add(a);
 }
Example #5
0
 public void AddAttributes(VSharpAttribute att)
 {
     moduleAttributes.Add(att);
 }