Beispiel #1
0
        public virtual int GetColorizer(IVsTextLines buffer, out IVsColorizer colorizer)
        {
            Contract.Requires <ArgumentNullException>(buffer != null, "buffer");

            colorizer = null;
            return(VSConstants.E_FAIL);
        }
Beispiel #2
0
        public virtual int GetColorizer([NotNull] IVsTextLines buffer, out IVsColorizer colorizer)
        {
            Requires.NotNull(buffer, nameof(buffer));

            colorizer = null;
            return(VSConstants.E_FAIL);
        }
Beispiel #3
0
        public virtual int GetColorizer(IVsTextLines buffer, out IVsColorizer colorizer)
        {
            Contract.Requires<ArgumentNullException>(buffer != null, "buffer");

            colorizer = null;
            return VSConstants.E_FAIL;
        }
Beispiel #4
0
        int IVsLanguageInfo.GetColorizer(IVsTextLines buffer, out IVsColorizer colorizer)
        {
            if (buffer == null)
            {
                throw new ArgumentNullException("buffer");
            }

            return(GetColorizer(buffer, out colorizer));
        }
Beispiel #5
0
        int IVsLanguageInfo.GetColorizer(IVsTextLines lines, out IVsColorizer colorizer)
        {
            colorizer = CreateColorizer(lines);

            if (colorizer != null)
            {
                return(VSErr.S_OK);
            }
            else
            {
                return(VSErr.E_NOTIMPL);
            }
        }
Beispiel #6
0
        public int GetColorizer(out IVsColorizer ppColorizer)
        {
            ppColorizer = null;
            if (null == LanguageService)
            {
                // We should always be able to get the language service.
                return(VSConstants.E_UNEXPECTED);
            }
            IVsTextLines buffer;

            ErrorHandler.ThrowOnFailure(bufferCoordinator.GetSecondaryBuffer(out buffer));
            return(LanguageService.GetColorizer(buffer, out ppColorizer));
        }
Beispiel #7
0
        int IVsLanguageInfo.GetColorizer(IVsTextLines lines, out IVsColorizer colorizer)
        {
            colorizer = CreateColorizer(lines);

            if (colorizer != null)
                return VSConstants.S_OK;
            else
                return VSConstants.E_NOTIMPL;
        }
 public int GetColorizer(out IVsColorizer colorizer)
 {
     // We have no legacy colorizer, and so we'll return E_NOTIMPL to opt out of using one
     colorizer = null;
     return(VSConstants.E_NOTIMPL);
 }
 public int GetColorizer(IVsTextLines pBuffer, out IVsColorizer ppColorizer)
 {
     ppColorizer = null;
     return FAILED;
 }
 public int GetColorizer(out IVsColorizer ppColorizer)
 {
     ppColorizer = null;
     if (null == LanguageService) {
         // We should always be able to get the language service.
         return VSConstants.E_UNEXPECTED;
     }
     IVsTextLines buffer;
     ErrorHandler.ThrowOnFailure(bufferCoordinator.GetSecondaryBuffer(out buffer));
     return LanguageService.GetColorizer(buffer, out ppColorizer);
 }
Beispiel #11
0
 int IVsLanguageInfo.GetColorizer(IVsTextLines buffer, out IVsColorizer colorizer)
 {
     if (buffer == null)
     {
         throw new ArgumentNullException("buffer");
     }
     return this.GetColorizer(buffer, out colorizer);
 }
 public int GetColorizer(IVsTextLines pBuffer, out IVsColorizer ppColorizer)
 {
     ppColorizer = null;
     return(failed);
 }
Beispiel #13
0
 int IVsLanguageInfo.GetColorizer(IVsTextLines pBuffer, out IVsColorizer ppColorizer)
 {
     ppColorizer = null;
     return(VSConstants.E_NOTIMPL);
 }
Beispiel #14
0
 public int GetColorizer(IVsTextLines buffer, out IVsColorizer result){
   Source s = GetSource(buffer);
   result = s.GetColorizer();
   return 0;
 }
 public int GetColorizer(IVsTextLines pBuffer, out IVsColorizer ppColorizer)
 {
     ppColorizer = default;
     return(VSConstants.E_NOTIMPL);
 }
 public int GetColorizer(IVsTextLines pBuffer, out IVsColorizer ppColorizer)
 {
     ppColorizer = null;
     return VSConstants.E_FAIL;
 }
Beispiel #17
0
 public int GetColorizer(IVsTextLines buffer, out IVsColorizer result);
Beispiel #18
0
 public virtual int GetColorizer(IVsTextLines buffer, out IVsColorizer colorizer)
 {
     colorizer = null;
     return -2147467259;
 }
Beispiel #19
0
 /// <include file='doc\LanguageService.uex' path='docs/doc[@for="LanguageService.GetColorizer1"]/*' />
 public int GetColorizer(IVsTextLines buffer, out IVsColorizer result) {
     // Do NOT create source object yet - this might be an invisible editor in which
     // case Source object will create shutdown problems (VSWhidbey bug 447564).
     result = this.GetColorizer(buffer);
     return NativeMethods.S_OK;
 }
Beispiel #20
0
 /// <summary>
 /// GetColorizer is not implemented because we implement colorization using the new managed APIs.
 /// </summary>
 public int GetColorizer(IVsTextLines pBuffer, out IVsColorizer ppColorizer)
 {
     ppColorizer = null;
     return(VSConstants.E_FAIL);
 }
Beispiel #21
0
 public int GetColorizer(IVsTextLines buffer, out IVsColorizer result);