IServices

Overview

The services interface is an interface for the current project. It makes it possible to define new types, find existing ones and emit messages.

Location

 

AddReference

add a new reference to the project

 

method AddReference(aFile: String)

 

void AddReference(String aFile)

 

func AddReference(_ aFile: String)

 

void AddReference(String aFile)

 

Sub AddReference(aFile As String)

Parameters:

  • aFile: Filename of this reference. This is NOT resolved so should be an absolute filename.

AllInternalTypes

 

property AllInternalTypes: array of IType read;

 

IType[] AllInternalTypes { get; }

 

var AllInternalTypes: IType... { get{} }

 

IType[] AllInternalTypes { __get; }

 

ReadOnly Property AllInternalTypes() As IType()

AssemblyAttributes

 

property AssemblyAttributes: IAttributeDefinitionProvider read;

 

IAttributeDefinitionProvider AssemblyAttributes { get; }

 

var AssemblyAttributes: IAttributeDefinitionProvider { get{} }

 

IAttributeDefinitionProvider AssemblyAttributes { __get; }

 

ReadOnly Property AssemblyAttributes() As IAttributeDefinitionProvider

CreateArray (IType): ISimpleArrayType

Creates a new array type

 

method CreateArray(subtype: IType): ISimpleArrayType

 

ISimpleArrayType CreateArray(IType subtype)

 

func CreateArray(_ subtype: IType) -> ISimpleArrayType

 

ISimpleArrayType CreateArray(IType subtype)

 

Function CreateArray(subtype As IType) As ISimpleArrayType

Parameters:

  • subtype: element type

CreateArray (IType, array of Int32, array of Int32): IMultiDimArrayType

Creates a new array type

 

method CreateArray(subtype: IType; lowbounds: array of Int32; highbounds: array of Int32): IMultiDimArrayType

 

IMultiDimArrayType CreateArray(IType subtype, Int32[] lowbounds, Int32[] highbounds)

 

func CreateArray(_ subtype: IType, _ lowbounds: Int32..., _ highbounds: Int32...) -> IMultiDimArrayType

 

IMultiDimArrayType CreateArray(IType subtype, Int32[] lowbounds, Int32[] highbounds)

 

Function CreateArray(subtype As IType, lowbounds As Int32(), highbounds As Int32()) As IMultiDimArrayType

Parameters:

  • subtype: element type
  • lowbounds: low ranges
  • highbounds: high ranges

CreateDelegate

 

method CreateDelegate(aNestedIn: ITypeDefinition; aNamespace: String; aName: String; aIsBlock: Boolean; aResult: IType; aTypes: array of IType; aParameterModifiers: array of ParameterModifier): ITypeDefinition

 

ITypeDefinition CreateDelegate(ITypeDefinition aNestedIn, String aNamespace, String aName, Boolean aIsBlock, IType aResult, IType[] aTypes, ParameterModifier[] aParameterModifiers)

 

func CreateDelegate(_ aNestedIn: ITypeDefinition, _ aNamespace: String, _ aName: String, _ aIsBlock: Boolean, _ aResult: IType, _ aTypes: IType..., _ aParameterModifiers: ParameterModifier...) -> ITypeDefinition

 

ITypeDefinition CreateDelegate(ITypeDefinition aNestedIn, String aNamespace, String aName, Boolean aIsBlock, IType aResult, IType[] aTypes, ParameterModifier[] aParameterModifiers)

 

Function CreateDelegate(aNestedIn As ITypeDefinition, aNamespace As String, aName As String, aIsBlock As Boolean, aResult As IType, aTypes As IType(), aParameterModifiers As ParameterModifier()) As ITypeDefinition

Parameters:

  • aNestedIn:
  • aNamespace:
  • aName:
  • aIsBlock:
  • aResult:
  • aTypes:
  • aParameterModifiers:

CreateExtensionType

 

method CreateExtensionType(namespace: String; typeToExtend: IType): ITypeDefinition

 

ITypeDefinition CreateExtensionType(String namespace, IType typeToExtend)

 

func CreateExtensionType(_ namespace: String, _ typeToExtend: IType) -> ITypeDefinition

 

ITypeDefinition CreateExtensionType(String namespace, IType typeToExtend)

 

Function CreateExtensionType(namespace As String, typeToExtend As IType) As ITypeDefinition

Parameters:

  • namespace:
  • typeToExtend:

