Example #1
0
  @Override
  public void printScopeStructure(@NotNull Printer p) {
    p.println(getClass().getSimpleName(), ": ", debugName, " {");
    p.pushIndent();

    for (JetScope scope : scopeChain) {
      scope.printScopeStructure(p);
    }

    p.popIndent();
    p.println("}");
  }
Example #2
0
  @TestOnly
  @Override
  public void printScopeStructure(@NotNull Printer p) {
    p.println(getClass().getSimpleName(), " {");
    p.pushIndent();

    p.println("substitutor = ");
    p.pushIndent();
    p.println(substitutor);
    p.popIndent();

    p.print("workerScope = ");
    workerScope.printScopeStructure(p.withholdIndentOnce());

    p.popIndent();
    p.println("}");
  }