public StaticField GenerateNewField(FuzzType type) { type = type ?? Types.PickType(); string name = "s_" + (++_counter); StaticField field = new StaticField(new VariableIdentifier(type, name), LiteralGenerator.GenLiteral(Random, type)); _fields.Add(field); return(field); }
private ExpressionSyntax GenLiteral(FuzzType type) { return(LiteralGenerator.GenLiteral(Random, type)); }