Struct CodeForCompillation
OptimaJet.Workflow.Core.CodeActions.CodeForCompillation
Contains a generated C# compilation unit and the source definition from which it was created.
Namespace: OptimaJet.Workflow.Core.CodeActions
public struct CodeForCompillationConstructors
public CodeForCompillation(string code, int codeShift, CodeActionDefinition codeActionDefinition) #Initializes a new instance of CodeForCompillation.
Parameters
Name
Type
Description
codeStringThe generated C# compilation unit.
codeShiftInt32The offset to subtract from a zero-based diagnostic line number in
code to obtain the corresponding one-based line number in CodeActionDefinition.ActionCode.codeActionDefinitionCodeActionDefinitionThe 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; } #Gets the CodeForCompillation.CodeActionDefinition from which CodeForCompillation.Code was generated.