Esempio n. 1
0
 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()));
     }
 }
Esempio n. 2
0
 public ShaderLabErrorPreprocessorDirectiveError(IPpErrorDirective directiveNode, string message)
 {
     myDirectiveNode = directiveNode;
     ToolTip         = string.Format(MESSAGE, message);
 }