Home
last modified time | relevance | path

Searched refs:indentLevel (Results 1 – 25 of 28) sorted by relevance

12

/external/kotlinpoet/kotlinpoet/src/test/java/com/squareup/kotlinpoet/
DLineWrapperTest.kt25 lineWrapper.append("abcde fghij", indentLevel = 2) in wrap()
38 lineWrapper.append("abcde fghi", indentLevel = 2) in noWrap()
46 lineWrapper.append("ab cd ef gh ij kl mn op qr", indentLevel = 1) in multipleWrite()
60 lineWrapper.append("abcde", indentLevel = 2) in fencepost()
61 lineWrapper.append("fghij k", indentLevel = 2) in fencepost()
62 lineWrapper.append("lmnop", indentLevel = 2) in fencepost()
75 lineWrapper.append("abcdefghijkl", indentLevel = 2) in overlyLongLinesWithoutLeadingSpace()
83 lineWrapper.append(" abcdefghijkl", indentLevel = 2) in overlyLongLinesWithLeadingSpace()
91 lineWrapper.append("abcde fghi\njklmn", indentLevel = 2) in noWrapEmbeddedNewlines()
92 lineWrapper.append("opqrstuvwxy", indentLevel = 2) in noWrapEmbeddedNewlines()
[all …]
/external/javapoet/src/main/java/com/squareup/javapoet/
DLineWrapper.java41 private int indentLevel = -1; field in LineWrapper
88 void wrappingSpace(int indentLevel) throws IOException { in wrappingSpace() argument
94 this.indentLevel = indentLevel; in wrappingSpace()
98 void zeroWidthSpace(int indentLevel) throws IOException { in zeroWidthSpace() argument
104 this.indentLevel = indentLevel; in zeroWidthSpace()
118 for (int i = 0; i < indentLevel; i++) { in flush()
121 column = indentLevel * indent.length(); in flush()
135 indentLevel = -1; in flush()
DCodeWriter.java49 private int indentLevel; field in CodeWriter
104 indentLevel += levels; in indent()
113 checkArgument(indentLevel - levels >= 0, "cannot unindent %s from %s", levels, indentLevel); in unindent()
114 indentLevel -= levels; in unindent()
295 out.wrappingSpace(indentLevel + 2); in emit()
299 out.zeroWidthSpace(indentLevel + 2); in emit()
326 out.wrappingSpace(indentLevel + 2); in emitWrappingSpace()
509 for (int j = 0; j < indentLevel; j++) { in emitIndentation()
/external/deqp/framework/opengl/
DgluVarType.hpp296 …nst StructType* structPtr_, int indentLevel_) : structPtr(structPtr_), indentLevel(indentLevel_) {} in DeclareStructTypePtr()
299 int indentLevel; member
304 … StructType& structType_, int indentLevel_) : structType(structType_), indentLevel(indentLevel_) {} in DeclareStructType()
307 int indentLevel; member
312 …td::string& name_, int indentLevel_) : varType(varType_), name(name_), indentLevel(indentLevel_) {} in DeclareVariable()
316 int indentLevel; member
326 inline decl::Indent indent (int indentLevel) { return decl::Indent(indentLevel);… in indent() argument
327 … (const StructType* structPtr, int indentLevel = 0) { return decl::DeclareStructTypePtr (stru… in declare() argument
328 … (const StructType& structType, int indentLevel = 0) { return decl::DeclareStructType (struct… in declare() argument
329 …varType, const std::string& name, int indentLevel = 0) { return decl::DeclareVariable (varType, n… in declare() argument
DgluVarType.cpp384 str << declare(structPtr, decl.indentLevel); // Generate inline declaration. in operator <<()
412 str << "\n" << indent(decl.indentLevel) << "{\n"; in operator <<()
416 str << indent(decl.indentLevel+1); in operator <<()
417 str << declare(memberIter->getType(), memberIter->getName(), decl.indentLevel+1) << ";\n"; in operator <<()
420 str << indent(decl.indentLevel) << "}"; in operator <<()
427 return str << declare(&decl.structType, decl.indentLevel); in operator <<()
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/util/
DAnnotatedBytes.java71 private int indentLevel; field in AnnotatedBytes
208 startPoint.pointAnnotations.add(new AnnotationItem(indentLevel, formattedMsg)); in annotate()
210 startPoint.rangeAnnotation = new AnnotationItem(indentLevel, formattedMsg); in annotate()
236 indentLevel++; in indent()
240 indentLevel--; in deindent()
241 if (indentLevel < 0) { in deindent()
242 indentLevel = 0; in deindent()
260 public final int indentLevel; field in AnnotatedBytes.AnnotationItem
263 public AnnotationItem(int indentLevel, String annotation) { in AnnotationItem() argument
264 this.indentLevel = indentLevel; in AnnotationItem()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/
DAnnotatedBytes.java72 private int indentLevel; field in AnnotatedBytes
209 startPoint.pointAnnotations.add(new AnnotationItem(indentLevel, formattedMsg)); in annotate()
211 startPoint.rangeAnnotation = new AnnotationItem(indentLevel, formattedMsg); in annotate()
237 indentLevel++; in indent()
241 indentLevel--; in deindent()
242 if (indentLevel < 0) { in deindent()
243 indentLevel = 0; in deindent()
261 public final int indentLevel; field in AnnotatedBytes.AnnotationItem
264 public AnnotationItem(int indentLevel, String annotation) { in AnnotationItem() argument
265 this.indentLevel = indentLevel; in AnnotationItem()
[all …]
/external/google-smali/third_party/dexlib2/src/main/java/com/android/tools/smali/util/
DIndentingWriter.java36 protected int indentLevel = 0; field in IndentingWriter
45 for (int i=0; i<indentLevel; i++) { in writeIndent()
163 this.indentLevel += indentAmount; in indent()
164 if (indentLevel < 0) { in indent()
165 indentLevel = 0; in indent()
170 this.indentLevel -= indentAmount; in deindent()
171 if (indentLevel < 0) { in deindent()
172 indentLevel = 0; in deindent()
/external/kotlinpoet/kotlinpoet/src/main/java/com/squareup/kotlinpoet/
DLineWrapper.kt40 private var indentLevel = -1 variable
49 fun append(s: String, indentLevel: Int = -1, linePrefix: String = "") { in append()
57 this.indentLevel = indentLevel in append()
98 indentLevel = -1 in newline()
121 columnCount = segment.length + indent.length * indentLevel in emitCurrentLine()
139 for (i in 0 until indentLevel) { in emitSegmentRange()
DCodeWriter.kt66 private var indentLevel = 0 variable
95 indentLevel += levels in <lambda>()
99 require(indentLevel - levels >= 0) { "cannot unindent $levels from $indentLevel" } in <lambda>()
100 indentLevel -= levels in <lambda>()
610 indentLevel = if (kdoc) indentLevel else indentLevel + 2, in <lambda>()
619 for (j in 0 until indentLevel) { in emitIndentation()
/external/perfetto/ui/src/frontend/
Dchrome_slice_panel.ts184 indentLevel: number; property
195 indentLevel = 0; property in TableBuilder
203 indentLevel: 0,
224 indentLevel: this.indentLevel,
230 this.indentLevel++;
236 this.indentLevel--;
253 const row = this.indentLevel;
255 indentLevel: row,
259 this.indentLevel++;
265 this.indentLevel--;
[all …]
/external/smali/dexlib2/src/main/java/org/jf/util/
DIndentingWriter.java37 protected int indentLevel = 0; field in IndentingWriter
46 for (int i=0; i<indentLevel; i++) { in writeIndent()
164 this.indentLevel += indentAmount; in indent()
165 if (indentLevel < 0) { in indent()
166 indentLevel = 0; in indent()
171 this.indentLevel -= indentAmount; in deindent()
172 if (indentLevel < 0) { in deindent()
173 indentLevel = 0; in deindent()
/external/dagger2/java/dagger/internal/codegen/base/
DFormatter.java57 StringBuilder builder, Iterable<? extends T> items, int indentLevel) { in formatIndentedList() argument
64 appendIndent(builder, indentLevel); in formatIndentedList()
70 appendIndent(builder, indentLevel); in formatIndentedList()
78 private void appendIndent(StringBuilder builder, int indentLevel) { in appendIndent() argument
79 for (int i = 0; i < indentLevel; i++) { in appendIndent()
/external/python/cpython2/Lib/
Dplistlib.py153 def __init__(self, file, indentLevel=0, indent="\t"): argument
156 self.indentLevel = indentLevel
162 self.indentLevel += 1
165 assert self.indentLevel > 0
167 self.indentLevel -= 1
179 self.file.write(self.indentLevel * self.indent + line + "\n")
232 def __init__(self, file, indentLevel=0, indent="\t", writeHeader=1): argument
235 DumbXMLWriter.__init__(self, file, indentLevel, indent)
264 self.indentLevel -= 1
266 self.indentLevel))
[all …]
/external/deqp/external/openglcts/modules/common/
DglcUniformBlockCase.cpp721 …enerateDeclaration(std::ostringstream& src, const VarType& type, const char* name, int indentLevel,
723 void generateDeclaration(std::ostringstream& src, const Uniform& uniform, int indentLevel);
724 void generateDeclaration(std::ostringstream& src, const StructType& structType, int indentLevel);
726 …d generateLocalDeclaration(std::ostringstream& src, const StructType& structType, int indentLevel);
727 void generateFullDeclaration(std::ostringstream& src, const StructType& structType, int indentLevel
729 void generateDeclaration(std::ostringstream& src, const StructType& structType, int indentLevel) in generateDeclaration() argument
732 generateFullDeclaration(src, structType, indentLevel); in generateDeclaration()
736 void generateFullDeclaration(std::ostringstream& src, const StructType& structType, int indentLevel) in generateFullDeclaration() argument
741 src << "\n" << Indent(indentLevel) << "{\n"; in generateFullDeclaration()
745 src << Indent(indentLevel + 1); in generateFullDeclaration()
[all …]
/external/deqp/modules/glshared/
DglsUniformBlockCase.cpp813 … (std::ostringstream& src, const VarType& type, const char* name, int indentLevel, deUint32 unuse…
814 void generateDeclaration (std::ostringstream& src, const Uniform& uniform, int indentLevel);
815 void generateDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel
817 … generateLocalDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel);
818 … generateFullDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel);
820 void generateDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel) in generateDeclaration() argument
823 generateFullDeclaration(src, structType, indentLevel); in generateDeclaration()
827 …id generateFullDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel) in generateFullDeclaration() argument
832 src << "\n" << Indent(indentLevel) << "{\n"; in generateFullDeclaration()
836 src << Indent(indentLevel+1); in generateFullDeclaration()
[all …]
/external/clang/test/SemaObjC/
Dcontinuation-class-err.m10 @property (readonly) int indentLevel; property
16 @property (readwrite, assign) int indentLevel; // OK. assign the default in any case. property
/external/deqp/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackFuzzLayoutCase.cpp979 …:ostringstream& src, const VarType& type, const std::string& name, int indentLevel, deUint32 unuse…
980 …on (std::ostringstream& src, const InterfaceBlockMember& member, int indentLevel, deUint32 buffe…
981 void generateDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel);
983 … generateLocalDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel);
984 … generateFullDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel);
986 void generateDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel) in generateDeclaration() argument
989 generateFullDeclaration(src, structType, indentLevel); in generateDeclaration()
993 …id generateFullDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel) in generateFullDeclaration() argument
998 src << "\n" << Indent(indentLevel) << "{\n"; in generateFullDeclaration()
1002 src << Indent(indentLevel + 1); in generateFullDeclaration()
[all …]
/external/skia/tools/gpu/gl/interface/
Dgen_interface.go347 func functionCheck(feature FeatureSet, indentLevel int) string {
350 indent := strings.Repeat(SPACER, indentLevel)
380 …return preCheck + strings.Repeat(SPACER, indentLevel) + "// all functions were marked optional or …
/external/deqp/external/vulkancts/modules/vulkan/ubo/
DvktUniformBlockCase.cpp954 …:ostringstream& src, const VarType& type, const std::string& name, int indentLevel, deUint32 unuse…
955 void generateDeclaration (std::ostringstream& src, const Uniform& uniform, int indentLevel, deUi…
956 void generateDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel
958 … generateLocalDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel);
959 … generateFullDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel);
961 void generateDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel) in generateDeclaration() argument
964 generateFullDeclaration(src, structType, indentLevel); in generateDeclaration()
968 …id generateFullDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel) in generateFullDeclaration() argument
973 src << "\n" << Indent(indentLevel) << "{\n"; in generateFullDeclaration()
977 src << Indent(indentLevel + 1); in generateFullDeclaration()
[all …]
/external/gfxstream-protocols/registry/vulkan/scripts/cereal/common/
Dcodegen.py217 self.indentLevel = 0
231 return "".join(" " * (self.indentLevel + extra))
234 self.indentLevel += 1
237 if self.indentLevel > 0:
238 self.indentLevel -= 1
243 self.indentLevel += 1
247 self.indentLevel -= 1
/external/cldr/tools/cldr-code/src/main/java/com/ibm/icu/dev/test/
DTestFmwk.java483 params.indentLevel++; in execute()
489 params.indentLevel--; in execute()
1189 public int indentLevel; field in TestFmwk.TestParams
1384 indentLevel = 0; in init()
1478 || (indentLevel == 1 && listlevel > 0); in doMethods()
1483 || (indentLevel == 1 && listlevel > 0); in doRecurse()
1488 && (listlevel == 2 || (indentLevel == 1 && listlevel > 0)); in doRecurseGroupsOnly()
1553 log.print(spaces.substring(0, indentLevel * 2)); in write()
1594 indent(indentLevel + 1); in msg()
1674 indent(indentLevel); in writeTestResult()
[all …]
/external/deqp/framework/qphelper/
DqpXmlWriter.c171 static const char* getIndentStr (int indentLevel) in getIndentStr() argument
175 return &s_indentStr[s_indentStrLen - deMin32(s_indentStrLen, indentLevel)]; in getIndentStr()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/
DUtils.java159 public static StringBuilder indent(StringBuilder builder, int indentLevel) { in indent() argument
160 for (int i = 0; i < indentLevel; i++) { in indent()
/external/dagger2/java/dagger/internal/codegen/bindinggraphvalidation/
DDuplicateBindingsValidator.java274 int indentLevel, in formatDeclarations() argument
277 builder, ImmutableList.copyOf(bindingDeclarations), indentLevel); in formatDeclarations()

12