public Procedure(string name, IStatementList body) { Name = name; Body = body; Attribute = new Attribute("procName", Name); Modifying = ImplementationFactory.CreateVariableList(); Using = ImplementationFactory.CreateVariableList(); CalledBy = ImplementationFactory.CreateProcedureList(); Calling = ImplementationFactory.CreateProcedureList(); }
public Statement(int programLine) { ProgramLine = programLine; Attribute = new Attribute("progLine", ProgramLine.ToString()); Modifying = ImplementationFactory.CreateVariableList(); Using = ImplementationFactory.CreateVariableList(); NextedBy = ImplementationFactory.CreateStatementList(); Nexting = ImplementationFactory.CreateStatementList(); Children = ImplementationFactory.CreateStatementList(); }
public IVariableList GetUsedBy(Statement statement) { if (statement != null) { return(statement.Using.Copy()); } else { return(ImplementationFactory.CreateVariableList()); } }
public IVariableList GetUsedBy(Procedure procedure) { if (procedure != null) { return(procedure.Using.Copy()); } else { return(ImplementationFactory.CreateVariableList()); } }
public DesignExtractor() { Statements = ImplementationFactory.CreateStatementList(); Variables = ImplementationFactory.CreateVariableList(); Procedures = ImplementationFactory.CreateProcedureList(); Constants = ImplementationFactory.CreateConstantList(); FollowsTable = ImplementationFactory.CreateFollowsTable(); ModifiesTable = ImplementationFactory.CreateModifiesTable(); ParentTable = ImplementationFactory.CreateParentTable(); UsesTable = ImplementationFactory.CreateUsesTable(); CallsTable = ImplementationFactory.CreateCallsTable(); NextTable = ImplementationFactory.CreateNextTable(); AffectsTable = ImplementationFactory.CreateAffectsTable(); calls = new Dictionary <Procedure, List <Call> >(); }
public override IEntityList CreateNewList() { return(ImplementationFactory.CreateVariableList()); }