Skip to content

Commit f819891

Browse files
committed
Change all documentation references of 'compilation unit' to 'source
file'. This includes everything under the /docs folder and nothing else: sources and scaladoc still refer to 'compilation unit'
1 parent b9773d6 commit f819891

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/blog/_posts/2019-08-30-18th-dotty-milestone-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Not anymore! Meet the `@main` functions:
6262
@main def test: Unit = println(s"Hello World")
6363
```
6464

65-
The above generates the following code at the top-level of the compilation unit (source file):
65+
The above generates the following code at the top-level of the source file:
6666

6767
```scala
6868
final class test {

docs/docs/internals/backend.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Compiler creates a `BCodePhase`, calls `runOn(compilationUnits)`.
4343
* `buildAndSendToDisk(units)`: uses work queues, see below.
4444
- `BCodePhase.addToQ1` adds class trees to `q1`
4545
- `Worker1.visit` creates ASM `ClassNodes`, adds to `q2`. It creates one
46-
`PlainClassBuilder` for each compilation unit.
46+
`PlainClassBuilder` for each source file.
4747
- `Worker2.addToQ3` adds byte arrays (one for each class) to `q3`
4848
- `BCodePhase.drainQ3` writes byte arrays to disk
4949

@@ -56,7 +56,7 @@ into weakly coupled components (called "subsystems" below):
5656
#### (a) The queue subsystem ####
5757
Queues mediate between processors, queues don't know what each processor does.
5858

59-
The first queue contains AST trees for compilation units, the second queue
59+
The first queue contains AST trees for source files, the second queue
6060
contains ASM ClassNodes, and finally the third queue contains byte arrays,
6161
ready for serialization to disk.
6262

docs/docs/internals/core-data-structures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ a given phase.
3535
`scalac` has a concept for "attributes of a symbol at
3636

3737
Too much: If a symbol is used to refer to a definition in another
38-
compilation unit, we get problems for incremental recompilation. The
38+
source file, we get problems for incremental recompilation. The
3939
unit containing the symbol might be changed and recompiled, which
4040
might mean that the definition referred to by the symbol is deleted or
4141
changed. This leads to the problem of stale symbols that refer to

docs/docs/reference/other-new-features/open-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ to mock classes in tests, or to apply temporary patches that add features or fix
7272

7373
### Relationship with `sealed`
7474

75-
A class that is neither `abstract` nor `open` is similar to a `sealed` class: it can still be extended, but only in the same compilation unit. The difference is what happens if an extension of the class is attempted in another compilation unit. For a `sealed` class, this is an error, whereas for a simple non-open class, this is still permitted provided the `adhocExtensions` feature is enabled, and it gives a warning otherwise.
75+
A class that is neither `abstract` nor `open` is similar to a `sealed` class: it can still be extended, but only in the same source file. The difference is what happens if an extension of the class is attempted in another source file. For a `sealed` class, this is an error, whereas for a simple non-open class, this is still permitted provided the `adhocExtensions` feature is enabled, and it gives a warning otherwise.
7676

7777
### Migration
7878

docs/docs/usage/language-versions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The default Scala language version currently supported by the Dotty compiler is
2121
There are two ways to specify a language version.
2222

2323
- With a `-source` command line setting, e.g. `-source 3.0-migration`.
24-
- With a `scala.language` import at the top of a compilation unit, e.g:
24+
- With a `scala.language` import at the top of a source file, e.g:
2525

2626
```scala
2727
package p
@@ -30,5 +30,5 @@ import scala.language.`future-migration`
3030
class C { ... }
3131
```
3232

33-
Language imports supersede command-line settings in the compilation units where they are specified. Only one language import specifying a source version is allowed in a compilation unit, and it must come before any definitions in that unit.
33+
Language imports supersede command-line settings in the source files where they are specified. Only one language import specifying a source version is allowed in a source file, and it must come before any definitions in that file.
3434

0 commit comments

Comments
 (0)