(includeParams: boolean)
| 1897 | const resultIsVoid = resultTypeName === null; |
| 1898 | |
| 1899 | const buildDocs = (includeParams: boolean): string[] => { |
| 1900 | const docs = rustRpcMethodDocs( |
| 1901 | method, |
| 1902 | resultSchema, |
| 1903 | rustRpcParamsDescription(method, resolvedParams), |
| 1904 | includeParams, |
| 1905 | ); |
| 1906 | if (method.deprecated) docs.push(...rustDeprecatedAttributes(" ")); |
| 1907 | const stability = method.stability; |
| 1908 | if (stability === "experimental") { |
| 1909 | docs.push(` ///`); |
| 1910 | docs.push( |
| 1911 | ` /// <div class="warning">`, |
| 1912 | ); |
| 1913 | docs.push( |
| 1914 | ` ///`, |
| 1915 | ); |
| 1916 | docs.push( |
| 1917 | ` /// **Experimental.** This API is part of an experimental wire-protocol surface`, |
| 1918 | ); |
| 1919 | docs.push( |
| 1920 | ` /// and may change or be removed in future SDK or CLI releases. Pin both the`, |
| 1921 | ); |
| 1922 | docs.push( |
| 1923 | ` /// SDK and CLI versions if your code depends on it.`, |
| 1924 | ); |
| 1925 | docs.push( |
| 1926 | ` ///`, |
| 1927 | ); |
| 1928 | docs.push( |
| 1929 | ` /// </div>`, |
| 1930 | ); |
| 1931 | } else if (stability && stability !== "stable") { |
| 1932 | docs.push(` /// Stability: \`${stability}\`.`); |
| 1933 | } |
| 1934 | return docs; |
| 1935 | }; |
| 1936 | |
| 1937 | const paramArg = hasParams ? `, params: ${paramsTypeName}` : ""; |
| 1938 | const fnVis = |
no test coverage detected
searching dependent graphs…