Farkle


PrecompilerExtensions Type

Extension methods that create and build precompilable designtime Farkles.

Static members

Static member Description

PrecompilerExtensions.Build(df)

Full Usage: PrecompilerExtensions.Build(df)

Parameters:
Returns: RuntimeFarkle<'TResult>

If the designtime Farkle is not precompiled the resulting runtime Farkle will fail every time it is used.

df : PrecompilableDesigntimeFarkle<'TResult>
Returns: RuntimeFarkle<'TResult>

PrecompilerExtensions.BuildUntyped(df)

Full Usage: PrecompilerExtensions.BuildUntyped(df)

Parameters:
Returns: RuntimeFarkle<obj>
df : PrecompilableDesigntimeFarkle
Returns: RuntimeFarkle<obj>

PrecompilerExtensions.MarkForPrecompile(df, asm)

Full Usage: PrecompilerExtensions.MarkForPrecompile(df, asm)

Parameters:
    df : DesigntimeFarkle
    asm : Assembly - The assembly where the precompiled grammar will be stored. It should be the assembly from which this method was called.

Returns: PrecompilableDesigntimeFarkle

Marks an untyped DesigntimeFarkle as available to have its grammar precompiled ahead of time.

This function was introduced to allow using the precompiler from AOT environments where getting the calling assembly is not supported. Learn more, including usage restrictions at

df : DesigntimeFarkle
asm : Assembly

The assembly where the precompiled grammar will be stored. It should be the assembly from which this method was called.

Returns: PrecompilableDesigntimeFarkle

PrecompilerExtensions.MarkForPrecompile(df, asm)

Full Usage: PrecompilerExtensions.MarkForPrecompile(df, asm)

Parameters:
    df : DesigntimeFarkle<'TResult>
    asm : Assembly - The assembly where the precompiled grammar will be stored. It should be the assembly from which this method was called.

Returns: PrecompilableDesigntimeFarkle<'TResult>

Marks a DesigntimeFarkle{TResult} as available to have its grammar precompiled ahead of time.

This function was introduced to allow using the precompiler from AOT environments where getting the calling assembly is not supported. Learn more, including usage restrictions at

df : DesigntimeFarkle<'TResult>
asm : Assembly

The assembly where the precompiled grammar will be stored. It should be the assembly from which this method was called.

Returns: PrecompilableDesigntimeFarkle<'TResult>

PrecompilerExtensions.MarkForPrecompile(df)

Full Usage: PrecompilerExtensions.MarkForPrecompile(df)

Parameters:
Returns: PrecompilableDesigntimeFarkle

Marks an untyped DesigntimeFarkle{TResult} as available to have its grammar precompiled ahead of time.

This function has to be directly called from user code. Learn more, including usage restrictions at

df : DesigntimeFarkle
Returns: PrecompilableDesigntimeFarkle

PrecompilerExtensions.MarkForPrecompile(df)

Full Usage: PrecompilerExtensions.MarkForPrecompile(df)

Parameters:
Returns: PrecompilableDesigntimeFarkle<'TResult>

Marks a DesigntimeFarkle{TResult} as available to have its grammar precompiled ahead of time.

This function has to be directly called from user code. Learn more, including usage restrictions at

df : DesigntimeFarkle<'TResult>
Returns: PrecompilableDesigntimeFarkle<'TResult>