public void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector) { foreach (GlobalConstantDecl cd in constants) { cd.ApplyCustomAttribute(kind, attribute, selector); } }
public void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector) { foreach (GlobalConstantDecl cd in node.Constants) { var cdcompiler = cd.NodeCompiler <IGlobalConstantDeclCompiler>(); cdcompiler.ApplyCustomAttribute(kind, attribute, selector); } }
internal void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector) { switch (kind) { case SpecialAttributes.Export: constant.ExportInfo = (ExportAttribute)attribute; break; default: Debug.Fail("N/A"); throw null; } }
public void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector) { switch (kind) { case SpecialAttributes.Export: function.Builder.ExportInfo = (ExportAttribute)attribute; break; default: Debug.Fail("N/A"); throw null; } }
private void ApplySpecialAttribute(Analyzer /*!*/ analyzer, SpecialAttributes kind, Attribute attribute) { switch (node.TargetSelector) { case CustomAttribute.TargetSelectors.Assembly: case CustomAttribute.TargetSelectors.Module: analyzer.SourceUnit.CompilationUnit.ModuleBuilder.AssemblyBuilder.ApplyCustomAttribute(kind, attribute, node.TargetSelector); break; default: target.ApplyCustomAttribute(kind, attribute, node.TargetSelector); break; } }
public void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector) { Debug.Assert(selector == CustomAttribute.TargetSelectors.Default); switch (kind) { case SpecialAttributes.Out: isOut = true; break; default: Debug.Fail("N/A"); throw null; } }
public void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector) { foreach (GlobalConstantDecl cd in constants) cd.ApplyCustomAttribute(kind, attribute, selector); }
public override void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector) { switch (kind) { case SpecialAttributes.Export: Debug.Assert(selector == CustomAttribute.TargetSelectors.Default); method.Builder.ExportInfo = (ExportAttribute)attribute; break; default: Debug.Fail("N/A"); break; } }
private void ApplySpecialAttribute(Analyzer/*!*/ analyzer, SpecialAttributes kind, Attribute attribute) { switch (node.TargetSelector) { case CustomAttribute.TargetSelectors.Assembly: case CustomAttribute.TargetSelectors.Module: analyzer.SourceUnit.CompilationUnit.ModuleBuilder.AssemblyBuilder.ApplyCustomAttribute(kind, attribute, node.TargetSelector); break; default: target.ApplyCustomAttribute(kind, attribute, node.TargetSelector); break; } }
public override void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector) { // nothing }
internal void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector) { // constant redeclared: if (constant == null) return; switch (kind) { case SpecialAttributes.Export: Debug.Assert(selector == CustomAttribute.TargetSelectors.Default); constant.ExportInfo = (ExportAttribute)attribute; break; default: Debug.Fail("N/A"); break; } }
internal void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector) { // field redeclared: if (field == null) return; switch (kind) { case SpecialAttributes.Export: Debug.Assert(selector == CustomAttribute.TargetSelectors.Default); field.Builder.ExportInfo = (ExportAttribute)attribute; break; case SpecialAttributes.AppStatic: field.MemberDesc.MemberAttributes |= PhpMemberAttributes.AppStatic; break; default: Debug.Fail("N/A"); throw null; } }
public override void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector) { foreach (FieldDecl field in fields) field.ApplyCustomAttribute(kind, attribute, selector); }
public void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector) { Debug.Fail("N/A"); }
public abstract void ApplyCustomAttribute(SpecialAttributes kind, Attribute attribute, CustomAttribute.TargetSelectors selector);