Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DecreaseIndent (0.18 sec)

  1. tensorflow/c/experimental/ops/gen/cpp/renderers/renderer.cc

      context_.code.AddLineWithIndent(absl::StrCat(text, " {"));
      context_.code.IncreaseIndent();
      return *this;
    }
    
    Renderer& Renderer::BlockClose(const string& text) {
      context_.code.DecreaseIndent();
      context_.code.AddLineWithIndent(absl::StrCat("}", text));
      return *this;
    }
    
    }  // namespace cpp
    }  // namespace generator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/ops/gen/common/source_code.cc

      ValidateAndAddLine(0, line);
    }
    
    void SourceCode::AddBlankLine() { ValidateAndAddLine(0, ""); }
    
    void SourceCode::IncreaseIndent() { current_indent_++; }
    
    void SourceCode::DecreaseIndent() { current_indent_--; }
    
    void SourceCode::ValidateAndAddLine(int indent, const string& raw_line) {
      StringPiece line(raw_line);
      bool had_trailing_newline = str_util::ConsumeSuffix(&line, "\n");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 09:51:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top