private void AnalyzeWarningDirective(IPpWarningDirective warningDirective, ElementProblemAnalyzerData data, IHighlightingConsumer consumer) { if (warningDirective.Message == null) { consumer.AddHighlighting(new ShaderLabSyntaxError("#warning not terminated", warningDirective.Directive.GetHighlightingRange())); } else { consumer.AddHighlighting(new ShaderLabWarningPreprocessorDirectiveWarning(warningDirective, warningDirective.Message.GetText().Trim())); } }
public ShaderLabWarningPreprocessorDirectiveWarning(IPpWarningDirective directiveNode, string message) { myDirectiveNode = directiveNode; ToolTip = string.Format(MESSAGE, message); }