Table of Contents

Class LanguageProfile

Namespace
MuLang.Core
Assembly
MuLang.Core.dll

Represents the language features and semantics enabled for MuLang compilation.

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

Properties

ConditionSemantics

Gets the condition semantics.

public ConditionSemantics ConditionSemantics { get; }

Property Value

ConditionSemantics

ConstantFolding

Gets the compile-time constant folding feature setting.

public ConstantFoldingFeature ConstantFolding { get; }

Property Value

ConstantFoldingFeature

ExceptionHandling

Gets the source-level exception-handling feature setting.

public ExceptionHandlingFeature ExceptionHandling { get; }

Property Value

ExceptionHandlingFeature

Fingerprint

Gets the stable fingerprint of the profile.

public LanguageProfileFingerprint Fingerprint { get; }

Property Value

LanguageProfileFingerprint

LanguageVersion

Gets the language version.

public LanguageVersion LanguageVersion { get; }

Property Value

LanguageVersion

Loops

Gets the enabled loop features.

public LoopFeatures Loops { get; }

Property Value

LoopFeatures

MultiLevelLoopControl

Gets the multi-level loop control feature setting.

public MultiLevelLoopControlFeature MultiLevelLoopControl { get; }

Property Value

MultiLevelLoopControlFeature

Mutations

Gets the enabled mutation features.

public MutationFeatures Mutations { get; }

Property Value

MutationFeatures

ObjectLiteralSyntax

Gets the object-literal property grammar.

public ObjectLiteralSyntax ObjectLiteralSyntax { get; }

Property Value

ObjectLiteralSyntax

OpenObjects

Gets the open objects feature setting.

public OpenObjectsFeature OpenObjects { get; }

Property Value

OpenObjectsFeature

ProviderFunctionCalls

Gets the provider function calls feature setting.

public ProviderFunctionCallsFeature ProviderFunctionCalls { get; }

Property Value

ProviderFunctionCallsFeature

Recursion

Gets the recursion feature setting.

public RecursionFeature Recursion { get; }

Property Value

RecursionFeature

Shadowing

Gets the shadowing policy.

public ShadowingPolicy Shadowing { get; }

Property Value

ShadowingPolicy

TrailingCommas

Gets the trailing commas feature setting.

public TrailingCommasFeature TrailingCommas { get; }

Property Value

TrailingCommasFeature

UserDefinedFunctions

Gets the user-defined functions feature setting.

public UserDefinedFunctionsFeature UserDefinedFunctions { get; }

Property Value

UserDefinedFunctionsFeature

UserDefinedTypes

Gets the user-defined types feature setting.

public UserDefinedTypesFeature UserDefinedTypes { get; }

Property Value

UserDefinedTypesFeature

Methods

Equals(LanguageProfile?)

public bool Equals(LanguageProfile? other)

Parameters

other LanguageProfile

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 ==(LanguageProfile?, LanguageProfile?)

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

Parameters

left LanguageProfile
right LanguageProfile

Returns

bool

operator !=(LanguageProfile?, LanguageProfile?)

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

Parameters

left LanguageProfile
right LanguageProfile

Returns

bool