public void EmitCustomAttribute(CustomAttributeBuilder /*!*/ builder, CustomAttribute.TargetSelectors selector) { foreach (GlobalConstantDecl cd in constants) { cd.EmitCustomAttribute(builder); } }
public void EmitCustomAttribute(CustomAttributeBuilder /*!*/ builder, CustomAttribute.TargetSelectors selector) { if (selector == CustomAttribute.TargetSelectors.Return) { function.Builder.ReturnParamBuilder.SetCustomAttribute(builder); } else { // custom attributes ignored on functions in evals: ReflectionUtils.SetCustomAttribute(function.ArgFullInfo, builder); } }
public int GetAttributeUsageCount(DType /*!*/ type, CustomAttribute.TargetSelectors selector) { var attributes = node.Attributes; if (attributes == null || attributes.Attributes == null) { return(0); } else { return(attributes.Count(type, selector)); } }
public int Count(CustomAttributes /*!*/ node, DType /*!*/ attributeType, CustomAttribute.TargetSelectors selector) { if (node.Attributes == null) { return(0); } int count = 0; foreach (CustomAttribute attribute in node.Attributes) { if (attribute.TargetSelector == selector && attribute.GetResolvedType().Equals(attributeType)) { count++; } } return(count); }
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; } }
public int GetAttributeUsageCount(DType /*!*/ type, CustomAttribute.TargetSelectors selector) { return(attributes.Count(type, selector)); }
public void EmitCustomAttribute(CustomAttributeBuilder /*!*/ builder, CustomAttribute.TargetSelectors selector) { Debug.Assert(selector == CustomAttribute.TargetSelectors.Default); routine.Builder.ParameterBuilders[routine.FirstPhpParameterIndex + index].SetCustomAttribute(builder); }
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 static int Count(this CustomAttributes /*!*/ node, DType /*!*/ attributeType, CustomAttribute.TargetSelectors selector) { return(node.Compiler().Count(node, attributeType, 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) { foreach (GlobalConstantDecl cd in constants) { cd.ApplyCustomAttribute(kind, attribute, selector); } }
private List <CustomAttribute> /*!*/ CustomAttributes(List <CustomAttribute> /*!*/ attrs, CustomAttribute.TargetSelectors targetSelector) { for (int i = 0; i < attrs.Count; i++) { attrs[i].TargetSelector = targetSelector; } return(attrs); }
public void EmitCustomAttribute(CustomAttributeBuilder /*!*/ builder, CustomAttribute.TargetSelectors selector) { foreach (GlobalConstantDecl cd in node.Constants) { var cdcompiler = cd.NodeCompiler <IGlobalConstantDeclCompiler>(); cdcompiler.EmitCustomAttribute(builder); } }
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); } }
public void EmitCustomAttribute(CustomAttributeBuilder /*!*/ builder, CustomAttribute.TargetSelectors selector) { Debug.Assert(selector == CustomAttribute.TargetSelectors.Default); var nodecompiler = node.NodeCompiler <FormalParamCompiler>(); nodecompiler.routine.Builder.ParameterBuilders[nodecompiler.routine.FirstPhpParameterIndex + nodecompiler.index].SetCustomAttribute(builder); }