/// <summary> /// Cleans all text fields in this element /// </summary> /// <param name="obj"></param> /// <param name="visitSubNodes"></param> public override void visit(Generated.Frame obj, bool visitSubNodes) { if (obj.getCycleDuration() != null) { obj.setCycleDuration(obj.getCycleDuration().Trim()); } if (obj.getComment() != null) { obj.setComment(obj.getComment().Trim()); } base.visit(obj, visitSubNodes); }
public override void visit(Generated.Frame obj, bool visitSubNodes) { Tests.Frame frame = (Tests.Frame)obj; if (Rebuild) { frame.CycleDuration = null; } // Side effect : compiles or recompiles the expression DataDictionary.Interpreter.Expression expression = frame.CycleDuration; base.visit(obj, visitSubNodes); }
public override void visit(Generated.Frame obj, bool visitSubNodes) { Tests.Frame frame = (Tests.Frame)obj; if (frame != null) { checkExpression(frame, frame.getCycleDuration()); Types.Type type = frame.CycleDuration.GetExpressionType(); if (type != null) { if (!frame.EFSSystem.DoubleType.Match(type)) { frame.AddError("Cycle duration should be compatible with the Time type"); } } } base.visit(obj, visitSubNodes); }
public override void visit(Generated.Frame obj, bool subNodes) { // Optimization : no model element can be found here => no call to base }
/// <summary> /// Do not visit test frames /// </summary> /// <param name="obj"></param> /// <param name="visitSubNodes"></param> public override void visit(Generated.Frame obj, bool visitSubNodes) { }