Skip to content

Commit c0f5979

Browse files
committed
Fix docs
1 parent 64748d2 commit c0f5979

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/UnderTheHood.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,20 @@ Because library users cannot access internal phase in emitting step,
8181
incremental compiler is written in a simple way like:
8282

8383
- For the first time, it creates compilation object and compiles whole sources with it:
84-
```csharp
85-
var syntaxTrees = sourcePaths.Select(file => /* PARSE */);
86-
var references = referencePaths.Select(file => /* LOAD */);
87-
var compilation = CSharpCompilation.Create(syntaxTrees, references);
88-
compilation.Emit(ms);
89-
```
84+
```csharp
85+
var syntaxTrees = sourcePaths.Select(file => /* PARSE */);
86+
var references = referencePaths.Select(file => /* LOAD */);
87+
var compilation = CSharpCompilation.Create(syntaxTrees, references);
88+
compilation.Emit(ms);
89+
```
9090
- For subsequent builds, it update changes to compilation object and compiles it.
91-
```csharp
92-
compliation = compliation.RemoveReferences(oldLoadedReferences)
93-
.AddReferences(load(newReference))
94-
.RemoveSyntaxTrees(oldSourceSyntaxTrees)
95-
.AddSyntaxTrees(parse(newSource))
96-
compilation.Emit(ms);
97-
```
91+
```csharp
92+
compliation = compliation.RemoveReferences(oldLoadedReferences)
93+
.AddReferences(load(newReference))
94+
.RemoveSyntaxTrees(oldSourceSyntaxTrees)
95+
.AddSyntaxTrees(parse(newSource))
96+
compilation.Emit(ms);
97+
```
9898

9999
By telling changes in a project to compilation object, rolsyn can use
100100
pre-parsed syntax trees and some informations that I wish.

0 commit comments

Comments
 (0)