Skip to content

Commit

Permalink
Update hugo/content/docs/recipes/scoping/file-based.md
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Sujew <mark.sujew@typefox.io>
  • Loading branch information
Lotes and msujew authored Aug 6, 2024
1 parent acc632c commit aca7c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugo/content/docs/recipes/scoping/file-based.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ You noticed the two missing functions? Here is what they have to do.
The first function (`getExportedPersonsFromGlobalScope(context)`) will take a look at the global scope and return all exported persons respecting the files that were touched by the file imports. Note that we are outputting all persons that are marked with the `export` keyword. The actual name resolution is done internally later by the linker.

```typescript
protected getExportedPersonsFromGlobalScope(context: ReferenceInfo): Scope {
private getExportedPersonsFromGlobalScope(context: ReferenceInfo): Scope {
//get document for current reference
const document = AstUtils.getDocument(context.container);
//get model of document
Expand Down

0 comments on commit aca7c97

Please sign in to comment.