APISonar


jetbrains.mps.generator.impl.GeneratorUtil.log

> jetbrains > mps > generator > impl > GeneratorUtil > log
jetbrains APIs mps APIs generator APIs impl APIs GeneratorUtil APIs log APIs

Example 1
public void processNull(TemplateExecutionEnvironment environment, SNodeReference templateSwitch, TemplateContext context) {
    SNode message = RuleUtil.getSwitch_NullInputMessage(mySwitch);
    if (message != null) {
      DismissTopMappingRuleException.MessageType messageType = GeneratorUtilEx.getGeneratorMessage_kind(message);
      String text = GeneratorUtilEx.getGeneratorMessage_text(message);
      GeneratorUtil.log(environment.getLogger(), templateSwitch, messageType, text, GeneratorUtil.describeIfExists(context.getInput(), "input node"));
    }
  }