Table of Contents

Class IrFunctionAttributes

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Represents diagnostic attributes associated with an IR function.

public sealed record IrFunctionAttributes : IEquatable<IrFunctionAttributes>
Inheritance
IrFunctionAttributes
Implements
Inherited Members

Constructors

IrFunctionAttributes(string?, string?, TextSpan?)

Represents diagnostic attributes associated with an IR function.

public IrFunctionAttributes(string? SourceName, string? QualifiedSourceName, TextSpan? DeclarationSpan)

Parameters

SourceName string

The source-level function name, when available.

QualifiedSourceName string

The qualified source-level function name, when available.

DeclarationSpan TextSpan?

The source declaration span, when available.

Properties

DeclarationSpan

The source declaration span, when available.

public TextSpan? DeclarationSpan { get; init; }

Property Value

TextSpan?

QualifiedSourceName

The qualified source-level function name, when available.

public string? QualifiedSourceName { get; init; }

Property Value

string

SourceName

The source-level function name, when available.

public string? SourceName { get; init; }

Property Value

string

Methods

Deconstruct(out string?, out string?, out TextSpan?)

public void Deconstruct(out string? SourceName, out string? QualifiedSourceName, out TextSpan? DeclarationSpan)

Parameters

SourceName string
QualifiedSourceName string
DeclarationSpan TextSpan?

Equals(IrFunctionAttributes?)

public bool Equals(IrFunctionAttributes? other)

Parameters

other IrFunctionAttributes

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(IrFunctionAttributes?, IrFunctionAttributes?)

public static bool operator ==(IrFunctionAttributes? left, IrFunctionAttributes? right)

Parameters

left IrFunctionAttributes
right IrFunctionAttributes

Returns

bool

operator !=(IrFunctionAttributes?, IrFunctionAttributes?)

public static bool operator !=(IrFunctionAttributes? left, IrFunctionAttributes? right)

Parameters

left IrFunctionAttributes
right IrFunctionAttributes

Returns

bool