CreateGenericInstance

Creates a generic instantiation

 

method CreateGenericInstance(generictype: IType; params parameters: array of IType): IGenericInstantiationType

 

IGenericInstantiationType CreateGenericInstance(IType generictype, params IType[] parameters)

 

func CreateGenericInstance(_ generictype: IType, _ parameters: IType...) -> IGenericInstantiationType

 

IGenericInstantiationType CreateGenericInstance(IType generictype, IType[]... parameters)

 

Function CreateGenericInstance(generictype As IType, ParamArray parameters As IType()) As IGenericInstantiationType

Parameters:

  • generictype: element type
  • parameters: generic parameters

CreateMappedType

 

method CreateMappedType(mappedtype: IType): IType

 

IType CreateMappedType(IType mappedtype)

 

func CreateMappedType(_ mappedtype: IType) -> IType

 

IType CreateMappedType(IType mappedtype)

 

Function CreateMappedType(mappedtype As IType) As IType

Parameters:

  • mappedtype:

CreateModifiedType

Creates a new ModOpt type; these types are hints to compilers

 

method CreateModifiedType(modified: IType; modifier: IType): IModifiedType

 

IModifiedType CreateModifiedType(IType modified, IType modifier)

 

func CreateModifiedType(_ modified: IType, _ modifier: IType) -> IModifiedType

 

IModifiedType CreateModifiedType(IType modified, IType modifier)

 

Function CreateModifiedType(modified As IType, modifier As IType) As IModifiedType

