CodeBuilder.rawPut

Places str into the buffer.

put("text", Indent.open); will indent "text" at the current level and future code will be indented one level.

put("other", Indent.close); will indent "other" at one less the current indentation.

put("}{", Indent.close | Indent.open) will indent "}{" at one less the current indentation and continue indentation for future code.

rawPut provides the same operations but does not include the current indentation level.

To place indentation but no other code use put("");

To reduce indentation without inserting code use put(Indent.close);

  1. void put(string str, Indent indent = Indent.none, string f = __FILE__, int l = __LINE__)
  2. void rawPut(string str, Indent indent = Indent.none, string f = __FILE__, int l = __LINE__)
    struct CodeBuilder
    void
    rawPut
    (
    string str
    ,,
    string f = __FILE__
    ,
    int l = __LINE__
    )
  3. void put(Indent indent)

Meta