@eagleoutice/flowr 2.13.4 → 2.13.6

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.
Files changed (133) hide show
  1. package/README.md +29 -29
  2. package/cli/repl/core.js +10 -2
  3. package/config.d.ts +4 -1
  4. package/config.js +10 -1
  5. package/control-flow/cfg-dead-code.js +19 -4
  6. package/control-flow/extract-cfg.js +12 -4
  7. package/dataflow/environments/built-in-config.d.ts +6 -3
  8. package/dataflow/environments/built-in-eval-name.d.ts +20 -0
  9. package/dataflow/environments/built-in-eval-name.js +25 -0
  10. package/dataflow/environments/built-in-props.d.ts +175 -0
  11. package/dataflow/environments/built-in-props.js +207 -0
  12. package/dataflow/environments/built-in.d.ts +26 -22
  13. package/dataflow/environments/built-in.js +37 -10
  14. package/dataflow/environments/default-builtin-config.d.ts +1068 -95
  15. package/dataflow/environments/default-builtin-config.js +549 -216
  16. package/dataflow/environments/identifier.d.ts +24 -1
  17. package/dataflow/environments/identifier.js +24 -2
  18. package/dataflow/environments/query-fn-props.d.ts +102 -0
  19. package/dataflow/environments/query-fn-props.js +188 -0
  20. package/dataflow/eval/resolve/alias-tracking.d.ts +6 -5
  21. package/dataflow/eval/resolve/alias-tracking.js +45 -12
  22. package/dataflow/eval/resolve/match-arguments.d.ts +15 -0
  23. package/dataflow/eval/resolve/match-arguments.js +77 -0
  24. package/dataflow/eval/resolve/resolve-numbers.d.ts +202 -0
  25. package/dataflow/eval/resolve/resolve-numbers.js +163 -0
  26. package/dataflow/eval/resolve/resolve-operators.d.ts +60 -0
  27. package/dataflow/eval/resolve/resolve-operators.js +115 -0
  28. package/dataflow/eval/resolve/resolve-strings.d.ts +98 -0
  29. package/dataflow/eval/resolve/resolve-strings.js +116 -0
  30. package/dataflow/eval/resolve/resolve.d.ts +5 -37
  31. package/dataflow/eval/resolve/resolve.js +56 -134
  32. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +1 -1
  33. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +5 -4
  34. package/dataflow/internal/process/functions/call/built-in/built-in-library.js +1 -4
  35. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +1 -1
  36. package/dataflow/internal/process/functions/call/known-call-handling.d.ts +2 -1
  37. package/dataflow/internal/process/functions/call/known-call-handling.js +2 -1
  38. package/documentation/data/faq/faqs.js +11 -0
  39. package/documentation/doc-util/doc-types.js +1 -1
  40. package/documentation/wiki-analyzer.js +75 -0
  41. package/documentation/wiki-core.js +81 -16
  42. package/documentation/wiki-interface.js +3 -0
  43. package/linter/linter-rules.d.ts +10 -11
  44. package/linter/rules/deprecated-functions.js +5 -3
  45. package/linter/rules/function-finder-util.d.ts +2 -2
  46. package/linter/rules/function-finder-util.js +10 -3
  47. package/linter/rules/network-functions.d.ts +25 -5
  48. package/linter/rules/network-functions.js +51 -11
  49. package/linter/rules/problematic-inputs.d.ts +1 -1
  50. package/linter/rules/problematic-inputs.js +7 -1
  51. package/linter/rules/seeded-randomness.d.ts +5 -8
  52. package/linter/rules/seeded-randomness.js +18 -10
  53. package/linter/rules/unused-definition.js +29 -17
  54. package/package.json +4 -2
  55. package/project/cache/flowr-analyzer-cache.d.ts +4 -3
  56. package/project/cache/flowr-analyzer-cache.js +32 -13
  57. package/project/cache/flowr-cache.d.ts +39 -12
  58. package/project/cache/flowr-cache.js +5 -3
  59. package/project/context/flowr-analyzer-context.d.ts +8 -1
  60. package/project/context/flowr-analyzer-context.js +11 -1
  61. package/project/context/flowr-analyzer-dependencies-context.d.ts +8 -2
  62. package/project/context/flowr-analyzer-dependencies-context.js +43 -11
  63. package/project/context/flowr-analyzer-files-context.d.ts +8 -4
  64. package/project/context/flowr-analyzer-files-context.js +20 -1
  65. package/project/context/flowr-analyzer-incremental-analysis-context.d.ts +33 -0
  66. package/project/context/flowr-analyzer-incremental-analysis-context.js +63 -0
  67. package/project/context/flowr-analyzer-meta-context.d.ts +3 -1
  68. package/project/context/flowr-analyzer-meta-context.js +14 -0
  69. package/project/context/flowr-file.d.ts +25 -3
  70. package/project/context/flowr-file.js +24 -2
  71. package/project/dependency-version-space.d.ts +37 -0
  72. package/project/dependency-version-space.js +118 -26
  73. package/project/flowr-analyzer.d.ts +6 -0
  74. package/project/flowr-analyzer.js +6 -2
  75. package/project/incremental/incremental-parse/edit-computation.d.ts +7 -0
  76. package/project/incremental/incremental-parse/edit-computation.js +61 -0
  77. package/project/incremental/incremental-parse/incremental-parse.d.ts +12 -0
  78. package/project/incremental/incremental-parse/incremental-parse.js +37 -0
  79. package/project/plugins/file-plugins/files/flowr-jupyter-file.d.ts +1 -1
  80. package/project/plugins/file-plugins/files/flowr-manifest-files.d.ts +57 -0
  81. package/project/plugins/file-plugins/files/flowr-manifest-files.js +121 -0
  82. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +2 -2
  83. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +2 -2
  84. package/project/plugins/file-plugins/files/flowr-sweave-file.d.ts +1 -1
  85. package/project/plugins/file-plugins/flowr-analyzer-manifest-file-plugin.d.ts +33 -0
  86. package/project/plugins/file-plugins/flowr-analyzer-manifest-file-plugin.js +53 -0
  87. package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.d.ts +1 -1
  88. package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.js +3 -3
  89. package/project/plugins/package-version-plugins/flowr-analyzer-meta-manifest-file-plugin.d.ts +27 -0
  90. package/project/plugins/package-version-plugins/flowr-analyzer-meta-manifest-file-plugin.js +47 -0
  91. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +7 -0
  92. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +31 -3
  93. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +10 -4
  94. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +17 -4
  95. package/project/plugins/plugin-registry.d.ts +4 -4
  96. package/project/plugins/plugin-registry.js +7 -4
  97. package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +4 -4
  98. package/project/sigdb/reader.d.ts +7 -0
  99. package/project/sigdb/reader.js +12 -0
  100. package/queries/catalog/dependencies-query/function-info/derived-functions.d.ts +10 -0
  101. package/queries/catalog/dependencies-query/function-info/derived-functions.js +41 -0
  102. package/queries/catalog/dependencies-query/function-info/read-functions.js +13 -12
  103. package/queries/catalog/dependencies-query/function-info/write-functions.js +16 -23
  104. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +33 -3
  105. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.d.ts +31 -0
  106. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +9 -2
  107. package/queries/catalog/input-sources-query/input-source-functions.d.ts +8 -10
  108. package/queries/catalog/input-sources-query/input-source-functions.js +23 -388
  109. package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +7 -0
  110. package/queries/catalog/input-sources-query/input-sources-query-format.js +27 -10
  111. package/queries/catalog/signature-query/signature-query-executor.d.ts +2 -1
  112. package/queries/catalog/signature-query/signature-query-executor.js +79 -3
  113. package/queries/catalog/signature-query/signature-query-format.d.ts +27 -0
  114. package/queries/catalog/signature-query/signature-query-render.js +21 -3
  115. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.d.ts +6 -2
  116. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +21 -2
  117. package/r-bridge/parser.d.ts +11 -1
  118. package/r-bridge/parser.js +7 -4
  119. package/r-bridge/shell-executor.d.ts +1 -0
  120. package/r-bridge/shell-executor.js +1 -0
  121. package/r-bridge/shell.d.ts +1 -0
  122. package/r-bridge/shell.js +1 -0
  123. package/search/flowr-search-filters.d.ts +1 -6
  124. package/search/flowr-search-filters.js +1 -8
  125. package/search/search-executor/search-enrichers.d.ts +2 -0
  126. package/search/search-executor/search-enrichers.js +29 -12
  127. package/util/version.js +1 -1
  128. package/project/plugins/file-plugins/files/flowr-rproject-file.d.ts +0 -31
  129. package/project/plugins/file-plugins/files/flowr-rproject-file.js +0 -66
  130. package/project/plugins/file-plugins/flowr-analyzer-rproject-file-plugin.d.ts +0 -22
  131. package/project/plugins/file-plugins/flowr-analyzer-rproject-file-plugin.js +0 -36
  132. package/project/plugins/package-version-plugins/flowr-analyzer-meta-rproject-file-plugin.d.ts +0 -13
  133. package/project/plugins/package-version-plugins/flowr-analyzer-meta-rproject-file-plugin.js +0 -32
