Exemplo n.º 1
0
 internal static void VerifyUnchangedDocument(
     string source,
     ActiveStatementsDescription description)
 {
     CSharpEditAndContinueTestHelpers.CreateInstance().VerifyUnchangedDocument(
         ActiveStatementsDescription.ClearTags(source),
         description.OldStatements,
         description.NewSpans,
         description.NewRegions);
 }
Exemplo n.º 2
0
 internal static void VerifyRudeDiagnostics(
     this EditScript <SyntaxNode> editScript,
     ActiveStatementsDescription description,
     params RudeEditDiagnosticDescription[] expectedDiagnostics)
 {
     CSharpEditAndContinueTestHelpers.CreateInstance().VerifyRudeDiagnostics(
         editScript,
         description,
         expectedDiagnostics);
 }
Exemplo n.º 3
0
 internal static void VerifyLineEdits(
     this EditScript <SyntaxNode> editScript,
     IEnumerable <SourceLineUpdate> expectedLineEdits,
     IEnumerable <string> expectedNodeUpdates,
     params RudeEditDiagnosticDescription[] expectedDiagnostics)
 {
     CSharpEditAndContinueTestHelpers.CreateInstance().VerifyLineEdits(
         editScript,
         expectedLineEdits,
         expectedNodeUpdates,
         expectedDiagnostics);
 }
Exemplo n.º 4
0
 private static SyntaxTree ParseSource(string source)
 => CSharpEditAndContinueTestHelpers.CreateInstance().ParseText(ActiveStatementsDescription.ClearTags(source));