コード例 #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);
 }
コード例 #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);
        }
コード例 #3
0
 public void AddAttribute(VSharpAttribute attr)
 {
     Attrs.Add(attr);
 }
コード例 #4
0
 public VSharpAttributes(VSharpAttribute a)
 {
     Attrs = new List <VSharpAttribute>();
     Attrs.Add(a);
 }
コード例 #5
0
 public void AddAttributes(VSharpAttribute att)
 {
     moduleAttributes.Add(att);
 }