Show / Hide Table of Contents

Class SourceRef

Class representing a reference to source code interval

Inheritance
System.Object
SourceRef
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class SourceRef

Constructors

SourceRef(SourceRef, Boolean)

Declaration
public SourceRef(SourceRef src, bool isStepStop)
Parameters
SourceRef src

System.Boolean isStepStop

SourceRef(Int32, Int32, Int32, Int32, Int32, Boolean)

Declaration
public SourceRef(int sourceIdx, int from, int to, int fromline, int toline, bool isStepStop)
Parameters
System.Int32 sourceIdx

System.Int32 from

System.Int32 to

System.Int32 fromline

System.Int32 toline

System.Boolean isStepStop

Fields

Breakpoint

Gets a value indicating whether this instance is a breakpoint

Declaration
public bool Breakpoint
Field Value
System.Boolean

Properties

CannotBreakpoint

Gets a value indicating whether this instance cannot be set as a breakpoint

Declaration
public bool CannotBreakpoint { get; }
Property Value
System.Boolean

FromChar

Gets from which column the source code ref starts

Declaration
public int FromChar { get; }
Property Value
System.Int32

FromLine

Gets from which line the source code ref starts

Declaration
public int FromLine { get; }
Property Value
System.Int32

IsClrLocation

Gets a value indicating whether this location is inside CLR .

Declaration
public bool IsClrLocation { get; }
Property Value
System.Boolean

IsStepStop

Gets a value indicating whether this instance is a stop "step" in source mode

Declaration
public bool IsStepStop { get; }
Property Value
System.Boolean

SourceIdx

Gets the index of the source.

Declaration
public int SourceIdx { get; }
Property Value
System.Int32

ToChar

Gets to which column the source code ref ends

Declaration
public int ToChar { get; }
Property Value
System.Int32

ToLine

Gets to which line the source code ref ends

Declaration
public int ToLine { get; }
Property Value
System.Int32

Methods

FormatLocation(Script, Boolean)

Formats the location according to script preferences

Declaration
public string FormatLocation(Script script, bool forceClassicFormat = false)
Parameters
Script script

The script.

System.Boolean forceClassicFormat

if set to true the classic Lua format is forced.

Returns
System.String

IncludesLocation(Int32, Int32, Int32)

Gets whether the source ref includes the specified location

Declaration
public bool IncludesLocation(int sourceIdx, int line, int col)
Parameters
System.Int32 sourceIdx

Index of the source.

System.Int32 line

The line.

System.Int32 col

The column.

Returns
System.Boolean

SetNoBreakPoint()

Sets the CannotBreakpoint flag.

Declaration
public SourceRef SetNoBreakPoint()
Returns
SourceRef

ToString()

Returns a System.String that represents this instance.

Declaration
public override string ToString()
Returns
System.String

A System.String that represents this instance.

Overrides
System.Object.ToString()
Back to top Built by Itinero, MIT licensed.