forked from daveaglick/Scripty
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOutputFile.cs
More file actions
213 lines (130 loc) · 8.2 KB
/
Copy pathOutputFile.cs
File metadata and controls
213 lines (130 loc) · 8.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
using System;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Options;
namespace Scripty.Core.Output
{
public abstract class OutputFile : OutputFileTextWriter, IOutputFileInfo
{
internal OutputFile()
{
}
public abstract string FilePath { get; }
public abstract BuildAction BuildAction { get; set; }
public abstract bool FormatterEnabled { get; set; }
public abstract FormatterOptions FormatterOptions { get; }
/// <summary>
/// Adds another level of indentation to the output content.
/// </summary>
/// <returns>The previous indent level.</returns>
public abstract int Indent();
/// <summary>
/// Sets the specified indent level.
/// </summary>
/// <returns>The previous indent level.</returns>
public abstract int Indent(int indentLevel);
/// <summary>
/// Gets or sets the indent level.
/// </summary>
/// <value>
/// The indent level.
/// </value>
public abstract int IndentLevel { get; set; }
/// <summary>
/// Gets or sets the indent string. The default value is four spaces.
/// </summary>
/// <value>
/// The indent string.
/// </value>
public abstract string IndentString { get; set; }
/// <summary>
/// Applies an indent to the output file that will be removed when the returned
/// object is disposed.
/// </summary>
/// <returns>A disposable object that will reset the indent to the previous value once disposed.</returns>
public abstract IDisposable WithIndent();
/// <summary>
/// Applies an indent with a specified indent level to the output file that will be
/// removed when the returned object is disposed.
/// </summary>
/// <returns>A disposable object that will reset the indent to the previous value once disposed.</returns>
public abstract IDisposable WithIndent(int indentLevel);
/// <summary>
/// Writes the indent string a number of times equal to the indent level .
/// </summary>
public abstract OutputFile WriteIndent();
/// <summary>
/// Writes the indent string a number of times equal to the indent level .
/// </summary>
public abstract Task WriteIndentAsync();
public new abstract OutputFile Write(char value);
public new abstract OutputFile Write(char[] buffer);
public new abstract OutputFile Write(char[] buffer, int index, int count);
public new abstract OutputFile Write(bool value);
public new abstract OutputFile Write(int value);
public new abstract OutputFile Write(uint value);
public new abstract OutputFile Write(long value);
public new abstract OutputFile Write(ulong value);
public new abstract OutputFile Write(float value);
public new abstract OutputFile Write(double value);
public new abstract OutputFile Write(decimal value);
public new abstract OutputFile Write(string value);
public new abstract OutputFile Write(object value);
public new abstract OutputFile Write(string format, object arg0);
public new abstract OutputFile Write(string format, object arg0, object arg1);
public new abstract OutputFile Write(string format, object arg0, object arg1, object arg2);
public new abstract OutputFile Write(string format, params object[] arg);
public new abstract OutputFile WriteLine();
public new abstract OutputFile WriteLine(char value);
public new abstract OutputFile WriteLine(char[] buffer);
public new abstract OutputFile WriteLine(char[] buffer, int index, int count);
public new abstract OutputFile WriteLine(bool value);
public new abstract OutputFile WriteLine(int value);
public new abstract OutputFile WriteLine(uint value);
public new abstract OutputFile WriteLine(long value);
public new abstract OutputFile WriteLine(ulong value);
public new abstract OutputFile WriteLine(float value);
public new abstract OutputFile WriteLine(double value);
public new abstract OutputFile WriteLine(decimal value);
public new abstract OutputFile WriteLine(string value);
public new abstract OutputFile WriteLine(object value);
public new abstract OutputFile WriteLine(string format, object arg0);
public new abstract OutputFile WriteLine(string format, object arg0, object arg1);
public new abstract OutputFile WriteLine(string format, object arg0, object arg1, object arg2);
public new abstract OutputFile WriteLine(string format, params object[] arg);
protected sealed override void TextWriterWrite(char value) => Write(value);
protected sealed override void TextWriterWrite(char[] buffer) => Write(buffer);
protected sealed override void TextWriterWrite(char[] buffer, int index, int count) => Write(buffer, index, count);
protected sealed override void TextWriterWrite(bool value) => Write(value);
protected sealed override void TextWriterWrite(int value) => Write(value);
protected sealed override void TextWriterWrite(uint value) => Write(value);
protected sealed override void TextWriterWrite(long value) => Write(value);
protected sealed override void TextWriterWrite(ulong value) => Write(value);
protected sealed override void TextWriterWrite(float value) => Write(value);
protected sealed override void TextWriterWrite(double value) => Write(value);
protected sealed override void TextWriterWrite(decimal value) => Write(value);
protected sealed override void TextWriterWrite(string value) => Write(value);
protected sealed override void TextWriterWrite(object value) => Write(value);
protected sealed override void TextWriterWrite(string format, object arg0) => Write(format, arg0);
protected sealed override void TextWriterWrite(string format, object arg0, object arg1) => Write(format, arg0, arg1);
protected sealed override void TextWriterWrite(string format, object arg0, object arg1, object arg2) => Write(format, arg0, arg1, arg2);
protected sealed override void TextWriterWrite(string format, params object[] arg) => Write(format, arg);
protected sealed override void TextWriterWriteLine() => WriteLine();
protected sealed override void TextWriterWriteLine(char value) => WriteLine(value);
protected sealed override void TextWriterWriteLine(char[] buffer) => WriteLine(buffer);
protected sealed override void TextWriterWriteLine(char[] buffer, int index, int count) => WriteLine(buffer, index, count);
protected sealed override void TextWriterWriteLine(bool value) => WriteLine(value);
protected sealed override void TextWriterWriteLine(int value) => WriteLine(value);
protected sealed override void TextWriterWriteLine(uint value) => WriteLine(value);
protected sealed override void TextWriterWriteLine(long value) => WriteLine(value);
protected sealed override void TextWriterWriteLine(ulong value) => WriteLine(value);
protected sealed override void TextWriterWriteLine(float value) => WriteLine(value);
protected sealed override void TextWriterWriteLine(double value) => WriteLine(value);
protected sealed override void TextWriterWriteLine(decimal value) => WriteLine(value);
protected sealed override void TextWriterWriteLine(string value) => WriteLine(value);
protected sealed override void TextWriterWriteLine(object value) => WriteLine(value);
protected sealed override void TextWriterWriteLine(string format, object arg0) => WriteLine(format, arg0);
protected sealed override void TextWriterWriteLine(string format, object arg0, object arg1) => WriteLine(format, arg0, arg1);
protected sealed override void TextWriterWriteLine(string format, object arg0, object arg1, object arg2) => WriteLine(format, arg0, arg1, arg2);
protected sealed override void TextWriterWriteLine(string format, params object[] arg) => WriteLine(format, arg);
}
}