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 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348
|
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:N.N.NNNNN.N
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace TestOutput {
using System;
public class Instrumented {
#line hidden
#line 1 "Instrumented.cshtml"
public static Template Strong(string s) {
#line default
#line hidden
return new Template(__razor_helper_writer => {
#line 1 "Instrumented.cshtml"
#line default
#line hidden
BeginContext(__razor_helper_writer, "~/Instrumented.cshtml", 28, 12, true);
WriteLiteralTo(__razor_helper_writer, " <strong>");
EndContext(__razor_helper_writer, "~/Instrumented.cshtml", 28, 12, true);
BeginContext(__razor_helper_writer, "~/Instrumented.cshtml", 41, 1, false);
#line 2 "Instrumented.cshtml"
WriteTo(__razor_helper_writer, s);
#line default
#line hidden
EndContext(__razor_helper_writer, "~/Instrumented.cshtml", 41, 1, false);
BeginContext(__razor_helper_writer, "~/Instrumented.cshtml", 42, 11, true);
WriteLiteralTo(__razor_helper_writer, "</strong>\r\n");
EndContext(__razor_helper_writer, "~/Instrumented.cshtml", 42, 11, true);
#line 3 "Instrumented.cshtml"
#line default
#line hidden
});
#line 3 "Instrumented.cshtml"
}
#line default
#line hidden
public Instrumented() {
}
public override void Execute() {
BeginContext("~/Instrumented.cshtml", 56, 2, true);
WriteLiteral("\r\n");
EndContext("~/Instrumented.cshtml", 56, 2, true);
#line 5 "Instrumented.cshtml"
int i = 1;
var foo =
#line default
#line hidden
item => new Template(__razor_template_writer => {
BeginContext(__razor_template_writer, "~/Instrumented.cshtml", 93, 10, true);
WriteLiteralTo(__razor_template_writer, "<p>Bar</p>");
EndContext(__razor_template_writer, "~/Instrumented.cshtml", 93, 10, true);
})
#line 7 "Instrumented.cshtml"
;
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 106, 4, true);
WriteLiteral(" ");
EndContext("~/Instrumented.cshtml", 106, 4, true);
BeginContext("~/Instrumented.cshtml", 112, 14, true);
WriteLiteral("Hello, World\r\n");
EndContext("~/Instrumented.cshtml", 112, 14, true);
BeginContext("~/Instrumented.cshtml", 126, 25, true);
WriteLiteral(" <p>Hello, World</p>\r\n");
EndContext("~/Instrumented.cshtml", 126, 25, true);
#line 10 "Instrumented.cshtml"
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 152, 4, true);
WriteLiteral("\r\n\r\n");
EndContext("~/Instrumented.cshtml", 152, 4, true);
#line 12 "Instrumented.cshtml"
while(i <= 10) {
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 175, 23, true);
WriteLiteral(" <p>Hello from C#, #");
EndContext("~/Instrumented.cshtml", 175, 23, true);
BeginContext("~/Instrumented.cshtml", 200, 1, false);
#line 13 "Instrumented.cshtml"
Write(i);
#line default
#line hidden
EndContext("~/Instrumented.cshtml", 200, 1, false);
BeginContext("~/Instrumented.cshtml", 202, 6, true);
WriteLiteral("</p>\r\n");
EndContext("~/Instrumented.cshtml", 202, 6, true);
#line 14 "Instrumented.cshtml"
i += 1;
}
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 224, 2, true);
WriteLiteral("\r\n");
EndContext("~/Instrumented.cshtml", 224, 2, true);
#line 17 "Instrumented.cshtml"
if(i == 11) {
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 242, 31, true);
WriteLiteral(" <p>We wrote 10 lines!</p>\r\n");
EndContext("~/Instrumented.cshtml", 242, 31, true);
#line 19 "Instrumented.cshtml"
}
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 276, 2, true);
WriteLiteral("\r\n");
EndContext("~/Instrumented.cshtml", 276, 2, true);
#line 21 "Instrumented.cshtml"
switch(i) {
case 11:
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 306, 46, true);
WriteLiteral(" <p>No really, we wrote 10 lines!</p>\r\n");
EndContext("~/Instrumented.cshtml", 306, 46, true);
#line 24 "Instrumented.cshtml"
break;
default:
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 382, 39, true);
WriteLiteral(" <p>Actually, we didn\'t...</p>\r\n");
EndContext("~/Instrumented.cshtml", 382, 39, true);
#line 27 "Instrumented.cshtml"
break;
}
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 440, 2, true);
WriteLiteral("\r\n");
EndContext("~/Instrumented.cshtml", 440, 2, true);
#line 30 "Instrumented.cshtml"
for(int j = 1; j <= 10; j += 2) {
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 478, 29, true);
WriteLiteral(" <p>Hello again from C#, #");
EndContext("~/Instrumented.cshtml", 478, 29, true);
BeginContext("~/Instrumented.cshtml", 509, 1, false);
#line 31 "Instrumented.cshtml"
Write(j);
#line default
#line hidden
EndContext("~/Instrumented.cshtml", 509, 1, false);
BeginContext("~/Instrumented.cshtml", 511, 6, true);
WriteLiteral("</p>\r\n");
EndContext("~/Instrumented.cshtml", 511, 6, true);
#line 32 "Instrumented.cshtml"
}
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 520, 2, true);
WriteLiteral("\r\n");
EndContext("~/Instrumented.cshtml", 520, 2, true);
#line 34 "Instrumented.cshtml"
try {
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 530, 41, true);
WriteLiteral(" <p>That time, we wrote 5 lines!</p>\r\n");
EndContext("~/Instrumented.cshtml", 530, 41, true);
#line 36 "Instrumented.cshtml"
} catch(Exception ex) {
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 596, 33, true);
WriteLiteral(" <p>Oh no! An error occurred: ");
EndContext("~/Instrumented.cshtml", 596, 33, true);
BeginContext("~/Instrumented.cshtml", 631, 10, false);
#line 37 "Instrumented.cshtml"
Write(ex.Message);
#line default
#line hidden
EndContext("~/Instrumented.cshtml", 631, 10, false);
BeginContext("~/Instrumented.cshtml", 642, 6, true);
WriteLiteral("</p>\r\n");
EndContext("~/Instrumented.cshtml", 642, 6, true);
#line 38 "Instrumented.cshtml"
}
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 651, 2, true);
WriteLiteral("\r\n");
EndContext("~/Instrumented.cshtml", 651, 2, true);
#line 40 "Instrumented.cshtml"
lock(new object()) {
#line default
#line hidden
BeginContext("~/Instrumented.cshtml", 676, 53, true);
WriteLiteral(" <p>This block is locked, for your security!</p>\r\n");
EndContext("~/Instrumented.cshtml", 676, 53, true);
#line 42 "Instrumented.cshtml"
}
#line default
#line hidden
}
}
}
|