@@ -42,7 +42,7 @@ byte[] Write(PdbCustomDebugInfo cdi) {
42
42
case PdbCustomDebugInfoKind . IteratorMethod :
43
43
case PdbCustomDebugInfoKind . SourceServer :
44
44
default :
45
- helper . Error ( "Unreachable code, caller should filter these out. " ) ;
45
+ helper . Error ( "Unreachable code, caller should filter these out" ) ;
46
46
return null ;
47
47
48
48
case PdbCustomDebugInfoKind . StateMachineHoistedLocalScopes :
@@ -98,7 +98,7 @@ byte[] Write(PdbCustomDebugInfo cdi) {
98
98
99
99
void WriteUTF8Z ( string s ) {
100
100
if ( s . IndexOf ( '\0 ' ) >= 0 )
101
- helper . Error ( "String must not contain any NUL bytes. " ) ;
101
+ helper . Error ( "String must not contain any NUL bytes" ) ;
102
102
var bytes = Encoding . UTF8 . GetBytes ( s ) ;
103
103
writer . WriteBytes ( bytes ) ;
104
104
writer . WriteByte ( 0 ) ;
@@ -121,14 +121,14 @@ void WriteStateMachineHoistedLocalScopes(PdbStateMachineHoistedLocalScopesCustom
121
121
else {
122
122
var startInstr = scope . Start ;
123
123
if ( startInstr is null ) {
124
- helper . Error ( "Instruction is null. " ) ;
124
+ helper . Error ( "Instruction is null" ) ;
125
125
return ;
126
126
}
127
127
startOffset = methodContext . GetOffset ( startInstr ) ;
128
128
endOffset = methodContext . GetOffset ( scope . End ) ;
129
129
}
130
130
if ( startOffset > endOffset ) {
131
- helper . Error ( "End instruction is before start instruction. " ) ;
131
+ helper . Error ( "End instruction is before start instruction" ) ;
132
132
return ;
133
133
}
134
134
writer . WriteUInt32 ( startOffset ) ;
@@ -139,7 +139,7 @@ void WriteStateMachineHoistedLocalScopes(PdbStateMachineHoistedLocalScopesCustom
139
139
void WriteEditAndContinueLocalSlotMap ( PdbEditAndContinueLocalSlotMapCustomDebugInfo cdi ) {
140
140
var d = cdi . Data ;
141
141
if ( d is null ) {
142
- helper . Error ( "Data blob is null. " ) ;
142
+ helper . Error ( "Data blob is null" ) ;
143
143
return ;
144
144
}
145
145
writer . WriteBytes ( d ) ;
@@ -148,7 +148,7 @@ void WriteEditAndContinueLocalSlotMap(PdbEditAndContinueLocalSlotMapCustomDebugI
148
148
void WriteEditAndContinueLambdaMap ( PdbEditAndContinueLambdaMapCustomDebugInfo cdi ) {
149
149
var d = cdi . Data ;
150
150
if ( d is null ) {
151
- helper . Error ( "Data blob is null. " ) ;
151
+ helper . Error ( "Data blob is null" ) ;
152
152
return ;
153
153
}
154
154
writer . WriteBytes ( d ) ;
@@ -157,7 +157,7 @@ void WriteEditAndContinueLambdaMap(PdbEditAndContinueLambdaMapCustomDebugInfo cd
157
157
void WriteUnknown ( PdbUnknownCustomDebugInfo cdi ) {
158
158
var d = cdi . Data ;
159
159
if ( d is null ) {
160
- helper . Error ( "Data blob is null. " ) ;
160
+ helper . Error ( "Data blob is null" ) ;
161
161
return ;
162
162
}
163
163
writer . WriteBytes ( d ) ;
@@ -169,7 +169,7 @@ void WriteTupleElementNames(PortablePdbTupleElementNamesCustomDebugInfo cdi) {
169
169
for ( int i = 0 ; i < count ; i ++ ) {
170
170
var name = cdiNames [ i ] ;
171
171
if ( name is null ) {
172
- helper . Error ( "Tuple name is null. " ) ;
172
+ helper . Error ( "Tuple name is null" ) ;
173
173
return ;
174
174
}
175
175
WriteUTF8Z ( name ) ;
@@ -179,7 +179,7 @@ void WriteTupleElementNames(PortablePdbTupleElementNamesCustomDebugInfo cdi) {
179
179
void WriteDefaultNamespace ( PdbDefaultNamespaceCustomDebugInfo cdi ) {
180
180
var ns = cdi . Namespace ;
181
181
if ( ns is null ) {
182
- helper . Error ( "Default namespace is null. " ) ;
182
+ helper . Error ( "Default namespace is null" ) ;
183
183
return ;
184
184
}
185
185
var bytes = Encoding . UTF8 . GetBytes ( ns ) ;
@@ -205,7 +205,7 @@ static byte ToByte(bool[] flags, int index) {
205
205
void WriteEmbeddedSource ( PdbEmbeddedSourceCustomDebugInfo cdi ) {
206
206
var d = cdi . SourceCodeBlob ;
207
207
if ( d is null ) {
208
- helper . Error ( "Source code blob is null. " ) ;
208
+ helper . Error ( "Source code blob is null" ) ;
209
209
return ;
210
210
}
211
211
writer . WriteBytes ( d ) ;
@@ -214,7 +214,7 @@ void WriteEmbeddedSource(PdbEmbeddedSourceCustomDebugInfo cdi) {
214
214
void WriteSourceLink ( PdbSourceLinkCustomDebugInfo cdi ) {
215
215
var d = cdi . FileBlob ;
216
216
if ( d is null ) {
217
- helper . Error ( "Source link blob is null. " ) ;
217
+ helper . Error ( "Source link blob is null" ) ;
218
218
return ;
219
219
}
220
220
writer . WriteBytes ( d ) ;
@@ -238,15 +238,15 @@ void WriteAsyncMethodSteppingInformation(PdbAsyncMethodCustomDebugInfo cdi) {
238
238
for ( int i = 0 ; i < count ; i ++ ) {
239
239
var info = cdiStepInfos [ i ] ;
240
240
if ( info . YieldInstruction is null ) {
241
- helper . Error ( "YieldInstruction is null. " ) ;
241
+ helper . Error ( "YieldInstruction is null" ) ;
242
242
return ;
243
243
}
244
244
if ( info . BreakpointMethod is null ) {
245
- helper . Error ( "BreakpointMethod is null. " ) ;
245
+ helper . Error ( "BreakpointMethod is null" ) ;
246
246
return ;
247
247
}
248
248
if ( info . BreakpointInstruction is null ) {
249
- helper . Error ( "BreakpointInstruction is null. " ) ;
249
+ helper . Error ( "BreakpointInstruction is null" ) ;
250
250
return ;
251
251
}
252
252
uint yieldOffset = methodContext . GetOffset ( info . YieldInstruction ) ;
@@ -265,7 +265,7 @@ void WriteAsyncMethodSteppingInformation(PdbAsyncMethodCustomDebugInfo cdi) {
265
265
uint GetOffsetSlow ( MethodDef method , Instruction instr ) {
266
266
var body = method . Body ;
267
267
if ( body is null ) {
268
- helper . Error ( "Method has no body. " ) ;
268
+ helper . Error ( "Method has no body" ) ;
269
269
return uint . MaxValue ;
270
270
}
271
271
var instrs = body . Instructions ;
@@ -276,22 +276,22 @@ uint GetOffsetSlow(MethodDef method, Instruction instr) {
276
276
return offset ;
277
277
offset += ( uint ) instr2 . GetSize ( ) ;
278
278
}
279
- helper . Error ( "Couldn't find an instruction, maybe it was removed. It's still being referenced by some code or by the PDB. " ) ;
279
+ helper . Error ( "Couldn't find an instruction, maybe it was removed. It's still being referenced by some code or by the PDB" ) ;
280
280
return uint . MaxValue ;
281
281
}
282
282
283
283
void WriteCompilationMetadataReferences ( PdbCompilationMetadataReferencesCustomDebugInfo cdi ) {
284
284
foreach ( var mdRef in cdi . References ) {
285
285
var name = mdRef . Name ;
286
286
if ( name is null ) {
287
- helper . Error ( "Metadata reference name is null. " ) ;
287
+ helper . Error ( "Metadata reference name is null" ) ;
288
288
return ;
289
289
}
290
290
WriteUTF8Z ( name ) ;
291
291
292
292
var aliases = mdRef . Aliases ;
293
293
if ( aliases is null ) {
294
- helper . Error ( "Metadata reference aliases is null. " ) ;
294
+ helper . Error ( "Metadata reference aliases is null" ) ;
295
295
return ;
296
296
}
297
297
WriteUTF8Z ( aliases ) ;
@@ -306,11 +306,10 @@ void WriteCompilationMetadataReferences(PdbCompilationMetadataReferencesCustomDe
306
306
void WriteCompilationOptions ( PdbCompilationOptionsCustomDebugInfo cdi ) {
307
307
foreach ( var kv in cdi . Options ) {
308
308
if ( kv . Key is null ) {
309
- helper . Error ( "Compiler option `key` is null." ) ;
310
309
return ;
311
310
}
312
311
if ( kv . Value is null ) {
313
- helper . Error ( "Compiler option `value` is null. " ) ;
312
+ helper . Error ( "Compiler option `value` is null" ) ;
314
313
return ;
315
314
}
316
315
WriteUTF8Z ( kv . Key ) ;
0 commit comments