@orkestrel/guide 0.0.18 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,7 +186,8 @@ export declare function collectGroups(document: MarkdownDocument): ReadonlyMap<T
186
186
  * and {@link locateComment} matches a caller's key against the whole map. A change to the head
187
187
  * shape or to the member shape reaches every one of them at once.
188
188
  *
189
- * An owner opens at a column-zero `export class` or `export interface` head and closes at the
189
+ * An owner opens at a column-zero `export class`, `export abstract class`, or `export interface`
190
+ * head and closes at the
190
191
  * first column-zero `}`, so a member declared past that brace keys nothing. A column-zero `export` declaration carrying any other keyword closes the owner it follows,
191
192
  * because a member belongs to the head enclosing it. Reading runs over {@link extractSourceLines}'s
192
193
  * projection, so a head or
@@ -186,7 +186,8 @@ export declare function collectGroups(document: MarkdownDocument): ReadonlyMap<T
186
186
  * and {@link locateComment} matches a caller's key against the whole map. A change to the head
187
187
  * shape or to the member shape reaches every one of them at once.
188
188
  *
189
- * An owner opens at a column-zero `export class` or `export interface` head and closes at the
189
+ * An owner opens at a column-zero `export class`, `export abstract class`, or `export interface`
190
+ * head and closes at the
190
191
  * first column-zero `}`, so a member declared past that brace keys nothing. A column-zero `export` declaration carrying any other keyword closes the owner it follows,
191
192
  * because a member belongs to the head enclosing it. Reading runs over {@link extractSourceLines}'s
192
193
  * projection, so a head or
@@ -730,7 +730,7 @@ function hasCanonicalSegments(key) {
730
730
  function normalizeDirectories(module) {
731
731
  const directories = [];
732
732
  const seen = /* @__PURE__ */ new Set();
733
- for (const value of typeof module === "string" ? [module] : module) {
733
+ for (const value of isString(module) ? [module] : module) {
734
734
  const directory = resolvePath(".", value);
735
735
  if (seen.has(directory)) continue;
736
736
  seen.add(directory);
@@ -2048,7 +2048,8 @@ function extractBodyLines(lines) {
2048
2048
  * and {@link locateComment} matches a caller's key against the whole map. A change to the head
2049
2049
  * shape or to the member shape reaches every one of them at once.
2050
2050
  *
2051
- * An owner opens at a column-zero `export class` or `export interface` head and closes at the
2051
+ * An owner opens at a column-zero `export class`, `export abstract class`, or `export interface`
2052
+ * head and closes at the
2052
2053
  * first column-zero `}`, so a member declared past that brace keys nothing. A column-zero `export` declaration carrying any other keyword closes the owner it follows,
2053
2054
  * because a member belongs to the head enclosing it. Reading runs over {@link extractSourceLines}'s
2054
2055
  * projection, so a head or
@@ -2067,7 +2068,7 @@ function collectKeys(lines) {
2067
2068
  const keys = /* @__PURE__ */ new Map();
2068
2069
  let owner;
2069
2070
  for (const line of lines) {
2070
- const head = /^export (?:async )?(function\*?|class|const|interface|type) (\w+)/.exec(line.code);
2071
+ const head = /^export (?:async )?(?:abstract )?(function\*?|class|const|interface|type) (\w+)/.exec(line.code);
2071
2072
  const keyword = head?.[1]?.replace(/\*$/, "");
2072
2073
  const name = head?.[2];
2073
2074
  if (isNonEmptyString(keyword) && isNonEmptyString(name) && isExportKeyword(keyword)) {