IAttributeDefinition

Overview

IAttributeDefinition is used to add/modify attributes in a member or type.

Location


 

AddNamedParameter

Add a new named parameter

 

method AddNamedParameter(name: String; value: Value)

 

void AddNamedParameter(String name, Value value)

 

func AddNamedParameter(_ name: String, _ value: Value)

 

void AddNamedParameter(String name, Value value)

 

Sub AddNamedParameter(name As String, value As Value)

Parameters:

  • name: name of the parameter
  • value: value

AddParameter

Add a new parameter

 

method AddParameter(value: Value)

 

void AddParameter(Value value)

 

func AddParameter(_ value: Value)

 

void AddParameter(Value value)

 

Sub AddParameter(value As Value)

Parameters:

  • value: parameter value

DeleteNamedParameter

Delete a named parameter by index

 

method DeleteNamedParameter(no: Int32)

 

void DeleteNamedParameter(Int32 no)

 

func DeleteNamedParameter(_ no: Int32)

 

void DeleteNamedParameter(Int32 no)

 

Sub DeleteNamedParameter(no As Int32)

Parameters:

  • no: index

DeleteParameter

Delete a parameter by index

 

method DeleteParameter(no: Int32)

 

void DeleteParameter(Int32 no)

 

func DeleteParameter(_ no: Int32)

 

void DeleteParameter(Int32 no)

 

Sub DeleteParameter(no As Int32)

Parameters:

  • no: index

ResolveMembers

Resolve the method that fits with the parameters given, this will cause compiler errors if it doesn't match. If it's not called, the attribute won't be emitted

 

method ResolveMembers

 

void ResolveMembers()

 

func ResolveMembers()

 

void ResolveMembers()

 

Sub ResolveMembers()

SetNamedParameterValue

Set a named parameter by index

 

method SetNamedParameterValue(no: Int32; value: Value)

 

void SetNamedParameterValue(Int32 no, Value value)

 

func SetNamedParameterValue(_ no: Int32, _ value: Value)

 

void SetNamedParameterValue(Int32 no, Value value)

 

Sub SetNamedParameterValue(no As Int32, value As Value)

Parameters:

  • no: index
  • value: new named parameter value

SetParameter

Change a parameter

 

method SetParameter(no: Int32; value: Value)

 

void SetParameter(Int32 no, Value value)

 

func SetParameter(_ no: Int32, _ value: Value)

 

void SetParameter(Int32 no, Value value)

 

Sub SetParameter(no As Int32, value As Value)

Parameters:

  • no: index
  • value: new parameter value

Type

The type of this attribute

 

property Type: IType read write;

 

IType Type { get; set; }

 

var Type: IType { get{} set{} }

 

IType Type { __get; __set; }

 

Property Type() As IType

 

Type

The type of this attribute

 

property Type: IType read write;

 

IType Type { get; set; }

 

var Type: IType { get{} set{} }

 

IType Type { __get; __set; }

 

Property Type() As IType

 

AddNamedParameter

Add a new named parameter

 

method AddNamedParameter(name: String; value: Value)

 

void AddNamedParameter(String name, Value value)

 

func AddNamedParameter(_ name: String, _ value: Value)

 

void AddNamedParameter(String name, Value value)

 

Sub AddNamedParameter(name As String, value As Value)

Parameters:

  • name: name of the parameter
  • value: value

AddParameter

Add a new parameter

 

method AddParameter(value: Value)

 

void AddParameter(Value value)

 

func AddParameter(_ value: Value)

 

void AddParameter(Value value)

 

Sub AddParameter(value As Value)

Parameters:

  • value: parameter value

DeleteNamedParameter

Delete a named parameter by index

 

method DeleteNamedParameter(no: Int32)

 

void DeleteNamedParameter(Int32 no)

 

func DeleteNamedParameter(_ no: Int32)

 

void DeleteNamedParameter(Int32 no)

 

Sub DeleteNamedParameter(no As Int32)

Parameters:

  • no: index

DeleteParameter

Delete a parameter by index

 

method DeleteParameter(no: Int32)

 

void DeleteParameter(Int32 no)

 

func DeleteParameter(_ no: Int32)

 

void DeleteParameter(Int32 no)

 

Sub DeleteParameter(no As Int32)

Parameters:

  • no: index

ResolveMembers

Resolve the method that fits with the parameters given, this will cause compiler errors if it doesn't match. If it's not called, the attribute won't be emitted

 

method ResolveMembers

 

void ResolveMembers()

 

func ResolveMembers()

 

void ResolveMembers()

 

Sub ResolveMembers()

SetNamedParameterValue

Set a named parameter by index

 

method SetNamedParameterValue(no: Int32; value: Value)

 

void SetNamedParameterValue(Int32 no, Value value)

 

func SetNamedParameterValue(_ no: Int32, _ value: Value)

 

void SetNamedParameterValue(Int32 no, Value value)

 

Sub SetNamedParameterValue(no As Int32, value As Value)

Parameters:

  • no: index
  • value: new named parameter value

SetParameter

Change a parameter

 

method SetParameter(no: Int32; value: Value)

 

void SetParameter(Int32 no, Value value)

 

func SetParameter(_ no: Int32, _ value: Value)

 

void SetParameter(Int32 no, Value value)

 

Sub SetParameter(no As Int32, value As Value)

Parameters:

  • no: index
  • value: new parameter value