public BeginWfsCodeModel(ITaskDefinitionSymbol taskDefinition) {

            if (taskDefinition == null) {
                throw new ArgumentNullException(nameof(taskDefinition));
            }

            _taskDefinition  = taskDefinition;
            _taskCodeModel = new TaskCodeModel(taskDefinition);
        }
        public TaskBeginCodeModel(IInitNodeSymbol initNodeSymbol) {
            if (initNodeSymbol == null) {
                throw new ArgumentNullException(nameof(initNodeSymbol));
            }

            var task  = initNodeSymbol.ContainingTask;
            TaskCodeModel      = new TaskCodeModel(task);
            BeginLogicMethodName = "BeginLogic";
            InitName             = initNodeSymbol.Name??String.Empty;
        }
        public SignalTriggerCodeModel(ISignalTriggerSymbol signalTriggerSymbol) {

            if (signalTriggerSymbol == null) {
                throw new ArgumentNullException(nameof(signalTriggerSymbol));
            }

            var task = signalTriggerSymbol.Transition.ContainingTask;

            TaskCodeModel        = new TaskCodeModel(task);
            TriggerLogicMethodName = $"{signalTriggerSymbol.Name}Logic";
        }
        public TaskExitCodeModel(IConnectionPointReferenceSymbol connectionPointReferenceSymbol) {

            if (connectionPointReferenceSymbol == null) {
                throw new ArgumentNullException(nameof(connectionPointReferenceSymbol));
            }

            var exitTransition = connectionPointReferenceSymbol.ExitTransition;
            var task = exitTransition.TaskDefinition;

            TaskCodeModel = new TaskCodeModel(task);
            AfterLogicMethodName = $"After{exitTransition.Source?.Name}Logic";
        }
 public TaskDeclarationLocationInfoProvider(ITextBuffer sourceBuffer, TaskCodeModel taskCodeModel): base(sourceBuffer) {
     _taskCodeModel  = taskCodeModel;
 }