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

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

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

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

            return(GetColorizer(buffer, out colorizer));
        }
Exemple #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);
            }
        }
Exemple #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));
        }
Exemple #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);
 }
Exemple #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);
 }
Exemple #13
0
 int IVsLanguageInfo.GetColorizer(IVsTextLines pBuffer, out IVsColorizer ppColorizer)
 {
     ppColorizer = null;
     return(VSConstants.E_NOTIMPL);
 }
Exemple #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;
 }
Exemple #17
0
 public int GetColorizer(IVsTextLines buffer, out IVsColorizer result);
Exemple #18
0
 public virtual int GetColorizer(IVsTextLines buffer, out IVsColorizer colorizer)
 {
     colorizer = null;
     return -2147467259;
 }
Exemple #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;
 }
Exemple #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);
 }
Exemple #21
0
 public int GetColorizer(IVsTextLines buffer, out IVsColorizer result);