@@ -1,5 +1,5 @@
1
- import { Identifier } from '../../../dataflow/environments/identifier';
2
1
  import type { LinkedInputEntryPoint, LinkedInputObject, NarrowingFunction } from './simple-input-classifier';
2
+ import { BuiltInIndex } from '../../../dataflow/environments/query-fn-props';
3
3
  /**
4
4
  * Objects that a framework binds for its users, without a definition visible in the code.
5
5
  * The `withParams` and `requires` guards keep ordinary functions that happen to have a parameter of the same
@@ -7,17 +7,15 @@ import type { LinkedInputEntryPoint, LinkedInputObject, NarrowingFunction } from
7
7
  * @see {@link LinkedInputObject}
8
8
  */
9
9
  export declare const LinkedInputObjects: readonly LinkedInputObject[];
10
- export declare const NarrowingFunctions: readonly NarrowingFunction[];
10
+ /**
11
+ * The functions whose result is bounded no matter what flows in, read back from the {@link CallProp.Narrows}
12
+ * built-ins: with an {@link ArgProp.Bounds} parameter the result is one of that argument's values (`match.arg`
13
+ * and its `choices`), without one it is a count, an index, or a logical of the call's own making. Label a
14
+ * built-in `Narrows` (in the {@link DefaultBuiltinConfig} or your own definitions) and it shows up here.
15
+ */
16
+ export declare function narrowingFunctions(index?: BuiltInIndex): readonly NarrowingFunction[];
11
17
  /**
12
18
  * Calls that hand a function to a framework which binds its parameters by position.
13
19
  * @see {@link LinkedInputEntryPoint}
14
20
  */
15
21
  export declare const LinkedInputEntryPoints: readonly LinkedInputEntryPoint[];
16
- export declare const PureFunctions: Identifier[];
17
- export declare const SystemFunctions: Identifier[];
18
- export declare const FfiFunctions: Identifier[];
19
- export declare const LangFunctions: Identifier[];
20
- export declare const OptionsFunctions: Identifier[];
21
- export declare const UserFunctions: Identifier[];
22
- /** R functions that produce temporary file/directory paths (sub-type of {@link InputType.File}). */
23
- export declare const TempFileFunctions: Identifier[];
@@ -1,17 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TempFileFunctions = exports.UserFunctions = exports.OptionsFunctions = exports.LangFunctions = exports.FfiFunctions = exports.SystemFunctions = exports.PureFunctions = exports.LinkedInputEntryPoints = exports.NarrowingFunctions = exports.LinkedInputObjects = void 0;
3
+ exports.LinkedInputEntryPoints = exports.LinkedInputObjects = void 0;
4
+ exports.narrowingFunctions = narrowingFunctions;
4
5
  const identifier_1 = require("../../../dataflow/environments/identifier");
5
6
  const simple_input_classifier_1 = require("./simple-input-classifier");
7
+ const built_in_props_1 = require("../../../dataflow/environments/built-in-props");
8
+ const query_fn_props_1 = require("../../../dataflow/environments/query-fn-props");
6
9
  /** shiny's ui-side control widgets, all taking the id of the `input` entry they feed as their first argument */
