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); }
public void ResolveWithCurrentContext(ResolveContext rc) { foreach (var attr in moduleAttributes) { VSharpAttribute a = (VSharpAttribute)attr; a.DoResolve(rc); resolvedAttributes.Add(a.ResolvedAttribute); } RootPackage.DoResolve(rc); }
public void AddAttribute(VSharpAttribute attr) { Attrs.Add(attr); }
public VSharpAttributes(VSharpAttribute a) { Attrs = new List <VSharpAttribute>(); Attrs.Add(a); }
public void AddAttributes(VSharpAttribute att) { moduleAttributes.Add(att); }