Skip to content

Commit

Permalink
docs: fix childnode typo
Browse files Browse the repository at this point in the history
Also: remove unused cancelToken
  • Loading branch information
bjthehun authored and msujew committed May 16, 2024
1 parent 823357a commit 9c9a158
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hugo/content/guides/scoping/qualified-name.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class CppScopeComputation extends DefaultScopeComputation {
const fullyQualifiedName = this.getQualifiedName(childNode, childNode.name);
// `descriptions` is our `AstNodeDescriptionProvider` defined in `DefaultScopeComputation`
// It allows us to easily create descriptions that point to elements using a name.
exportedDescriptions.push(this.descriptions.createDescription(modelNode, fullyQualifiedName, document));
exportedDescriptions.push(this.descriptions.createDescription(childNode, fullyQualifiedName, document));
}
}
return exportedDescriptions;
Expand Down Expand Up @@ -126,7 +126,7 @@ export class CppScopeComputation extends DefaultScopeComputation {
const description = this.descriptions.createDescription(element, element.name, document);
localDescriptions.push(description);
} else if (isNamespace(element)) {
const nestedDescriptions = this.processContainer(element, scopes, document, cancelToken);
const nestedDescriptions = this.processContainer(element, scopes, document);
for (const description of nestedDescriptions) {
// Add qualified names to the container
// This could also be a partial qualified name
Expand Down Expand Up @@ -171,7 +171,7 @@ export class CppScopeComputation extends DefaultScopeComputation {
const fullyQualifiedName = this.getQualifiedName(childNode, childNode.name);
// `descriptions` is our `AstNodeDescriptionProvider` defined in `DefaultScopeComputation`
// It allows us to easily create descriptions that point to elements using a name.
exportedDescriptions.push(this.descriptions.createDescription(modelNode, fullyQualifiedName, document));
exportedDescriptions.push(this.descriptions.createDescription(childNode, fullyQualifiedName, document));
}
}
return exportedDescriptions;
Expand All @@ -197,7 +197,7 @@ export class CppScopeComputation extends DefaultScopeComputation {
const description = this.descriptions.createDescription(element, element.name, document);
localDescriptions.push(description);
} else if (isNamespace(element)) {
const nestedDescriptions = this.processContainer(element, scopes, document, cancelToken);
const nestedDescriptions = this.processContainer(element, scopes, document);
for (const description of nestedDescriptions) {
// Add qualified names to the container
// This could also be a partially qualified name
Expand Down

0 comments on commit 9c9a158

Please sign in to comment.