public virtual int GetColorizer(IVsTextLines buffer, out IVsColorizer colorizer) { Contract.Requires <ArgumentNullException>(buffer != null, "buffer"); colorizer = null; return(VSConstants.E_FAIL); }
public virtual int GetColorizer([NotNull] IVsTextLines buffer, out IVsColorizer colorizer) { Requires.NotNull(buffer, nameof(buffer)); colorizer = null; return(VSConstants.E_FAIL); }
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)); }
int IVsLanguageInfo.GetColorizer(IVsTextLines lines, out IVsColorizer colorizer) { colorizer = CreateColorizer(lines); if (colorizer != null) { return(VSErr.S_OK); } else { return(VSErr.E_NOTIMPL); } }
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)); }
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); }
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); }
int IVsLanguageInfo.GetColorizer(IVsTextLines pBuffer, out IVsColorizer ppColorizer) { ppColorizer = null; return(VSConstants.E_NOTIMPL); }
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; }
public int GetColorizer(IVsTextLines buffer, out IVsColorizer result);
public virtual int GetColorizer(IVsTextLines buffer, out IVsColorizer colorizer) { colorizer = null; return -2147467259; }
/// <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; }
/// <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); }