Parameters:

  • modified: element type
  • modifier: modifier type (usable for annotation purposes only, doesn't effect the runtime)

CreateNotNullableType

 

method CreateNotNullableType(type: IType): INotNullableType

 

INotNullableType CreateNotNullableType(IType type)

 

func CreateNotNullableType(_ type: IType) -> INotNullableType

 

INotNullableType CreateNotNullableType(IType type)

 

Function CreateNotNullableType(type As IType) As INotNullableType

Parameters:

  • type:

CreatePointer

Creates an unmanaged pointer type

 

method CreatePointer(subtype: IType): IPointerType

 

IPointerType CreatePointer(IType subtype)

 

func CreatePointer(_ subtype: IType) -> IPointerType

 

IPointerType CreatePointer(IType subtype)

 

Function CreatePointer(subtype As IType) As IPointerType

Parameters:

  • subtype: element type

CreateReference

Creates a managed reference type

 

method CreateReference(subtype: IType): IManagedReferenceType

 

IManagedReferenceType CreateReference(IType subtype)

 

func CreateReference(_ subtype: IType) -> IManagedReferenceType

 

IManagedReferenceType CreateReference(IType subtype)

 

Function CreateReference(subtype As IType) As IManagedReferenceType

Parameters:

  • subtype: element type

CreateTypeDefinition (String, String, TypeDefKind): ITypeDefinition

Creates a new nested type

 

method CreateTypeDefinition(namespace: String; name: String; kind: TypeDefKind): ITypeDefinition

 

ITypeDefinition CreateTypeDefinition(String namespace, String name, TypeDefKind kind)

 

func CreateTypeDefinition(_ namespace: String, _ name: String, _ kind: TypeDefKind) -> ITypeDefinition

 

ITypeDefinition CreateTypeDefinition(String namespace, String name, TypeDefKind kind)

 

Function CreateTypeDefinition(namespace As String, name As String, kind As TypeDefKind) As ITypeDefinition

Parameters:

  • namespace: namespace for this type
  • name: name of this type
  • kind: type kind

Creates a new nested type

 

method CreateTypeDefinition(nestedin: ITypeDefinition; name: String; kind: TypeDefKind): ITypeDefinition

 

ITypeDefinition CreateTypeDefinition(ITypeDefinition nestedin, String name, TypeDefKind kind)

 

func CreateTypeDefinition(_ nestedin: ITypeDefinition, _ name: String, _ kind: TypeDefKind) -> ITypeDefinition

 

ITypeDefinition CreateTypeDefinition(ITypeDefinition nestedin, String name, TypeDefKind kind)

 

Function CreateTypeDefinition(nestedin As ITypeDefinition, name As String, kind As TypeDefKind) As ITypeDefinition

Parameters:

  • nestedin: type this type is nested in
  • name: type name
  • kind: type kind

CreateWrappedNullableType

 

method CreateWrappedNullableType(type: IType): IWrappedNullableType

 

IWrappedNullableType CreateWrappedNullableType(IType type)

 

func CreateWrappedNullableType(_ type: IType) -> IWrappedNullableType

 

IWrappedNullableType CreateWrappedNullableType(IType type)

 

Function CreateWrappedNullableType(type As IType) As IWrappedNullableType

Parameters:

  • type:

EmitError (String)

Emits an error in the compiler

 

method EmitError(Message: String)

 

void EmitError(String Message)

 

func EmitError(_ Message: String)

 

void EmitError(String Message)

 

Sub EmitError(Message As String)

Parameters:

  • Message: message to emit

EmitError (IPosition, String)

Emits an error in the compiler

 

method EmitError(Position: IPosition; Message: String)

 

void EmitError(IPosition Position, String Message)

 

func EmitError(_ Position: IPosition, _ Message: String)

 

void EmitError(IPosition Position, String Message)

 

Sub EmitError(Position As IPosition, Message As String)

Parameters:

  • Position: Position for this message
  • Message: message to emit

EmitHint (String)

Emits a hint in the compiler

 

method EmitHint(Message: String)

 

void EmitHint(String Message)

 

func EmitHint(_ Message: String)

 

void EmitHint(String Message)

 

Sub EmitHint(Message As String)

Parameters:

  • Message: message to emit

EmitHint (IPosition, String)

Emits a hint in the compiler

 

method EmitHint(Position: IPosition; Message: String)

 

void EmitHint(IPosition Position, String Message)

 

func EmitHint(_ Position: IPosition, _ Message: String)

 

void EmitHint(IPosition Position, String Message)

 

Sub EmitHint(Position As IPosition, Message As String)

Parameters:

  • Position: Position for this message
  • Message: message to emit

EmitWarning (String)

Emits a warning in the compiler

 

method EmitWarning(Message: String)

 

void EmitWarning(String Message)

 

func EmitWarning(_ Message: String)

 

void EmitWarning(String Message)

 

Sub EmitWarning(Message As String)

Parameters:

  • Message: message to emit

EmitWarning (IPosition, String)

Emits a warning in the compiler

 

method EmitWarning(Position: IPosition; Message: String)

 

void EmitWarning(IPosition Position, String Message)

 

func EmitWarning(_ Position: IPosition, _ Message: String)

 

void EmitWarning(IPosition Position, String Message)

 

Sub EmitWarning(Position As IPosition, Message As String)

Parameters:

  • Position: Position for this message
  • Message: message to emit

ExpandPathVariables obsolete

Returns aName as it is, since the compiler does not expand variables anymore but msbuild does.

 

method ExpandPathVariables(aName: String): String

 

String ExpandPathVariables(String aName)

 

func ExpandPathVariables(_ aName: String) -> String

 

String ExpandPathVariables(String aName)

 

Function ExpandPathVariables(aName As String) As String

Parameters:

  • aName: name to expand

FindAnyType

 

method FindAnyType(fullname: String): IType

 

IType FindAnyType(String fullname)

 

func FindAnyType(_ fullname: String) -> IType

 

IType FindAnyType(String fullname)

 

Function FindAnyType(fullname As String) As IType

Parameters:

  • fullname:

FindType

Searches for a type by name

 

method FindType(fullname: String): ITypeReference

 

ITypeReference FindType(String fullname)

 

func FindType(_ fullname: String) -> ITypeReference

 

ITypeReference FindType(String fullname)

 

Function FindType(fullname As String) As ITypeReference

Parameters:

  • fullname: type to find

FixGenericType

Resolve a generic type based on the origin and method arguments.

 

method FixGenericType(aOrigin: IType; aMethodArguments: array of IType; aToFix: IType): IType

 

IType FixGenericType(IType aOrigin, IType[] aMethodArguments, IType aToFix)

 

func FixGenericType(_ aOrigin: IType, _ aMethodArguments: IType..., _ aToFix: IType) -> IType

 

IType FixGenericType(IType aOrigin, IType[] aMethodArguments, IType aToFix)

 

Function FixGenericType(aOrigin As IType, aMethodArguments As IType(), aToFix As IType) As IType

Parameters:

  • aOrigin: The type the tofix type came from
  • aMethodArguments: method arguments to replace
  • aToFix: the type to fix

GetAnyType

 

method GetAnyType(fullname: String): IType

 

IType GetAnyType(String fullname)

 

func GetAnyType(_ fullname: String) -> IType

 

IType GetAnyType(String fullname)

 

Function GetAnyType(fullname As String) As IType

Parameters:

  • fullname:

GetBaseType

 

method GetBaseType(code: Int32): IType

 

IType GetBaseType(Int32 code)

 

func GetBaseType(_ code: Int32) -> IType

 

IType GetBaseType(Int32 code)

 

Function GetBaseType(code As Int32) As IType

Parameters:

  • code:

GetOrCreateGlobal

 

method GetOrCreateGlobal(aNamespace: String): ITypeDefinition

 

ITypeDefinition GetOrCreateGlobal(String aNamespace)

 

func GetOrCreateGlobal(_ aNamespace: String) -> ITypeDefinition

 

ITypeDefinition GetOrCreateGlobal(String aNamespace)

 

Function GetOrCreateGlobal(aNamespace As String) As ITypeDefinition

Parameters:

  • aNamespace:

GetReference

returns a reference by index for this project

 

method GetReference(no: Int32): AssemblyName

 

AssemblyName GetReference(Int32 no)

 

func GetReference(_ no: Int32) -> AssemblyName

 

AssemblyName GetReference(Int32 no)

 

Function GetReference(no As Int32) As AssemblyName

Parameters:

  • no: index

GetType

Searches for a type by name

 

method GetType(fullname: String): ITypeReference

 

ITypeReference GetType(String fullname)

 

func GetType(_ fullname: String) -> ITypeReference

 

ITypeReference GetType(String fullname)

 

Function GetType(fullname As String) As ITypeReference

Parameters:

  • fullname: type to find

GlobalAttributes

 

property GlobalAttributes: IAttributeDefinitionProvider read;

 

IAttributeDefinitionProvider GlobalAttributes { get; }

 

var GlobalAttributes: IAttributeDefinitionProvider { get{} }

 

IAttributeDefinitionProvider GlobalAttributes { __get; }

 

ReadOnly Property GlobalAttributes() As IAttributeDefinitionProvider

IsDefined

Returns true, if at this current source position, the define passed is set (case insensitive)

 

method IsDefined(aDefine: String): Boolean

 

Boolean IsDefined(String aDefine)

 

func IsDefined(_ aDefine: String) -> Boolean

 

Boolean IsDefined(String aDefine)

 

Function IsDefined(aDefine As String) As Boolean

Parameters:

  • aDefine: define to check

MainMethod

 

property MainMethod: IMethodDefinition read write;

 

IMethodDefinition MainMethod { get; set; }

 

var MainMethod: IMethodDefinition { get{} set{} }

 

IMethodDefinition MainMethod { __get; __set; }

 

Property MainMethod() As IMethodDefinition

ModuleAttributes

 

property ModuleAttributes: IAttributeDefinitionProvider read;

 

IAttributeDefinitionProvider ModuleAttributes { get; }

 

var ModuleAttributes: IAttributeDefinitionProvider { get{} }

 

IAttributeDefinitionProvider ModuleAttributes { __get; }

 

ReadOnly Property ModuleAttributes() As IAttributeDefinitionProvider

Platform

Platform this project compiles on

 

property Platform: Platform read;

 

Platform Platform { get; }

 

var Platform: Platform { get{} }

 

Platform Platform { __get; }

 

ReadOnly Property Platform() As Platform

Position

 

property Position: IPosition read write;

 

IPosition Position { get; set; }

 

var Position: IPosition { get{} set{} }

 

IPosition Position { __get; __set; }

 

Property Position() As IPosition

ProjectFileName

 

property ProjectFileName: String read;

 

String ProjectFileName { get; }

 

var ProjectFileName: String { get{} }

 

String ProjectFileName { __get; }

 

ReadOnly Property ProjectFileName() As String

ReferenceCount

returns the number of references

 

property ReferenceCount: Int32 read;

 

Int32 ReferenceCount { get; }

 

var ReferenceCount: Int32 { get{} }

 

Int32 ReferenceCount { __get; }

 

ReadOnly Property ReferenceCount() As Int32

SourceFiles

 

property SourceFiles: array of String read;

 

String[] SourceFiles { get; }

 

var SourceFiles: String... { get{} }

 

String[] SourceFiles { __get; }

 

ReadOnly Property SourceFiles() As String()

 

AllInternalTypes

 

property AllInternalTypes: array of IType read;

 

IType[] AllInternalTypes { get; }

 

var AllInternalTypes: IType... { get{} }

 

IType[] AllInternalTypes { __get; }

 

ReadOnly Property AllInternalTypes() As IType()

AssemblyAttributes

 

property AssemblyAttributes: IAttributeDefinitionProvider read;

 

IAttributeDefinitionProvider AssemblyAttributes { get; }

 

var AssemblyAttributes: IAttributeDefinitionProvider { get{} }

 

IAttributeDefinitionProvider AssemblyAttributes { __get; }

 

ReadOnly Property AssemblyAttributes() As IAttributeDefinitionProvider

GlobalAttributes

 

property GlobalAttributes: IAttributeDefinitionProvider read;

 

IAttributeDefinitionProvider GlobalAttributes { get; }

 

var GlobalAttributes: IAttributeDefinitionProvider { get{} }

 

IAttributeDefinitionProvider GlobalAttributes { __get; }

 

ReadOnly Property GlobalAttributes() As IAttributeDefinitionProvider

MainMethod

 

property MainMethod: IMethodDefinition read write;

 

IMethodDefinition MainMethod { get; set; }

 

var MainMethod: IMethodDefinition { get{} set{} }

 

IMethodDefinition MainMethod { __get; __set; }

 

Property MainMethod() As IMethodDefinition

ModuleAttributes

 

property ModuleAttributes: IAttributeDefinitionProvider read;

 

IAttributeDefinitionProvider ModuleAttributes { get; }

 

var ModuleAttributes: IAttributeDefinitionProvider { get{} }

 

IAttributeDefinitionProvider ModuleAttributes { __get; }

 

ReadOnly Property ModuleAttributes() As IAttributeDefinitionProvider

Platform

Platform this project compiles on

 

property Platform: Platform read;

 

Platform Platform { get; }

 

var Platform: Platform { get{} }

 

Platform Platform { __get; }

 

ReadOnly Property Platform() As Platform

Position

 

property Position: IPosition read write;

 

IPosition Position { get; set; }

 

var Position: IPosition { get{} set{} }

 

IPosition Position { __get; __set; }

 

Property Position() As IPosition

ProjectFileName

 

property ProjectFileName: String read;

 

String ProjectFileName { get; }

 

var ProjectFileName: String { get{} }

 

String ProjectFileName { __get; }

 

ReadOnly Property ProjectFileName() As String

ReferenceCount

returns the number of references

 

property ReferenceCount: Int32 read;

 

Int32 ReferenceCount { get; }

 

var ReferenceCount: Int32 { get{} }

 

Int32 ReferenceCount { __get; }

 

ReadOnly Property ReferenceCount() As Int32

SourceFiles

 

property SourceFiles: array of String read;

 

String[] SourceFiles { get; }

 

var SourceFiles: String... { get{} }

 

String[] SourceFiles { __get; }

 

ReadOnly Property SourceFiles() As String()

 

AddReference

add a new reference to the project

 

method AddReference(aFile: String)

 

void AddReference(String aFile)

 

func AddReference(_ aFile: String)

 

void AddReference(String aFile)

 

Sub AddReference(aFile As String)

Parameters:

  • aFile: Filename of this reference. This is NOT resolved so should be an absolute filename.

CreateArray (IType): ISimpleArrayType

Creates a new array type

 

method CreateArray(subtype: IType): ISimpleArrayType

 

ISimpleArrayType CreateArray(IType subtype)

 

func CreateArray(_ subtype: IType) -> ISimpleArrayType

 

ISimpleArrayType CreateArray(IType subtype)

 

Function CreateArray(subtype As IType) As ISimpleArrayType

Parameters:

  • subtype: element type

CreateArray (IType, array of Int32, array of Int32): IMultiDimArrayType

Creates a new array type

 

method CreateArray(subtype: IType; lowbounds: array of Int32; highbounds: array of Int32): IMultiDimArrayType

 

IMultiDimArrayType CreateArray(IType subtype, Int32[] lowbounds, Int32[] highbounds)

 

func CreateArray(_ subtype: IType, _ lowbounds: Int32..., _ highbounds: Int32...) -> IMultiDimArrayType

 

IMultiDimArrayType CreateArray(IType subtype, Int32[] lowbounds, Int32[] highbounds)

 

Function CreateArray(subtype As IType, lowbounds As Int32(), highbounds As Int32()) As IMultiDimArrayType

Parameters:

  • subtype: element type
  • lowbounds: low ranges
  • highbounds: high ranges

CreateDelegate

 

method CreateDelegate(aNestedIn: ITypeDefinition; aNamespace: String; aName: String; aIsBlock: Boolean; aResult: IType; aTypes: array of IType; aParameterModifiers: array of ParameterModifier): ITypeDefinition

 

ITypeDefinition CreateDelegate(ITypeDefinition aNestedIn, String aNamespace, String aName, Boolean aIsBlock, IType aResult, IType[] aTypes, ParameterModifier[] aParameterModifiers)

 

func CreateDelegate(_ aNestedIn: ITypeDefinition, _ aNamespace: String, _ aName: String, _ aIsBlock: Boolean, _ aResult: IType, _ aTypes: IType..., _ aParameterModifiers: ParameterModifier...) -> ITypeDefinition

 

ITypeDefinition CreateDelegate(ITypeDefinition aNestedIn, String aNamespace, String aName, Boolean aIsBlock, IType aResult, IType[] aTypes, ParameterModifier[] aParameterModifiers)

 

Function CreateDelegate(aNestedIn As ITypeDefinition, aNamespace As String, aName As String, aIsBlock As Boolean, aResult As IType, aTypes As IType(), aParameterModifiers As ParameterModifier()) As ITypeDefinition

Parameters:

  • aNestedIn:
  • aNamespace:
  • aName:
  • aIsBlock:
  • aResult:
  • aTypes:
  • aParameterModifiers:

CreateExtensionType

 

method CreateExtensionType(namespace: String; typeToExtend: IType): ITypeDefinition

 

ITypeDefinition CreateExtensionType(String namespace, IType typeToExtend)

 

func CreateExtensionType(_ namespace: String, _ typeToExtend: IType) -> ITypeDefinition

 

ITypeDefinition CreateExtensionType(String namespace, IType typeToExtend)

 

Function CreateExtensionType(namespace As String, typeToExtend As IType) As ITypeDefinition

Parameters:

  • namespace:
  • typeToExtend:

CreateGenericInstance

Creates a generic instantiation

 

method CreateGenericInstance(generictype: IType; params parameters: array of IType): IGenericInstantiationType

 

IGenericInstantiationType CreateGenericInstance(IType generictype, params IType[] parameters)

 

func CreateGenericInstance(_ generictype: IType, _ parameters: IType...) -> IGenericInstantiationType

 

IGenericInstantiationType CreateGenericInstance(IType generictype, IType[]... parameters)

 

Function CreateGenericInstance(generictype As IType, ParamArray parameters As IType()) As IGenericInstantiationType

Parameters:

  • generictype: element type
  • parameters: generic parameters

CreateMappedType

 

method CreateMappedType(mappedtype: IType): IType

 

IType CreateMappedType(IType mappedtype)

 

func CreateMappedType(_ mappedtype: IType) -> IType

 

IType CreateMappedType(IType mappedtype)

 

Function CreateMappedType(mappedtype As IType) As IType

Parameters:

  • mappedtype:

CreateModifiedType

Creates a new ModOpt type; these types are hints to compilers

 

method CreateModifiedType(modified: IType; modifier: IType): IModifiedType

 

IModifiedType CreateModifiedType(IType modified, IType modifier)

 

func CreateModifiedType(_ modified: IType, _ modifier: IType) -> IModifiedType

 

IModifiedType CreateModifiedType(IType modified, IType modifier)

 

Function CreateModifiedType(modified As IType, modifier As IType) As IModifiedType

Parameters:

  • modified: element type
  • modifier: modifier type (usable for annotation purposes only, doesn't effect the runtime)

CreateNotNullableType

 

method CreateNotNullableType(type: IType): INotNullableType

 

INotNullableType CreateNotNullableType(IType type)

 

func CreateNotNullableType(_ type: IType) -> INotNullableType

 

INotNullableType CreateNotNullableType(IType type)

 

Function CreateNotNullableType(type As IType) As INotNullableType

Parameters:

  • type:

CreatePointer

Creates an unmanaged pointer type

 

method CreatePointer(subtype: IType): IPointerType

 

IPointerType CreatePointer(IType subtype)

 

func CreatePointer(_ subtype: IType) -> IPointerType

 

IPointerType CreatePointer(IType subtype)

 

Function CreatePointer(subtype As IType) As IPointerType

Parameters:

  • subtype: element type

CreateReference

Creates a managed reference type

 

method CreateReference(subtype: IType): IManagedReferenceType

 

IManagedReferenceType CreateReference(IType subtype)

 

func CreateReference(_ subtype: IType) -> IManagedReferenceType

 

IManagedReferenceType CreateReference(IType subtype)

 

Function CreateReference(subtype As IType) As IManagedReferenceType

Parameters:

  • subtype: element type

CreateTypeDefinition (String, String, TypeDefKind): ITypeDefinition

Creates a new nested type

 

method CreateTypeDefinition(namespace: String; name: String; kind: TypeDefKind): ITypeDefinition

 

ITypeDefinition CreateTypeDefinition(String namespace, String name, TypeDefKind kind)

 

func CreateTypeDefinition(_ namespace: String, _ name: String, _ kind: TypeDefKind) -> ITypeDefinition

 

ITypeDefinition CreateTypeDefinition(String namespace, String name, TypeDefKind kind)

 

Function CreateTypeDefinition(namespace As String, name As String, kind As TypeDefKind) As ITypeDefinition

Parameters:

  • namespace: namespace for this type
  • name: name of this type
  • kind: type kind

Creates a new nested type

 

method CreateTypeDefinition(nestedin: ITypeDefinition; name: String; kind: TypeDefKind): ITypeDefinition

 

ITypeDefinition CreateTypeDefinition(ITypeDefinition nestedin, String name, TypeDefKind kind)

 

func CreateTypeDefinition(_ nestedin: ITypeDefinition, _ name: String, _ kind: TypeDefKind) -> ITypeDefinition

 

ITypeDefinition CreateTypeDefinition(ITypeDefinition nestedin, String name, TypeDefKind kind)

 

Function CreateTypeDefinition(nestedin As ITypeDefinition, name As String, kind As TypeDefKind) As ITypeDefinition

Parameters:

  • nestedin: type this type is nested in
  • name: type name
  • kind: type kind

CreateWrappedNullableType

 

method CreateWrappedNullableType(type: IType): IWrappedNullableType

 

IWrappedNullableType CreateWrappedNullableType(IType type)

 

func CreateWrappedNullableType(_ type: IType) -> IWrappedNullableType

 

IWrappedNullableType CreateWrappedNullableType(IType type)

 

Function CreateWrappedNullableType(type As IType) As IWrappedNullableType

Parameters:

  • type:

EmitError (String)

Emits an error in the compiler

 

method EmitError(Message: String)

 

void EmitError(String Message)

 

func EmitError(_ Message: String)

 

void EmitError(String Message)

 

Sub EmitError(Message As String)

Parameters:

  • Message: message to emit

EmitError (IPosition, String)

Emits an error in the compiler

 

method EmitError(Position: IPosition; Message: String)

 

void EmitError(IPosition Position, String Message)

 

func EmitError(_ Position: IPosition, _ Message: String)

 

void EmitError(IPosition Position, String Message)

 

Sub EmitError(Position As IPosition, Message As String)

Parameters:

  • Position: Position for this message
  • Message: message to emit

EmitHint (String)

Emits a hint in the compiler

 

method EmitHint(Message: String)

 

void EmitHint(String Message)

 

func EmitHint(_ Message: String)

 

void EmitHint(String Message)

 

Sub EmitHint(Message As String)

Parameters:

  • Message: message to emit

EmitHint (IPosition, String)

Emits a hint in the compiler

 

method EmitHint(Position: IPosition; Message: String)

 

void EmitHint(IPosition Position, String Message)

 

func EmitHint(_ Position: IPosition, _ Message: String)

 

void EmitHint(IPosition Position, String Message)

 

Sub EmitHint(Position As IPosition, Message As String)

Parameters:

  • Position: Position for this message
  • Message: message to emit

EmitWarning (String)

Emits a warning in the compiler

 

method EmitWarning(Message: String)

 

void EmitWarning(String Message)

 

func EmitWarning(_ Message: String)

 

void EmitWarning(String Message)

 

Sub EmitWarning(Message As String)

Parameters:

  • Message: message to emit

EmitWarning (IPosition, String)

Emits a warning in the compiler

 

method EmitWarning(Position: IPosition; Message: String)

 

void EmitWarning(IPosition Position, String Message)

 

func EmitWarning(_ Position: IPosition, _ Message: String)

 

void EmitWarning(IPosition Position, String Message)

 

Sub EmitWarning(Position As IPosition, Message As String)

Parameters:

  • Position: Position for this message
  • Message: message to emit

ExpandPathVariables obsolete

Returns aName as it is, since the compiler does not expand variables anymore but msbuild does.

 

method ExpandPathVariables(aName: String): String

 

String ExpandPathVariables(String aName)

 

func ExpandPathVariables(_ aName: String) -> String

 

String ExpandPathVariables(String aName)

 

Function ExpandPathVariables(aName As String) As String

Parameters:

  • aName: name to expand

FindAnyType

 

method FindAnyType(fullname: String): IType

 

IType FindAnyType(String fullname)

 

func FindAnyType(_ fullname: String) -> IType

 

IType FindAnyType(String fullname)

 

Function FindAnyType(fullname As String) As IType

Parameters:

  • fullname:

FindType

Searches for a type by name

 

method FindType(fullname: String): ITypeReference

 

ITypeReference FindType(String fullname)

 

func FindType(_ fullname: String) -> ITypeReference

 

ITypeReference FindType(String fullname)

 

Function FindType(fullname As String) As ITypeReference

Parameters:

  • fullname: type to find

FixGenericType

Resolve a generic type based on the origin and method arguments.

 

method FixGenericType(aOrigin: IType; aMethodArguments: array of IType; aToFix: IType): IType

 

IType FixGenericType(IType aOrigin, IType[] aMethodArguments, IType aToFix)

 

func FixGenericType(_ aOrigin: IType, _ aMethodArguments: IType..., _ aToFix: IType) -> IType

 

IType FixGenericType(IType aOrigin, IType[] aMethodArguments, IType aToFix)

 

Function FixGenericType(aOrigin As IType, aMethodArguments As IType(), aToFix As IType) As IType

Parameters:

  • aOrigin: The type the tofix type came from
  • aMethodArguments: method arguments to replace
  • aToFix: the type to fix

GetAnyType

 

method GetAnyType(fullname: String): IType

 

IType GetAnyType(String fullname)

 

func GetAnyType(_ fullname: String) -> IType

 

IType GetAnyType(String fullname)

 

Function GetAnyType(fullname As String) As IType

Parameters:

  • fullname:

GetBaseType

 

method GetBaseType(code: Int32): IType

 

IType GetBaseType(Int32 code)

 

func GetBaseType(_ code: Int32) -> IType

 

IType GetBaseType(Int32 code)

 

Function GetBaseType(code As Int32) As IType

Parameters:

  • code:

GetOrCreateGlobal

 

method GetOrCreateGlobal(aNamespace: String): ITypeDefinition

 

ITypeDefinition GetOrCreateGlobal(String aNamespace)

 

func GetOrCreateGlobal(_ aNamespace: String) -> ITypeDefinition

 

ITypeDefinition GetOrCreateGlobal(String aNamespace)

 

Function GetOrCreateGlobal(aNamespace As String) As ITypeDefinition

Parameters:

  • aNamespace:

GetReference

returns a reference by index for this project

 

method GetReference(no: Int32): AssemblyName

 

AssemblyName GetReference(Int32 no)

 

func GetReference(_ no: Int32) -> AssemblyName

 

AssemblyName GetReference(Int32 no)

 

Function GetReference(no As Int32) As AssemblyName

Parameters:

  • no: index

GetType

Searches for a type by name

 

method GetType(fullname: String): ITypeReference

 

ITypeReference GetType(String fullname)

 

func GetType(_ fullname: String) -> ITypeReference

 

ITypeReference GetType(String fullname)

 

Function GetType(fullname As String) As ITypeReference

Parameters:

  • fullname: type to find

IsDefined

Returns true, if at this current source position, the define passed is set (case insensitive)

 

method IsDefined(aDefine: String): Boolean

 

Boolean IsDefined(String aDefine)

 

func IsDefined(_ aDefine: String) -> Boolean

 

Boolean IsDefined(String aDefine)

 

Function IsDefined(aDefine As String) As Boolean

Parameters:

  • aDefine: define to check