private void AnalyzeErrorDirective(IPpErrorDirective errorDirective, ElementProblemAnalyzerData data, IHighlightingConsumer consumer) { if (errorDirective.Message == null) { consumer.AddHighlighting(new ShaderLabSyntaxError("#error not terminated", errorDirective.Directive.GetHighlightingRange())); } else { consumer.AddHighlighting(new ShaderLabErrorPreprocessorDirectiveError(errorDirective, errorDirective.Message.GetText().Trim())); } }
public ShaderLabErrorPreprocessorDirectiveError(IPpErrorDirective directiveNode, string message) { myDirectiveNode = directiveNode; ToolTip = string.Format(MESSAGE, message); }