MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / emitSet

Method emitSet

ui/plugins/ui/jasmine/jasmine.js:6755–6778  ·  view source on GitHub ↗
(set)

Source from the content-addressed store, hash-verified

6753 }
6754
6755 emitSet(set) {
6756 if (this.ppNestLevel_ > j$.MAX_PRETTY_PRINT_DEPTH) {
6757 this.append("Set")
6758 return
6759 }
6760 this.append("Set( ")
6761 const size = Math.min(set.size, j$.MAX_PRETTY_PRINT_ARRAY_LENGTH)
6762 let i = 0
6763 set.forEach(function(value, key) {
6764 if (i >= size) {
6765 return
6766 }
6767 if (i > 0) {
6768 this.append(", ")
6769 }
6770 this.format(value)
6771
6772 i++
6773 }, this)
6774 if (set.size > size) {
6775 this.append(", ...")
6776 }
6777 this.append(" )")
6778 }
6779
6780 emitMap(map) {
6781 if (this.ppNestLevel_ > j$.MAX_PRETTY_PRINT_DEPTH) {

Callers 1

formatMethod · 0.95

Calls 2

appendMethod · 0.95
formatMethod · 0.95

Tested by

no test coverage detected