@typespec/compiler 0.57.0-dev.23 → 0.57.0-dev.25

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.
package/dist/manifest.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export default {
2
- "version": "0.57.0-dev.23",
3
- "commit": "7912e8c9c7fff5c727608830d4ccb98ca86a2369"
2
+ "version": "0.57.0-dev.25",
3
+ "commit": "ac93dfa318bb02217b99d0aa3b0898c725d88c0a"
4
4
  };
@@ -1667,7 +1667,7 @@ export function createChecker(program) {
1667
1667
  const members = getOrCreateAugmentedSymbolTable(parameterModelSym.members);
1668
1668
  const paramDocs = extractParamDocs(node);
1669
1669
  for (const [name, memberSym] of members) {
1670
- const doc = paramDocs[name];
1670
+ const doc = paramDocs.get(name);
1671
1671
  if (doc) {
1672
1672
  docFromCommentForSym.set(memberSym, doc);
1673
1673
  }
@@ -2767,7 +2767,7 @@ export function createChecker(program) {
2767
2767
  const members = getOrCreateAugmentedSymbolTable(node.symbol.members);
2768
2768
  const propDocs = extractPropDocs(node);
2769
2769
  for (const [name, memberSym] of members) {
2770
- const doc = propDocs[name];
2770
+ const doc = propDocs.get(name);
2771
2771
  if (doc) {
2772
2772
  docFromCommentForSym.set(memberSym, doc);
2773
2773
  }
@@ -6378,13 +6378,13 @@ function extractReturnsDocs(type) {
6378
6378
  }
6379
6379
  function extractParamDocs(node) {
6380
6380
  if (node.docs === undefined) {
6381
- return {};
6381
+ return new Map();
6382
6382
  }
6383
- const paramDocs = {};
6383
+ const paramDocs = new Map();
6384
6384
  for (const doc of node.docs) {
6385
6385
  for (const tag of doc.tags) {
6386
6386
  if (tag.kind === SyntaxKind.DocParamTag) {
6387
- paramDocs[tag.paramName.sv] = getDocContent(tag.content);
6387
+ paramDocs.set(tag.paramName.sv, getDocContent(tag.content));
6388
6388
  }
6389
6389
  }
6390
6390
  }
@@ -6392,13 +6392,13 @@ function extractParamDocs(node) {
6392
6392
  }
6393
6393
  function extractPropDocs(node) {
6394
6394
  if (node.docs === undefined) {
6395
- return {};
6395
+ return new Map();
6396
6396
  }
6397
- const propDocs = {};
6397
+ const propDocs = new Map();
6398
6398
  for (const doc of node.docs) {
6399
6399
  for (const tag of doc.tags) {
6400
6400
  if (tag.kind === SyntaxKind.DocPropTag) {
6401
- propDocs[tag.propName.sv] = getDocContent(tag.content);
6401
+ propDocs.set(tag.propName.sv, getDocContent(tag.content));
6402
6402
  }
6403
6403
  }
6404
6404
  }