Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix childnode typo #224

Merged
merged 1 commit into from
May 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions hugo/content/docs/recipes/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
Loading