MCPcopy Index your code
hub / github.com/nodejs/node / emitObjectLiteralExpression

Function emitObjectLiteralExpression

test/fixtures/snapshot/typescript.js:112154–112166  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

112152 emitExpressionList(node, elements, 8914 /* ListFormat.ArrayLiteralExpressionElements */ | preferNewLine, parenthesizer.parenthesizeExpressionForDisallowedComma);
112153 }
112154 function emitObjectLiteralExpression(node) {
112155 ts.forEach(node.properties, generateMemberNames);
112156 var indentedFlag = ts.getEmitFlags(node) & 65536 /* EmitFlags.Indented */;
112157 if (indentedFlag) {
112158 increaseIndent();
112159 }
112160 var preferNewLine = node.multiLine ? 65536 /* ListFormat.PreferNewLine */ : 0 /* ListFormat.None */;
112161 var allowTrailingComma = currentSourceFile && currentSourceFile.languageVersion >= 1 /* ScriptTarget.ES5 */ && !ts.isJsonSourceFile(currentSourceFile) ? 64 /* ListFormat.AllowTrailingComma */ : 0 /* ListFormat.None */;
112162 emitList(node, node.properties, 526226 /* ListFormat.ObjectLiteralExpressionProperties */ | allowTrailingComma | preferNewLine);
112163 if (indentedFlag) {
112164 decreaseIndent();
112165 }
112166 }
112167 function emitPropertyAccessExpression(node) {
112168 emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess);
112169 var token = node.questionDotToken || ts.setTextRangePosEnd(ts.factory.createToken(24 /* SyntaxKind.DotToken */), node.expression.end, node.name.pos);

Callers 1

Calls 4

increaseIndentFunction · 0.85
emitListFunction · 0.85
decreaseIndentFunction · 0.85
forEachMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…