Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DecreaseIndent (0.25 sec)

  1. tensorflow/c/experimental/ops/gen/common/source_code.h

        spaces_per_indent_ = spaces_per_indent;
      }
    
      void AddLineWithIndent(const string &line);
      void AddLineWithoutIndent(const string &line);
      void AddBlankLine();
      void IncreaseIndent();
      void DecreaseIndent();
    
     private:
      struct Line {
        int indent;
        string text;
      };
    
      void ValidateAndAddLine(int indent_level, const string &raw_line);
    
      int spaces_per_indent_ = 2;
      int current_indent_ = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  2. 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)
  3. 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