Example #1
0
        public PhpEditorNavigationSource([NotNull] ITextBuffer textBuffer, PhpEditorNavigationSourceProvider provider)
        {
            Requires.NotNull(textBuffer, nameof(textBuffer));

            this._textBuffer       = textBuffer;
            this._backgroundParser = PhpEditorNavigationBackgroundParser.CreateParser(textBuffer, provider.BackgroundIntelliSenseTaskScheduler, provider.OutputWindowService, provider.TextDocumentFactoryService);
            this._provider         = provider;

            this.BackgroundParser.ParseComplete += HandleBackgroundParseComplete;
            this.BackgroundParser.RequestParse(false);
        }
        public PhpEditorNavigationSource(ITextBuffer textBuffer, PhpEditorNavigationSourceProvider provider)
        {
            Contract.Requires<ArgumentNullException>(textBuffer != null, "textBuffer");

            this._textBuffer = textBuffer;
            this._backgroundParser = PhpEditorNavigationBackgroundParser.CreateParser(textBuffer, provider.BackgroundIntelliSenseTaskScheduler, provider.OutputWindowService, provider.TextDocumentFactoryService);
            this._provider = provider;

            this.BackgroundParser.ParseComplete += HandleBackgroundParseComplete;
            this.BackgroundParser.RequestParse(false);
        }
        public PhpEditorNavigationSource(ITextBuffer textBuffer, PhpEditorNavigationSourceProvider provider)
        {
            Contract.Requires <ArgumentNullException>(textBuffer != null, "textBuffer");

            this._textBuffer       = textBuffer;
            this._backgroundParser = PhpEditorNavigationBackgroundParser.CreateParser(textBuffer, provider.BackgroundIntelliSenseTaskScheduler, provider.OutputWindowService, provider.TextDocumentFactoryService);
            this._provider         = provider;

            this.BackgroundParser.ParseComplete += HandleBackgroundParseComplete;
            this.BackgroundParser.RequestParse(false);
        }
Example #4
0
            public Listener([NotNull] PhpEditorNavigationSourceProvider provider, [NotNull] ITextSnapshot snapshot, [NotNull] AntlrParseResultEventArgs antlrParseResultArgs, [NotNull] ICollection <IEditorNavigationTarget> navigationTargets)
            {
                Requires.NotNull(provider, nameof(provider));
                Requires.NotNull(snapshot, nameof(snapshot));
                Requires.NotNull(antlrParseResultArgs, nameof(antlrParseResultArgs));
                Requires.NotNull(navigationTargets, nameof(navigationTargets));

                _provider             = provider;
                _snapshot             = snapshot;
                _antlrParseResultArgs = antlrParseResultArgs;
                _navigationTargets    = navigationTargets;
            }
            public Listener(PhpEditorNavigationSourceProvider provider, ITextSnapshot snapshot, AntlrParseResultEventArgs antlrParseResultArgs, ICollection <IEditorNavigationTarget> navigationTargets)
            {
                Contract.Requires <ArgumentNullException>(provider != null, "provider");
                Contract.Requires <ArgumentNullException>(snapshot != null, "snapshot");
                Contract.Requires <ArgumentNullException>(antlrParseResultArgs != null, "antlrParseResultArgs");
                Contract.Requires <ArgumentNullException>(navigationTargets != null, "navigationTargets");

                _provider             = provider;
                _snapshot             = snapshot;
                _antlrParseResultArgs = antlrParseResultArgs;
                _navigationTargets    = navigationTargets;
            }
            public Listener(PhpEditorNavigationSourceProvider provider, ITextSnapshot snapshot, AntlrParseResultEventArgs antlrParseResultArgs, ICollection<IEditorNavigationTarget> navigationTargets)
            {
                Contract.Requires<ArgumentNullException>(provider != null, "provider");
                Contract.Requires<ArgumentNullException>(snapshot != null, "snapshot");
                Contract.Requires<ArgumentNullException>(antlrParseResultArgs != null, "antlrParseResultArgs");
                Contract.Requires<ArgumentNullException>(navigationTargets != null, "navigationTargets");

                _provider = provider;
                _snapshot = snapshot;
                _antlrParseResultArgs = antlrParseResultArgs;
                _navigationTargets = navigationTargets;
            }