7
10
  const ShinyInputWidgets = {
8
11
  argName: 'inputId',
9
12
  argIdx: 0,
10
- calls: [
13
+ calls: identifier_1.Identifier.fromAll("shiny" /* PkgName.Shiny */, [
11
14
  'actionButton', 'actionLink', 'checkboxInput', 'checkboxGroupInput', 'dateInput', 'dateRangeInput',
12
15
  'fileInput', 'numericInput', 'passwordInput', 'radioButtons', 'selectInput', 'selectizeInput',
13
16
  'sliderInput', 'submitButton', 'textAreaInput', 'textInput', 'varSelectInput', 'varSelectizeInput'
14
- ].map(n => identifier_1.Identifier.make(n, 'shiny'))
17
+ ])
15
18
  };
16
19
  /**
17
20
  * Objects that a framework binds for its users, without a definition visible in the code.
@@ -25,18 +28,19 @@ exports.LinkedInputObjects = [
25
28
  /* of the session only what the browser sends is user input, `userData` and `token` are the app's own */
26
29
  { name: 'session', type: simple_input_classifier_1.InputType.User, withParams: ['input', 'output'], requires: 'shiny', fields: ['clientData', 'request'] }
27
30
  ];
28
- exports.NarrowingFunctions = [
29
- /* bounded by an argument: the result is one element of that argument */
30
- { call: identifier_1.Identifier.make('match.arg', 'base'), argName: 'choices', argIdx: 1 },
31
- /* bounded content-independent results (counts, indices, logicals): the subject's taint cannot flow through */
32
- ...[
33
- 'nchar', 'length', 'lengths', 'nrow', 'ncol', 'NROW', 'NCOL',
34
- 'which', 'which.max', 'which.min', 'match', 'pmatch', 'charmatch',
35
- 'seq_along', 'seq_len',
36
- 'is.na', 'is.null', 'is.numeric', 'is.character', 'is.logical', 'is.function', 'is.list', 'is.element',
37
- 'nzchar', 'grepl', 'startsWith', 'endsWith'
38
- ].map(name => ({ call: identifier_1.Identifier.make(name, 'base') }))
39
- ];
31
+ /**
32
+ * The functions whose result is bounded no matter what flows in, read back from the {@link CallProp.Narrows}
33
+ * built-ins: with an {@link ArgProp.Bounds} parameter the result is one of that argument's values (`match.arg`
34
+ * and its `choices`), without one it is a count, an index, or a logical of the call's own making. Label a
35
+ * built-in `Narrows` (in the {@link DefaultBuiltinConfig} or your own definitions) and it shows up here.
36
+ */
37
+ function narrowingFunctions(index = query_fn_props_1.BuiltInIndex.default()) {
38
+ const bounds = new Map(index.params(built_in_props_1.ArgProp.Bounds).map(p => [identifier_1.Identifier.getName(p.call), p]));
39
+ return index.with(built_in_props_1.CallProp.Narrows).map(call => {
40
+ const bound = bounds.get(identifier_1.Identifier.getName(call));
41
+ return bound === undefined ? { call } : { call, argName: bound.name, argIdx: bound.index };
42
+ });
43
+ }
40
44
  /** shiny binds `input`, `output`, and `session` positionally, so their names are up to whoever writes the server */
41
45
  const ShinyServerParams = ['input', undefined, 'session'];
42
46
  /**
@@ -44,378 +48,9 @@ const ShinyServerParams = ['input', undefined, 'session'];
44
48
  * @see {@link LinkedInputEntryPoint}
45
49
  */
