protected override void Visit_REPEAT(REPEAT node) { GNode save = last; Visit(node.statements); last = new GNode(node, last, this); last.successors.AddLast(save); }
protected override void Visit_REPEAT(REPEAT node) { /* MOVE CODE HERE */ }
protected virtual void Visit_REPEAT(REPEAT node) { }
private void ExtractValues(string elementName, XmlReader reader) { this.repeatGap = REPEAT_GAP_DEFAULT * displayModel.ScaleFactor; this.repeatStart = REPEAT_START_DEFAULT * displayModel.ScaleFactor; for (int i = 0; i < reader.AttributeCount; ++i) { reader.MoveToAttribute(i); string name = reader.Name; string value = reader.Value; if (SRC.Equals(name)) { this.src = value; } else if (DISPLAY.Equals(name)) { this.display = Display.FromString(value); } else if (DY.Equals(name)) { this.dy = float.Parse(value) * displayModel.ScaleFactor; } else if (ALIGN_CENTER.Equals(name)) { this.alignCenter = bool.Parse(value); } else if (CAT.Equals(name)) { this.category = value; } else if (PRIORITY.Equals(name)) { this.priority = int.Parse(value); } else if (REPEAT.Equals(name)) { this.repeat = bool.Parse(value); } else if (REPEAT_GAP.Equals(name)) { this.repeatGap = float.Parse(value) * displayModel.ScaleFactor; } else if (REPEAT_START.Equals(name)) { this.repeatStart = float.Parse(value) * displayModel.ScaleFactor; } else if (ROTATE.Equals(name)) { this.rotate = bool.Parse(value); } else if (SYMBOL_HEIGHT.Equals(name)) { this.height = XmlUtils.ParseNonNegativeInteger(name, value) * displayModel.ScaleFactor; } else if (SYMBOL_PERCENT.Equals(name)) { this.percent = XmlUtils.ParseNonNegativeInteger(name, value); } else if (SYMBOL_SCALING.Equals(name)) { this.scaling = FromValue(value); } else if (SYMBOL_WIDTH.Equals(name)) { this.width = XmlUtils.ParseNonNegativeInteger(name, value) * displayModel.ScaleFactor; } else { throw XmlUtils.CreateXmlReaderException(elementName, name, value, i); } } }