Assembly: OptimaJet.Workflow.Core

Struct CodeForCompillation

OptimaJet.Workflow.Core.CodeActions.CodeForCompillation

Contains a generated C# compilation unit and the source definition from which it was created.

public struct CodeForCompillation

Constructors

public CodeForCompillation(string code, int codeShift, CodeActionDefinition codeActionDefinition) #
Initializes a new instance of CodeForCompillation.

Parameters

Name
Type
Description
code
String
The generated C# compilation unit.
codeShift
Int32
The offset to subtract from a zero-based diagnostic line number in code to obtain the corresponding one-based line number in CodeActionDefinition.ActionCode.
codeActionDefinition
CodeActionDefinition
The CodeForCompillation.CodeActionDefinition from which code was generated.

Properties

public readonly string Code { get; } #
Gets the generated C# compilation unit.
public readonly int CodeShift { get; } #
Gets the offset used to map diagnostic line numbers in CodeForCompillation.Code to line numbers in CodeActionDefinition.ActionCode.

Remarks

Subtract this value from a zero-based diagnostic line number to obtain the corresponding one-based line number in the original code action.
public readonly CodeActionDefinition CodeActionDefinition { get; } #