record TSourceRange

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TSourceRange = record

Description

Identifies a half-open character range in the source code.

Overview

Methods

constructor Create(const ABegin, AEnd: TSourceLocation);
class operator Equal(const ALeft, ARight: TSourceRange): Boolean; inline; static;
class operator NotEqual(const ALeft, ARight: TSourceRange): Boolean; inline; static;
function IsNull: Boolean; inline;
class function Null: TSourceRange; inline; static;

Properties

property First: TSourceLocation read GetFirst;
property Last: TSourceLocation read GetLast;
property Handle: TCXSourceRange read FHandle;

Description

Methods

constructor Create(const ABegin, AEnd: TSourceLocation);

Create a source range given the beginning and ending source locations.

class operator Equal(const ALeft, ARight: TSourceRange): Boolean; inline; static;

Equality operators. Determine whether two ranges are equivalent.

class operator NotEqual(const ALeft, ARight: TSourceRange): Boolean; inline; static;
 
function IsNull: Boolean; inline;

Whether the source range is assigned or not.

class function Null: TSourceRange; inline; static;

A Null (invalid) source location

Properties

property First: TSourceLocation read GetFirst;

Source location representing the first character within a source range.

property Last: TSourceLocation read GetLast;

Source location representing the last character within a source range.

property Handle: TCXSourceRange read FHandle;

Internal handle to C API


Generated by PasDocEx, based on PasDoc 0.14.0.