Skip to content

Commit cbe7266

Browse files
NeonMikaSpace Team
authored and
Space Team
committed
Update fir-basics.md
Fix broken link to `ClassId`
1 parent 7b47a86 commit cbe7266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/fir/fir-basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ generated and written with all possible members explicitly declared, so they are
7878
The main way to get some declaration inside compiler is [FirSymbolProvider](https://github.com/JetBrains/kotlin/blob/master/compiler/fir/providers/src/org/jetbrains/kotlin/fir/resolve/providers/FirSymbolProvider.kt)
7979
and [FirScope](https://github.com/JetBrains/kotlin/blob/master/compiler/fir/tree/src/org/jetbrains/kotlin/fir/scopes/FirScope.kt).
8080

81-
_Symbol provider_ is used to lookup for classes by their [ClassId](https://github.com/JetBrains/kotlin/blob/mastercore/compiler.common/src/org/jetbrains/kotlin/name/ClassId.java) and top-level functions and properties by
81+
_Symbol provider_ is used to lookup for classes by their [ClassId](https://github.com/JetBrains/kotlin/blob/master/core/compiler.common/src/org/jetbrains/kotlin/name/ClassId.kt) and top-level functions and properties by
8282
their [CallableId](https://github.com/JetBrains/kotlin/blob/master/core/compiler.common/src/org/jetbrains/kotlin/name/CallableId.kt).
8383
The main symbol provider is a composition of multiple symbol providers, each of them looks up for declaration in specific scopes:
8484
- In sources of current modules,
@@ -104,4 +104,4 @@ val returnType = functionSymbol.fir.returnTypeRef as FirResolvedTypeRef
104104
```
105105

106106
Please don't forget to make sure that you are in the correct compiler phase which can guarantee that required declaration parts are resolved. For example, it's illegal to access resolved return type of some function in `STATUS` stage, because at this point of time implicit return types are not
107-
resolved. Implicit types are resolved at `IMPLICIT_TYPES_BODY_RESOLVE` phase.
107+
resolved. Implicit types are resolved at `IMPLICIT_TYPES_BODY_RESOLVE` phase.

0 commit comments

Comments
 (0)