(self)
| 18 | self.structureViolationToken = None |
| 19 | |
| 20 | def __repr__(self): |
| 21 | inits = "" |
| 22 | if self.isPositional: |
| 23 | inits += 'P' |
| 24 | if self.isDesignated: |
| 25 | inits += 'D' |
| 26 | if not (self.isPositional or self.isDesignated) and self.numInits == 0: |
| 27 | inits += '_' |
| 28 | if self.numInits > 1: |
| 29 | inits += str(self.numInits) |
| 30 | |
| 31 | attrs = ["childIndex", "elementType", "valueType"] |
| 32 | return "{}({}, {}, {})".format( |
| 33 | "ElementDef", |
| 34 | self.getLongName(), |
| 35 | inits, |
| 36 | ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) |
| 37 | ) |
| 38 | |
| 39 | @property |
| 40 | def isArray(self): |
nothing calls this directly
no test coverage detected