ILocal

Overview

ILocal can be used to query or modify information about the locals defined in the current method.

Location

 

Index

Returns the index of this local

 

property Index: Int32 read;

 

Int32 Index { get; }

 

var Index: Int32 { get{} }

 

Int32 Index { __get; }

 

ReadOnly Property Index() As Int32

Name

Gets or sets the name of a local; if not set at all, no debug info will be created for this

 

property Name: String read write;

 

String Name { get; set; }

 

var Name: String { get{} set{} }

 

String Name { __get; __set; }

 

Property Name() As String

Pinned

If set, the local will be considered "pinned" and will only be allowed to set once. The value it is set to won't be moved in memory by the QC until the method exits

 

property Pinned: Boolean read write;

 

Boolean Pinned { get; set; }

 

var Pinned: Boolean { get{} set{} }

 

Boolean Pinned { __get; __set; }

 

Property Pinned() As Boolean

ReadOnly

If set, the variable cannot be written to

 

property ReadOnly: Boolean read write;

 

Boolean ReadOnly { get; set; }

 

var ReadOnly: Boolean { get{} set{} }

 

Boolean ReadOnly { __get; __set; }

 

Property ReadOnly() As Boolean

Type

The type of this local

 

property Type: IType read write;

 

IType Type { get; set; }

 

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

 

IType Type { __get; __set; }

 

Property Type() As IType

Use

Set this local to "used" and no warnings will be emitted about unused locals

 

method Use

 

void Use()

 

func Use()

 

void Use()

 

Sub Use()

Used

Returns if this local is used or not (cannot be set; use Use() to set to true)

 

property Used: Boolean read;

 

Boolean Used { get; }

 

var Used: Boolean { get{} }

 

Boolean Used { __get; }

 

ReadOnly Property Used() As Boolean

 

Index

Returns the index of this local

 

property Index: Int32 read;

 

Int32 Index { get; }

 

var Index: Int32 { get{} }

 

Int32 Index { __get; }

 

ReadOnly Property Index() As Int32

Name

Gets or sets the name of a local; if not set at all, no debug info will be created for this

 

property Name: String read write;

 

String Name { get; set; }

 

var Name: String { get{} set{} }

 

String Name { __get; __set; }

 

Property Name() As String

Pinned

If set, the local will be considered "pinned" and will only be allowed to set once. The value it is set to won't be moved in memory by the QC until the method exits

 

property Pinned: Boolean read write;

 

Boolean Pinned { get; set; }

 

var Pinned: Boolean { get{} set{} }

 

Boolean Pinned { __get; __set; }

 

Property Pinned() As Boolean

ReadOnly

If set, the variable cannot be written to

 

property ReadOnly: Boolean read write;

 

Boolean ReadOnly { get; set; }

 

var ReadOnly: Boolean { get{} set{} }

 

Boolean ReadOnly { __get; __set; }

 

Property ReadOnly() As Boolean

Type

The type of this local

 

property Type: IType read write;

 

IType Type { get; set; }

 

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

 

IType Type { __get; __set; }

 

Property Type() As IType

Used

Returns if this local is used or not (cannot be set; use Use() to set to true)

 

property Used: Boolean read;

 

Boolean Used { get; }

 

var Used: Boolean { get{} }

 

Boolean Used { __get; }

 

ReadOnly Property Used() As Boolean

 

Use

Set this local to "used" and no warnings will be emitted about unused locals

 

method Use

 

void Use()

 

func Use()

 

void Use()

 

Sub Use()