** * Pop an entry from the type resolution stack and return its associated result value. The result value will * be true if no circularities were detected, or false if a circularity was found. */
()
| 18678 | * be true if no circularities were detected, or false if a circularity was found. |
| 18679 | */ |
| 18680 | func (c *Checker) popTypeResolution() bool { |
| 18681 | lastIndex := len(c.typeResolutions) - 1 |
| 18682 | result := c.typeResolutions[lastIndex].result |
| 18683 | c.typeResolutions[lastIndex] = TypeResolution{} // Clear the last entry to avoid memory leaks |
| 18684 | c.typeResolutions = c.typeResolutions[:lastIndex] |
| 18685 | return result |
| 18686 | } |
| 18687 | |
| 18688 | func (c *Checker) findResolutionCycleStartIndex(target TypeSystemEntity, propertyName TypeSystemPropertyName) int { |
| 18689 | for i := len(c.typeResolutions) - 1; i >= c.resolutionStart; i-- { |
no test coverage detected