46
50
  exports.LinkedInputEntryPoints = [
47
- { call: identifier_1.Identifier.make('shinyApp', 'shiny'), argName: 'server', argIdx: 1, params: ShinyServerParams },
48
- { call: identifier_1.Identifier.make('shinyServer', 'shiny'), argName: 'func', argIdx: 0, params: ShinyServerParams },
49
- { call: identifier_1.Identifier.make('moduleServer', 'shiny'), argName: 'module', argIdx: 1, params: ShinyServerParams },
50
- { call: identifier_1.Identifier.make('callModule', 'shiny'), argName: 'module', argIdx: 0, params: ShinyServerParams }
51
- ];
52
- exports.PureFunctions = [
53
- /* operators - syntax elements, impossible to call with :: in practice */
54
- '+', '-', '*', '/', '^', '%%', '%/%',
55
- '&', '|', '!', '&&', '||',
56
- '<', '>', '<=', '>=', '==', '!=', ':',
57
- '<-', '->', '=', '<<-', '->>',
58
- '[', '[[', '$',
59
- 'length<-', 'dim<-', 'names<-', 'colnames<-', 'rownames<-',
60
- /* base - string */
61
- identifier_1.Identifier.make('paste', 'base'),
62
- identifier_1.Identifier.make('paste0', 'base'),
63
- identifier_1.Identifier.make('substr', 'base'),
64
- identifier_1.Identifier.make('substring', 'base'),
65
- identifier_1.Identifier.make('strsplit', 'base'),
66
- identifier_1.Identifier.make('strrep', 'base'),
67
- identifier_1.Identifier.make('chartr', 'base'),
68
- identifier_1.Identifier.make('strtoi', 'base'),
69
- identifier_1.Identifier.make('tolower', 'base'),
70
- identifier_1.Identifier.make('toupper', 'base'),
71
- identifier_1.Identifier.make('trimws', 'base'),
72
- identifier_1.Identifier.make('grep', 'base'),
73
- identifier_1.Identifier.make('sub', 'base'),
74
- identifier_1.Identifier.make('gsub', 'base'),
75
- identifier_1.Identifier.make('regexpr', 'base'),
76
- identifier_1.Identifier.make('gregexpr', 'base'),
77
- identifier_1.Identifier.make('regexec', 'base'),
78
- // regmatches yields a substring of x, so x's taint propagates soundly - kept pure deliberately
79
- identifier_1.Identifier.make('regmatches', 'base'),
80
- identifier_1.Identifier.make('format', 'base'),
81
- identifier_1.Identifier.make('sprintf', 'base'),
82
- identifier_1.Identifier.make('formatC', 'base'),
83
- /* base - math */
84
- identifier_1.Identifier.make('abs', 'base'),
85
- identifier_1.Identifier.make('sign', 'base'),
86
- identifier_1.Identifier.make('sqrt', 'base'),
87
- identifier_1.Identifier.make('exp', 'base'),
88
- identifier_1.Identifier.make('log', 'base'),
89
- identifier_1.Identifier.make('log10', 'base'),
90
- identifier_1.Identifier.make('log2', 'base'),
91
- identifier_1.Identifier.make('sin', 'base'),
92
- identifier_1.Identifier.make('cos', 'base'),
93
- identifier_1.Identifier.make('tan', 'base'),
94
- identifier_1.Identifier.make('atan2', 'base'),
95
- identifier_1.Identifier.make('asin', 'base'),
96
- identifier_1.Identifier.make('acos', 'base'),
97
- identifier_1.Identifier.make('atan', 'base'),
98
- identifier_1.Identifier.make('sinh', 'base'),
99
- identifier_1.Identifier.make('cosh', 'base'),
100
- identifier_1.Identifier.make('tanh', 'base'),
101
- identifier_1.Identifier.make('asinh', 'base'),
102
- identifier_1.Identifier.make('acosh', 'base'),
103
- identifier_1.Identifier.make('atanh', 'base'),
104
- identifier_1.Identifier.make('round', 'base'),
105
- identifier_1.Identifier.make('floor', 'base'),
106
- identifier_1.Identifier.make('ceiling', 'base'),
107
- identifier_1.Identifier.make('trunc', 'base'),
108
- identifier_1.Identifier.make('signif', 'base'),
109
- identifier_1.Identifier.make('Re', 'base'),
110
- identifier_1.Identifier.make('Im', 'base'),
111
- identifier_1.Identifier.make('Mod', 'base'),
112
- identifier_1.Identifier.make('Arg', 'base'),
113
- identifier_1.Identifier.make('Conj', 'base'),
114
- identifier_1.Identifier.make('bitwNot', 'base'),
115
- identifier_1.Identifier.make('bitwAnd', 'base'),
116
- identifier_1.Identifier.make('bitwOr', 'base'),
117
- identifier_1.Identifier.make('bitwXor', 'base'),
118
- identifier_1.Identifier.make('bitwShiftL', 'base'),
119
- identifier_1.Identifier.make('bitwShiftR', 'base'),
120
- identifier_1.Identifier.make('xor', 'base'),
121
- /* base - summary / sequence */
122
- identifier_1.Identifier.make('min', 'base'),
123
- identifier_1.Identifier.make('max', 'base'),
124
- identifier_1.Identifier.make('range', 'base'),
125
- identifier_1.Identifier.make('sum', 'base'),
126
- identifier_1.Identifier.make('prod', 'base'),
127
- identifier_1.Identifier.make('mean', 'base'),
128
- identifier_1.Identifier.make('cumsum', 'base'),
129
- identifier_1.Identifier.make('cumprod', 'base'),
130
- identifier_1.Identifier.make('cummax', 'base'),
131
- identifier_1.Identifier.make('cummin', 'base'),
132
- identifier_1.Identifier.make('diff', 'base'),
133
- identifier_1.Identifier.make('pmin', 'base'),
134
- identifier_1.Identifier.make('pmax', 'base'),
135
- identifier_1.Identifier.make('order', 'base'),
136
- identifier_1.Identifier.make('sort', 'base'),
137
- identifier_1.Identifier.make('unique', 'base'),
138
- identifier_1.Identifier.make('duplicated', 'base'),
139
- identifier_1.Identifier.make('seq', 'base'),
140
- identifier_1.Identifier.make('rep', 'base'),
141
- identifier_1.Identifier.make('rep.int', 'base'),
142
- /* base - data structures */
143
- identifier_1.Identifier.make('c', 'base'),
144
- identifier_1.Identifier.make('list', 'base'),
145
- identifier_1.Identifier.make('data.frame', 'base'),
146
- identifier_1.Identifier.make('matrix', 'base'),
147
- identifier_1.Identifier.make('array', 'base'),
148
- identifier_1.Identifier.make('rbind', 'base'),
149
- identifier_1.Identifier.make('cbind', 'base'),
150
- identifier_1.Identifier.make('t', 'base'),
151
- identifier_1.Identifier.make('crossprod', 'base'),
152
- identifier_1.Identifier.make('tcrossprod', 'base'),
153
- identifier_1.Identifier.make('append', 'base'),
154
- identifier_1.Identifier.make('rev', 'base'),
155
- identifier_1.Identifier.make('setdiff', 'base'),
156
- identifier_1.Identifier.make('union', 'base'),
157
- identifier_1.Identifier.make('intersect', 'base'),
158
- identifier_1.Identifier.make('table', 'base'),
159
- identifier_1.Identifier.make('prop.table', 'base'),
160
- identifier_1.Identifier.make('rownames', 'base'),
161
- identifier_1.Identifier.make('colnames', 'base'),
162
- identifier_1.Identifier.make('dim', 'base'),
163
- identifier_1.Identifier.make('colSums', 'base'),
164
- identifier_1.Identifier.make('rowSums', 'base'),
165
- identifier_1.Identifier.make('colMeans', 'base'),
166
- identifier_1.Identifier.make('rowMeans', 'base'),
167
- /* base - linear algebra */
168
- identifier_1.Identifier.make('solve', 'base'),
169
- identifier_1.Identifier.make('det', 'base'),
170
- identifier_1.Identifier.make('eigen', 'base'),
171
- /* base - control flow / functional */
172
- identifier_1.Identifier.make('ifelse', 'base'),
173
- identifier_1.Identifier.make('switch', 'base'),
174
- identifier_1.Identifier.make('do.call', 'base'),
175
- identifier_1.Identifier.make('Reduce', 'base'),
176
- identifier_1.Identifier.make('Filter', 'base'),
177
- identifier_1.Identifier.make('Map', 'base'),
178
- identifier_1.Identifier.make('Find', 'base'),
179
- identifier_1.Identifier.make('Position', 'base'),
180
- identifier_1.Identifier.make('Negate', 'base'),
181
- identifier_1.Identifier.make('apply', 'base'),
182
- identifier_1.Identifier.make('lapply', 'base'),
183
- identifier_1.Identifier.make('sapply', 'base'),
184
- identifier_1.Identifier.make('vapply', 'base'),
185
- identifier_1.Identifier.make('tapply', 'base'),
186
- identifier_1.Identifier.make('mapply', 'base'),
187
- identifier_1.Identifier.make('rapply', 'base'),
188
- /* base - type coercion & construction */
189
- identifier_1.Identifier.make('factor', 'base'),
190
- identifier_1.Identifier.make('as.factor', 'base'),
191
- identifier_1.Identifier.make('as.character', 'base'),
192
- identifier_1.Identifier.make('as.numeric', 'base'),
193
- identifier_1.Identifier.make('as.logical', 'base'),
194
- identifier_1.Identifier.make('as.raw', 'base'),
195
- identifier_1.Identifier.make('as.list', 'base'),
196
- identifier_1.Identifier.make('as.data.frame', 'base'),
197
- identifier_1.Identifier.make('as.matrix', 'base'),
198
- identifier_1.Identifier.make('as.array', 'base'),
199
- identifier_1.Identifier.make('as.integer', 'base'),
200
- identifier_1.Identifier.make('as.double', 'base'),
201
- identifier_1.Identifier.make('as.complex', 'base'),
202
- identifier_1.Identifier.make('numeric', 'base'),
203
- identifier_1.Identifier.make('character', 'base'),
204
- identifier_1.Identifier.make('logical', 'base'),
205
- identifier_1.Identifier.make('integer', 'base'),
206
- identifier_1.Identifier.make('double', 'base'),
207
- identifier_1.Identifier.make('raw', 'base'),
208
- identifier_1.Identifier.make('complex', 'base'),
209
- /* base - type predicates */
210
- identifier_1.Identifier.make('is.finite', 'base'),
211
- identifier_1.Identifier.make('is.infinite', 'base'),
212
- identifier_1.Identifier.make('is.nan', 'base'),
213
- identifier_1.Identifier.make('is.factor', 'base'),
214
- identifier_1.Identifier.make('is.vector', 'base'),
215
- identifier_1.Identifier.make('is.matrix', 'base'),
216
- identifier_1.Identifier.make('is.data.frame', 'base'),
217
- /* base - environment / identity / flow */
218
- identifier_1.Identifier.make('assign', 'base'),
219
- identifier_1.Identifier.make('get', 'base'),
220
- identifier_1.Identifier.make('identity', 'base'),
221
- identifier_1.Identifier.make('invisible', 'base'),
222
- identifier_1.Identifier.make('return', 'base'),
223
- identifier_1.Identifier.make('force', 'base'),
224
- identifier_1.Identifier.make('missing', 'base'),
225
- identifier_1.Identifier.make('print', 'base'),
226
- identifier_1.Identifier.make('cat', 'base'),
227
- identifier_1.Identifier.make('message', 'base'),
228
- identifier_1.Identifier.make('warning', 'base'),
229
- identifier_1.Identifier.make('stop', 'base'),
230
- identifier_1.Identifier.make('parse', 'base'),
231
- identifier_1.Identifier.make('list.files', 'base'),
232
- /* utils */
233
- identifier_1.Identifier.make('head', 'utils'),
234
- identifier_1.Identifier.make('tail', 'utils'),
235
- /* stats - deterministic given their inputs */
236
- identifier_1.Identifier.make('var', 'stats'),
237
- identifier_1.Identifier.make('sd', 'stats'),
238
- identifier_1.Identifier.make('median', 'stats'),
239
- identifier_1.Identifier.make('quantile', 'stats'),
240
- identifier_1.Identifier.make('cor', 'stats'),
241
- identifier_1.Identifier.make('cov', 'stats'),
242
- identifier_1.Identifier.make('na.omit', 'stats'),
243
- identifier_1.Identifier.make('xtabs', 'stats'),
244
- /* shiny - wrappers that hand their expression on; the reactives among them do so through a call (`r()`).
245
- `observe`/`observeEvent`/`render*` are left out on purpose: they return an observer or render handle,
246
- not the value of their expression. */
247
- identifier_1.Identifier.make('reactive', 'shiny'),
248
- identifier_1.Identifier.make('eventReactive', 'shiny'),
249
- identifier_1.Identifier.make('bindEvent', 'shiny'),
250
- identifier_1.Identifier.make('bindCache', 'shiny'),
251
- identifier_1.Identifier.make('isolate', 'shiny'),
252
- identifier_1.Identifier.make('req', 'shiny'),
253
- identifier_1.Identifier.make('debounce', 'shiny'),
254
- identifier_1.Identifier.make('throttle', 'shiny'),
255
- identifier_1.Identifier.make('reactiveVal', 'shiny'),
256
- identifier_1.Identifier.make('reactiveValues', 'shiny'),
257
- identifier_1.Identifier.make('reactiveValuesToList', 'shiny'),
258
- identifier_1.Identifier.make('freezeReactiveVal', 'shiny'),
259
- /* cohortBuilder - assembling a cohort keeps the data of its source */
260
- identifier_1.Identifier.make('cohort', 'cohortBuilder'),
261
- identifier_1.Identifier.make('set_source', 'cohortBuilder'),
262
- identifier_1.Identifier.make('add_source', 'cohortBuilder'),
263
- identifier_1.Identifier.make('update_source', 'cohortBuilder'),
264
- identifier_1.Identifier.make('add_filter', 'cohortBuilder'),
265
- identifier_1.Identifier.make('update_filter', 'cohortBuilder'),
266
- identifier_1.Identifier.make('rm_filter', 'cohortBuilder'),
267
- identifier_1.Identifier.make('bind_key', 'cohortBuilder'),
268
- identifier_1.Identifier.make('bind_keys', 'cohortBuilder'),
269
- identifier_1.Identifier.make('as.tblist', 'cohortBuilder'),
270
- identifier_1.Identifier.make('tblist', 'cohortBuilder'),
271
- /* generic names, only matched bare while cohortBuilder is attached */
272
- identifier_1.Identifier.make('filter', 'cohortBuilder'),
273
- identifier_1.Identifier.make('step', 'cohortBuilder'),
274
- identifier_1.Identifier.make('add_step', 'cohortBuilder'),
275
- identifier_1.Identifier.make('rm_step', 'cohortBuilder'),
276
- identifier_1.Identifier.make('run', 'cohortBuilder'),
277
- identifier_1.Identifier.make('restore', 'cohortBuilder'),
278
- ];
279
- exports.SystemFunctions = [
280
- /* base */
281
- identifier_1.Identifier.make('system', 'base'),
282
- identifier_1.Identifier.make('system2', 'base'),
283
- identifier_1.Identifier.make('pipe', 'base'),
284
- identifier_1.Identifier.make('shell', 'base'),
285
- identifier_1.Identifier.make('shell.exec', 'base'),
286
- /* shinyjs - executes arbitrary JavaScript in the Shiny browser session */
287
- identifier_1.Identifier.make('runjs', 'shinyjs'),
288
- ];
289
- exports.FfiFunctions = [
290
- /* base */
291
- identifier_1.Identifier.make('.C', 'base'),
292
- identifier_1.Identifier.make('.Call', 'base'),
293
- identifier_1.Identifier.make('.Fortran', 'base'),
294
- identifier_1.Identifier.make('.External', 'base'),
295
- identifier_1.Identifier.make('dyn.load', 'base'),
296
- identifier_1.Identifier.make('getNativeSymbolInfo', 'base'),
297
- /* Rcpp */
298
- identifier_1.Identifier.make('sourceCpp', 'Rcpp'),
299
- ];
300
- exports.LangFunctions = [
301
- /* base - quoting / AST construction */
302
- identifier_1.Identifier.make('substitute', 'base'),
303
- identifier_1.Identifier.make('quote', 'base'),
304
- identifier_1.Identifier.make('enquote', 'base'),
305
- identifier_1.Identifier.make('bquote', 'base'),
306
- identifier_1.Identifier.make('call', 'base'),
307
- identifier_1.Identifier.make('as.call', 'base'),
308
- identifier_1.Identifier.make('expression', 'base'),
309
- identifier_1.Identifier.make('as.expression', 'base'),
310
- // 'str2lang', 'str2expression' - excluded: evaluated as strings, not AST
311
- identifier_1.Identifier.make('as.name', 'base'),
312
- identifier_1.Identifier.make('as.symbol', 'base'),
313
- identifier_1.Identifier.make('alist', 'base'),
314
- identifier_1.Identifier.make('as.language', 'base'),
315
- identifier_1.Identifier.make('evalq', 'base'),
316
- /* base - call / function introspection */
317
- identifier_1.Identifier.make('match.call', 'base'),
318
- identifier_1.Identifier.make('sys.call', 'base'),
319
- identifier_1.Identifier.make('sys.function', 'base'),
320
- identifier_1.Identifier.make('body', 'base'),
321
- identifier_1.Identifier.make('formals', 'base'),
322
- identifier_1.Identifier.make('args', 'base'),
323
- identifier_1.Identifier.make('deparse', 'base'),
324
- identifier_1.Identifier.make('deparse1', 'base'),
325
- /* rlang - tidy evaluation */
326
- identifier_1.Identifier.make('expr', 'rlang'),
327
- identifier_1.Identifier.make('exprs', 'rlang'),
328
- identifier_1.Identifier.make('enexpr', 'rlang'),
329
- identifier_1.Identifier.make('enexprs', 'rlang'),
330
- identifier_1.Identifier.make('inject', 'rlang'),
331
- identifier_1.Identifier.make('quo', 'rlang'),
332
- identifier_1.Identifier.make('quos', 'rlang'),
333
- identifier_1.Identifier.make('enquo', 'rlang'),
334
- identifier_1.Identifier.make('enquos', 'rlang'),
335
- identifier_1.Identifier.make('enquo0', 'rlang'),
336
- identifier_1.Identifier.make('enquos0', 'rlang'),
337
- identifier_1.Identifier.make('sym', 'rlang'),
338
- identifier_1.Identifier.make('syms', 'rlang'),
339
- identifier_1.Identifier.make('ensym', 'rlang'),
340
- identifier_1.Identifier.make('ensyms', 'rlang'),
341
- identifier_1.Identifier.make('new_formula', 'rlang'),
342
- identifier_1.Identifier.make('f_rhs', 'rlang'),
343
- identifier_1.Identifier.make('f_lhs', 'rlang'),
344
- identifier_1.Identifier.make('fn_body', 'rlang'),
345
- identifier_1.Identifier.make('fn_fmls', 'rlang'),
346
- identifier_1.Identifier.make('fn_fmls_names', 'rlang'),
347
- ];
348
- exports.OptionsFunctions = [
349
- /* base */
350
- identifier_1.Identifier.make('options', 'base'),
351
- identifier_1.Identifier.make('getOption', 'base'),
352
- identifier_1.Identifier.make('Sys.getenv', 'base'),
353
- identifier_1.Identifier.make('Sys.info', 'base'),
354
- identifier_1.Identifier.make('Sys.getpid', 'base'),
355
- identifier_1.Identifier.make('getwd', 'base'),
356
- identifier_1.Identifier.make('getRversion', 'base'),
357
- identifier_1.Identifier.make('R.Version', 'base'),
358
- ];
359
- exports.UserFunctions = [
360
- /* base */
361
- identifier_1.Identifier.make('readline', 'base'),
362
- identifier_1.Identifier.make('scan', 'base'),
363
- identifier_1.Identifier.make('file.choose', 'base'),
364
- /* utils */
365
- identifier_1.Identifier.make('askYesNo', 'utils'),
366
- identifier_1.Identifier.make('choose.files', 'utils'),
367
- identifier_1.Identifier.make('choose.dir', 'utils'),
368
- identifier_1.Identifier.make('menu', 'utils'),
369
- identifier_1.Identifier.make('select.list', 'utils'),
370
- identifier_1.Identifier.make('winDialogString', 'utils'),
371
- identifier_1.Identifier.make('winDialog', 'utils'),
372
- /* rstudioapi */
373
- identifier_1.Identifier.make('showPrompt', 'rstudioapi'),
374
- identifier_1.Identifier.make('askForPassword', 'rstudioapi'),
375
- identifier_1.Identifier.make('selectDirectory', 'rstudioapi'),
376
- identifier_1.Identifier.make('selectFile', 'rstudioapi'),
377
- identifier_1.Identifier.make('showQuestion', 'rstudioapi'),
378
- /* svDialogs */
379
- identifier_1.Identifier.make('dlgInput', 'svDialogs'),
380
- identifier_1.Identifier.make('dlgOpen', 'svDialogs'),
381
- identifier_1.Identifier.make('dlgList', 'svDialogs'),
382
- identifier_1.Identifier.make('dlgSave', 'svDialogs'),
383
- identifier_1.Identifier.make('dlgDir', 'svDialogs'),
384
- /* tcltk */
385
- identifier_1.Identifier.make('tk_choose.files', 'tcltk'),
386
- identifier_1.Identifier.make('tk_choose.dir', 'tcltk'),
387
- /* shiny - everything the browser sends along with a request */
388
- identifier_1.Identifier.make('parseQueryString', 'shiny'),
389
- identifier_1.Identifier.make('getQueryString', 'shiny'),
390
- identifier_1.Identifier.make('getUrlHash', 'shiny'),
391
- identifier_1.Identifier.make('restoreInput', 'shiny'),
392
- /* shinyFiles - paths the user picks in the browser */
393
- identifier_1.Identifier.make('parseFilePaths', 'shinyFiles'),
394
- identifier_1.Identifier.make('parseDirPath', 'shinyFiles'),
395
- identifier_1.Identifier.make('parseSavePath', 'shinyFiles'),
396
- identifier_1.Identifier.make('shinyFileChoose', 'shinyFiles'),
397
- identifier_1.Identifier.make('shinyDirChoose', 'shinyFiles'),
398
- identifier_1.Identifier.make('shinyFileSave', 'shinyFiles'),
399
- /* cohortBuilder - the data that comes out of a cohort depends on the filters the user set */
400
- identifier_1.Identifier.make('get_data', 'cohortBuilder'),
401
- identifier_1.Identifier.make('sum_up', 'cohortBuilder'),
402
- identifier_1.Identifier.make('attrition', 'cohortBuilder'),
403
- identifier_1.Identifier.make('get_state', 'cohortBuilder'),
404
- identifier_1.Identifier.make('code', 'cohortBuilder'),
405
- identifier_1.Identifier.make('stat', 'cohortBuilder'),
406
- /* shinyCohortBuilder - the gui that lets the user set those filters */
407
- identifier_1.Identifier.make('cb_server', 'shinyCohortBuilder'),
408
- identifier_1.Identifier.make('cb_ui', 'shinyCohortBuilder'),
409
- identifier_1.Identifier.make('cb_chat_server', 'shinyCohortBuilder'),
410
- identifier_1.Identifier.make('cb_chat_ui', 'shinyCohortBuilder'),
411
- identifier_1.Identifier.make('gui', 'shinyCohortBuilder'),
412
- identifier_1.Identifier.make('demo_app', 'shinyCohortBuilder'),
413
- ];
414
- /** R functions that produce temporary file/directory paths (sub-type of {@link InputType.File}). */
415
- exports.TempFileFunctions = [
416
- identifier_1.Identifier.make('tempfile', 'base'), identifier_1.Identifier.make('tempdir', 'base'),
417
- identifier_1.Identifier.make('file_temp', 'fs'), identifier_1.Identifier.make('dir_temp', 'fs'),
418
- identifier_1.Identifier.make('local_tempfile', 'withr'), identifier_1.Identifier.make('with_tempfile', 'withr'),
419
- identifier_1.Identifier.make('local_tempdir', 'withr'), identifier_1.Identifier.make('with_tempdir', 'withr'),
51
+ { call: identifier_1.Identifier.from(['shinyApp', "shiny" /* PkgName.Shiny */]), argName: 'server', argIdx: 1, params: ShinyServerParams },
52
+ { call: identifier_1.Identifier.from(['shinyServer', "shiny" /* PkgName.Shiny */]), argName: 'func', argIdx: 0, params: ShinyServerParams },
53
+ { call: identifier_1.Identifier.from(['moduleServer', "shiny" /* PkgName.Shiny */]), argName: 'module', argIdx: 1, params: ShinyServerParams },
54
+ { call: identifier_1.Identifier.from(['callModule', "shiny" /* PkgName.Shiny */]), argName: 'module', argIdx: 0, params: ShinyServerParams }
420
55
  ];
