Exemplo n.º 1
0
 internal RequestHoverText(
     LanguageNode languageNode,
     LinePosition linePosition,
     KernelCommand parent = null)
     : base(languageNode, linePosition, parent)
 {
 }
Exemplo n.º 2
0
 internal RequestCompletions(
     LanguageNode languageNode,
     LinePosition linePosition,
     KernelCommand parent = null)
     : base(languageNode, linePosition, parent)
 {
 }
Exemplo n.º 3
0
 internal RequestSignatureHelp(
     LanguageNode languageNode,
     LinePosition linePosition,
     KernelCommand parent = null)
     : base(languageNode, linePosition, parent)
 {
 }
Exemplo n.º 4
0
        protected KernelCommand(string targetKernelName = null, KernelCommand parent = null)
        {
            Properties = new Dictionary <string, object>(StringComparer.InvariantCultureIgnoreCase);

            TargetKernelName = targetKernelName;

            Parent = parent;
        }
Exemplo n.º 5
0
 internal DirectiveCommand(
     ParseResult parseResult,
     KernelCommand parent,
     DirectiveNode directiveNode = null) : base(null, parent)
 {
     ParseResult   = parseResult;
     DirectiveNode = directiveNode;
 }
Exemplo n.º 6
0
 internal DirectiveCommand(
     ParseResult parseResult,
     KernelCommand parent,
     DirectiveNode directiveNode = null) : base(null, parent)
 {
     ParseResult     = parseResult;
     DirectiveNode   = directiveNode;
     SchedulingScope = directiveNode?.CommandScope;
 }
 protected LanguageServiceCommand(
     LanguageNode languageNode,
     LinePosition linePosition,
     KernelCommand parent = null)
     : base(languageNode.KernelName, parent)
 {
     Code         = languageNode.Text;
     LanguageNode = languageNode;
     LinePosition = linePosition;
 }
 protected LanguageServiceCommand(
     string code,
     LinePosition linePosition,
     string targetKernelName = null,
     KernelCommand parent    = null)
     : base(targetKernelName, parent)
 {
     Code         = code;
     LinePosition = linePosition;
 }
Exemplo n.º 9
0
 internal SubmitCode(
     LanguageNode languageNode,
     SubmissionType submissionType = SubmissionType.Run,
     KernelCommand parent          = null)
     : base(languageNode.Language, parent)
 {
     Code           = languageNode.Text;
     LanguageNode   = languageNode;
     SubmissionType = submissionType;
 }
Exemplo n.º 10
0
        internal RequestDiagnostics(
            LanguageNode languageNode,
            KernelCommand parent = null)
            : base(languageNode.KernelName, parent)
        {
            Code         = languageNode.Text;
            LanguageNode = languageNode;

            if (languageNode is ActionDirectiveNode actionDirectiveNode)
            {
                TargetKernelName = actionDirectiveNode.ParentKernelName;
            }
        }
Exemplo n.º 11
0
        protected KernelCommand(string targetKernelName = null, KernelCommand parent = null)
        {
            if (parent is null)
            {
                parent = KernelInvocationContext.Current?.Command;

                if (parent != this)
                {
                    Parent = parent;
                }
            }

            Properties = new Dictionary <string, object>(StringComparer.InvariantCultureIgnoreCase);

            TargetKernelName = targetKernelName;
        }
Exemplo n.º 12
0
        internal SubmitCode(
            LanguageNode languageNode,
            SubmissionType submissionType = SubmissionType.Run,
            KernelCommand parent          = null,
            KernelNameDirectiveNode kernelNameDirectiveNode = null)
            : base(languageNode.KernelName, parent)
        {
            Code                    = languageNode.Text;
            LanguageNode            = languageNode;
            SubmissionType          = submissionType;
            KernelNameDirectiveNode = kernelNameDirectiveNode;

            if (languageNode is ActionDirectiveNode actionDirectiveNode)
            {
                TargetKernelName = actionDirectiveNode.ParentKernelName;
            }
        }