Exemplo n.º 1
0
 /// <summary>
 /// A list with all the generators
 /// </summary>
 /// <param name="context">The context</param>
 public AllGenerators(WalkerContext context)
 {
     AddAssignment              = new AssignmentGenerator(context, AssignmentType.Add);
     AddressOfExpression        = new AddressOfExpressionGenerator(context);
     ArgumentList               = new ArgumentListGenerator(context);
     ArrayCreationExpression    = new ArrayCreationExpressionGenerator(context);
     ArrayInitializerExpression = new ArrayInitializerGenerator(context);
     BinaryAndAssignment        = new AssignmentGenerator(context, AssignmentType.BinaryAnd);
     BinaryOrAssignment         = new AssignmentGenerator(context, AssignmentType.BinaryOr);
     Block          = new BlockGenerator(context);
     CastExpression = new CastExpressionGenerator(context);
     ConditionalAccessExpression = new ConditionalAccessExpressionGenerator(context);
     ClassCode           = new ClassCodeGenerator(context);
     DelegateDeclaration = new DelegateDeclarationGenerator(context);
     DoStatement         = new DoStatementGenerator(context);
     DivideAssignment    = new AssignmentGenerator(context, AssignmentType.Divide);
     ElementAccess       = new ElementAccessGenerator(context);
     Enum = new EnumGenerator(context);
     ExclusiveOrAssignment         = new AssignmentGenerator(context, AssignmentType.ExclusiveOr);
     Expression                    = new ExpressionGenerator(context);
     ExpressionStatement           = new ExpressionStatementGenerator(context);
     FixedStatement                = new FixedStatementGenerator(context);
     ForStatement                  = new ForStatementGenerator(context);
     GotoStatement                 = new GotoStatementGenerator(context);
     IfStatement                   = new IfStatementGenerator(context);
     Invocation                    = new InvocationGenerator(context);
     Interface                     = new InterfaceGenerator(context);
     IdentifierName                = new IdentifierNameGenerator(context);
     LabeledStatement              = new LabeledStatementGenerator(context);
     LeftShiftAssignment           = new AssignmentGenerator(context, AssignmentType.LeftShift);
     LocalDeclaration              = new LocalDeclarationGenerator(context);
     MethodDeclaration             = new MethodGenerator(context);
     ModuloAssignment              = new AssignmentGenerator(context, AssignmentType.Modulo);
     MultiplyAssignment            = new AssignmentGenerator(context, AssignmentType.Multiply);
     ObjectCreationExpression      = new ObjectCreationExpressionGenerator(context);
     PreIncrementExpression        = new PrePostExpressionGenerator(context, ExpressionType.PreIncrement);
     PreDecrementExpression        = new PrePostExpressionGenerator(context, ExpressionType.PreDecrement);
     PostIncrementExpression       = new PrePostExpressionGenerator(context, ExpressionType.PostIncrement);
     PostDecrementExpression       = new PrePostExpressionGenerator(context, ExpressionType.PostDecrement);
     PointerMemberAccessExpression = new PointerMemberAccessGenerator(context);
     Property             = new PropertyGenerator(context);
     ReturnStatement      = new ReturnStatementGenerator(context);
     RightShiftAssignment = new AssignmentGenerator(context, AssignmentType.RightShift);
     SimpleAssignment     = new SimpleAssignmentGenerator(context);
     SimpleMemberAccess   = new SimpleMemberAccessGenerator(context);
     SizeOfExpression     = new SizeofExpressionGenerator(context);
     Struct = new StructGenerator(context);
     SubstractAssignment = new AssignmentGenerator(context, AssignmentType.Substract);
     SwitchStatement     = new SwitchStatementGenerator(context);
     checkedStatement    = new checkedStatementGenerator(context);
     Variable            = new VariableGenerator(context);
     WhileStatement      = new WhileStatementGenerator(context);
 }
Exemplo n.º 2
0
 public void TestInitialize()
 {
     _generator = new IfStatementGenerator();
     _generator.InjectDependency(_statementGenerator = new StatementGeneratorStub());
 }