421
56
  //# sourceMappingURL=input-source-functions.js.map
@@ -24,6 +24,13 @@ export interface InputSourcesQuery extends BaseQueryFormat {
24
24
  readonly criterion: SlicingCriterion | readonly SlicingCriterion[];
25
25
  readonly config?: InputSourcesQueryConfig;
26
26
  }
27
+ /**
28
+ * Which functions belong to which input type is stated with the functions themselves, in the
29
+ * {@link DefaultBuiltinConfig|built-in configuration}: a function that states its props and carries none of the
30
+ * {@link InputProps} derives its result from its arguments, the others bring in data of their own, and a
31
+ * {@link CallProp.Narrows} one bounds its result no matter what flows in.
32
+ * Add a function there (or override its props with your own built-in definitions) and it shows up here.
33
+ */
27
34
  export declare const DefaultInputClassifierConfig: InputClassifierConfig;
28
35
  export interface InputSourcesQueryResult extends BaseQueryResult {
29
36
  /** For each query key, a list of classified input sources (each with id and all traces) */
@@ -16,20 +16,37 @@ const linter_format_1 = require("../../../linter/linter-format");
16
16
  const record_1 = require("../../../util/record");
17
17
  const read_functions_1 = require("../dependencies-query/function-info/read-functions");
18
18
  const input_source_functions_1 = require("./input-source-functions");
19
+ const built_in_props_1 = require("../../../dataflow/environments/built-in-props");
20
+ const query_fn_props_1 = require("../../../dataflow/environments/query-fn-props");
21
+ const builtIns = query_fn_props_1.BuiltInIndex.default();
22
+ /**
23
+ * Which functions belong to which input type is stated with the functions themselves, in the
24
+ * {@link DefaultBuiltinConfig|built-in configuration}: a function that states its props and carries none of the
25
+ * {@link InputProps} derives its result from its arguments, the others bring in data of their own, and a
26
+ * {@link CallProp.Narrows} one bounds its result no matter what flows in.
27
+ * Add a function there (or override its props with your own built-in definitions) and it shows up here.
28
+ */
19
29
  exports.DefaultInputClassifierConfig = {
20
- [simple_input_classifier_1.InputTraceType.Pure]: input_source_functions_1.PureFunctions,
21
- [simple_input_classifier_1.InputType.File]: read_functions_1.ReadFunctions.map(readFunction => readFunction.name),
22
- [simple_input_classifier_1.InputType.TempFile]: input_source_functions_1.TempFileFunctions,
30
+ /*
31
+ * every {@link CallProp.Pure} built-in is in here (a test checks it), but the label alone is too narrow:
32
+ * what matters for provenance is that the call invents no data of its own, not that it has no effect at
33
+ * all. `x <- z <- 'x'` has to stay constant across the assignments, and `print(x)` hands `x` back, yet
34
+ * neither is `Pure` (they rebind a name, they write to the console). So the set is every built-in that
35
+ * states its props and claims none of the {@link InputProps}.
36
+ */
37
+ [simple_input_classifier_1.InputTraceType.Pure]: builtIns.without(built_in_props_1.InputProps),
38
+ [simple_input_classifier_1.InputType.File]: [...read_functions_1.ReadFunctions.map(readFunction => readFunction.name), ...builtIns.withAll(built_in_props_1.FileInputProps)],
39
+ [simple_input_classifier_1.InputType.TempFile]: builtIns.with(built_in_props_1.CallProp.TempFile),
23
40
  [simple_input_classifier_1.InputType.Network]: flowr_search_builder_1.Q.fromQuery({ type: 'linter', rules: ['network-functions'] }, linter_format_1.LintingResultCertainty.Certain),
24
41
  [simple_input_classifier_1.InputType.Random]: flowr_search_builder_1.Q.fromQuery({ type: 'linter', rules: ['seeded-randomness'] }),
25
- [simple_input_classifier_1.InputType.System]: input_source_functions_1.SystemFunctions,
26
- [simple_input_classifier_1.InputType.Ffi]: input_source_functions_1.FfiFunctions,
27
- [simple_input_classifier_1.InputType.Lang]: input_source_functions_1.LangFunctions,
28
- [simple_input_classifier_1.InputType.Options]: input_source_functions_1.OptionsFunctions,
29
- [simple_input_classifier_1.InputType.User]: input_source_functions_1.UserFunctions,
42
+ [simple_input_classifier_1.InputType.System]: builtIns.with(built_in_props_1.CallProp.Process),
43
+ [simple_input_classifier_1.InputType.Ffi]: builtIns.with(built_in_props_1.CallProp.Ffi),
44
+ [simple_input_classifier_1.InputType.Lang]: builtIns.with(built_in_props_1.CallProp.Lang),
45
+ [simple_input_classifier_1.InputType.Options]: builtIns.with(built_in_props_1.CallProp.Ambient),
46
+ [simple_input_classifier_1.InputType.User]: builtIns.with(built_in_props_1.CallProp.User),
30
47
  linkedObjects: input_source_functions_1.LinkedInputObjects,
31
48
  linkedEntryPoints: input_source_functions_1.LinkedInputEntryPoints,
32
- narrowing: input_source_functions_1.NarrowingFunctions
49
+ narrowing: (0, input_source_functions_1.narrowingFunctions)(builtIns)
33
50
  };
34
51
  function inputSourcesQueryLineParser(output, line, _config) {
35
52
  const criterion = (0, slice_query_parser_1.sliceCriteriaParser)(line[0]);
@@ -74,7 +91,7 @@ exports.InputSourcesDefinition = {
74
91
  config: joi_1.default.object({
75
92
  [simple_input_classifier_1.InputTraceType.Pure]: joi_1.default.array().items(joi_1.default.string()).optional().description('Deterministic/pure functions: functions that preserve constantness of their inputs (e.g., arithmetic, parse).'),
76
93
  [simple_input_classifier_1.InputType.File]: joi_1.default.array().items(joi_1.default.string()).optional().description('Functions that read from the filesystem and produce data (e.g., read.csv, readRDS).'),
77
- [simple_input_classifier_1.InputType.TempFile]: joi_1.default.array().items(joi_1.default.string()).optional().description('Functions that produce temporary file paths (sub-type of File; e.g., tempfile, tempdir).'),
94
+ [simple_input_classifier_1.InputType.TempFile]: joi_1.default.array().items(joi_1.default.string()).optional().description('Functions that produce a temporary file path, which on its own touches no file system (e.g., tempfile, tempdir).'),
78
95
  [simple_input_classifier_1.InputType.Network]: joi_1.default.array().items(joi_1.default.string()).optional().description('Functions that fetch data from the network (e.g., download.file, url connections).'),
79
96
  [simple_input_classifier_1.InputType.Random]: joi_1.default.array().items(joi_1.default.string()).optional().description('Functions that produce randomness (e.g., runif, rnorm).'),
80
97
  [simple_input_classifier_1.InputType.System]: joi_1.default.array().items(joi_1.default.string()).optional().description('Functions that execute system commands (e.g., system, system2, shell, pipe).'),
@@ -1,6 +1,7 @@
1
1
  import type { BasicQueryData } from '../../base-query-format';
2
2
  import type { SignatureQuery, SignatureQueryResult, SignaturePackageView, SignatureFunctionView } from './signature-query-format';
3
3
  import { type PackageSignatureSource } from '../../../project/sigdb/reader';
4
+ import type { REnvironmentInformation } from '../../../dataflow/environments/environment';
4
5
  import type { CommandCompletions } from '../../../cli/repl/core';
5
6
  /** the CRAN package landing page (only meaningful for CRAN packages, not base R) */
6
7
  export declare function cranPageUrl(pkg: string): string;
@@ -23,7 +24,7 @@ export declare function rdrrDocUrl(pkg: string, fn: string, opts: {
23
24
  * read-only CRAN GitHub mirror. `version` defaults to the source's latest; `undefined` when the source does
24
25
  * not carry that function.
25
26
  */
26
- export declare function signatureFunctionInfo(src: PackageSignatureSource, pkg: string, fnName: string, version?: string): SignatureFunctionView | undefined;
27
+ export declare function signatureFunctionInfo(src: PackageSignatureSource, pkg: string, fnName: string, version?: string, env?: REnvironmentInformation): SignatureFunctionView | undefined;
27
28
  /** the full view of a package: version, kind, export breakdown, dependencies, and every function's view */
28
29
  export declare function signaturePackageInfo(src: PackageSignatureSource, pkg: string, resolved?: string): SignaturePackageView | undefined;
29
30
  /**