public Variable(Token token) { Name = token.Value.ToString(); Attribute = new Attribute("varName", Name); ModifiedByProcedures = ImplementationFactory.CreateProcedureList(); ModifiedByStatements = ImplementationFactory.CreateStatementList(); UsedByProcedures = ImplementationFactory.CreateProcedureList(); UsedByStatements = ImplementationFactory.CreateStatementList(); }
public Variable(string name) { Name = name; Attribute = new Attribute("varName", Name); ModifiedByProcedures = ImplementationFactory.CreateProcedureList(); ModifiedByStatements = ImplementationFactory.CreateStatementList(); UsedByProcedures = ImplementationFactory.CreateProcedureList(); UsedByStatements = ImplementationFactory.CreateStatementList(); }
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 IProcedureList GetUsesProcedures(Variable variable) { if (variable != null) { return(variable.UsedByProcedures); } else { return(ImplementationFactory.CreateProcedureList()); } }
public IProcedureList GetCalledBy(Procedure procedure) { if (procedure != null) { return(procedure.Calling.Copy()); } else { return(ImplementationFactory.CreateProcedureList()); } }
private IProcedureList Procedures() { Procedure procedure = Procedure(); IProcedureList procedures = ImplementationFactory.CreateProcedureList(); procedures.AddProcedure(procedure); while (currentToken.Type == TokenType.PROCEDURE) { procedures.AddProcedure(Procedure()); } return(procedures); }
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.CreateProcedureList()); }