/** * * OOAS Compiler (Deprecated) * * Copyright 2015, Institute for Software Technology, Graz University of * Technology. Portions are copyright 2015 by the AIT Austrian Institute * of Technology. All rights reserved. * * SEE THE "LICENSE" FILE FOR THE TERMS UNDER WHICH THIS FILE IS PROVIDED. * * Please notice that this version of the OOAS compiler is considered de- * precated. Only the Java version is maintained. * * Contributors: * Willibald Krenn (TU Graz/AIT) * Stefan Tiran (TU Graz/AIT) */ using System; using System.Collections.Generic; using System.Text; namespace TUG.Mogentes.parser.visitors { /// /// Visitor that inlines method calls (this works easily because we do not allow for recursion!) /// class OoaMethodCallVisitor : OoaCompleteAstTraversalVisitor { protected override void VisitAstElement(IAst element, IAst parent) { if (element.nodeType == AstNodeTypeEnum.statement) { if (((Statement)element).kind == StatementKind.MethodCall) { Call aCallStatement = (Call)element; // parent should be seq block. System.Diagnostics.Debug.Assert(parent is SeqBlock); return; } } base.VisitAstElement(element, parent); } public OoaMethodCallVisitor(ParserState aState) : base(aState) { } } }