@eagleoutice/flowr 2.0.21 → 2.0.23

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.
@@ -117,6 +117,7 @@ registerBuiltInFunctions(false, ['apply', 'tapply', 'Tapply'], built_in_apply_1.
117
117
  registerBuiltInFunctions(false, ['print'], defaultBuiltInProcessor, { returnsNthArgument: 0, forceArgs: 'all' });
118
118
  registerBuiltInFunctions(true, ['('], defaultBuiltInProcessor, { returnsNthArgument: 0 });
119
119
  registerBuiltInFunctions(false, ['load', 'load_all', 'setwd', 'set.seed'], defaultBuiltInProcessor, { hasUnknownSideEffects: true, forceArgs: [true] });
120
+ registerBuiltInFunctions(false, ['eval', 'body', 'formals', 'environment'], defaultBuiltInProcessor, { hasUnknownSideEffects: true, forceArgs: [true] });
120
121
  registerBuiltInFunctions(false, ['cat'], defaultBuiltInProcessor, { forceArgs: 'all' }); /* returns null */
121
122
  registerBuiltInFunctions(false, ['switch'], defaultBuiltInProcessor, {}); /* returns null */
122
123
  registerBuiltInFunctions(true, ['return'], defaultBuiltInProcessor, { returnsNthArgument: 0, cfg: 1 /* ExitPointType.Return */ });
@@ -144,13 +145,14 @@ registerBuiltInFunctions(true, ['for'], built_in_for_loop_1.processForLoop, {});
144
145
  registerBuiltInFunctions(true, ['repeat'], built_in_repeat_loop_1.processRepeatLoop, {});
145
146
  registerBuiltInFunctions(true, ['while'], built_in_while_loop_1.processWhileLoop, {});
146
147
  registerBuiltInFunctions(false, ['options'], defaultBuiltInProcessor, { hasUnknownSideEffects: true, forceArgs: 'all' });
147
- registerBuiltInFunctions(false, ['on.exit', 'sys.on.exit'], defaultBuiltInProcessor, { hasUnknownSideEffects: true });
148
+ registerBuiltInFunctions(false, ['on.exit', 'sys.on.exit', 'par', 'dev.off'], defaultBuiltInProcessor, { hasUnknownSideEffects: true });
149
+ registerBuiltInFunctions(false, ['setnames', 'setNames', 'setkey', 'setkeyv', 'setindex', 'setindexv', 'setattr', 'sink'], defaultBuiltInProcessor, { hasUnknownSideEffects: true });
148
150
  /* library and require is handled above */
149
151
  registerBuiltInFunctions(false, ['requireNamespace', 'loadNamespace', 'attachNamespace', 'asNamespace'], defaultBuiltInProcessor, { hasUnknownSideEffects: true });
150
152
  /* downloader and installer functions (R, devtools, BiocManager) */
151
153
  registerBuiltInFunctions(false, ['library.dynam', 'install.packages', 'install', 'install_github', 'install_gitlab', 'install_bitbucket', 'install_url', 'install_git', 'install_svn', 'install_local', 'install_version', 'update_packages'], defaultBuiltInProcessor, { hasUnknownSideEffects: true });
152
154
  /* weird env attachments */
153
- registerBuiltInFunctions(false, ['attach'], defaultBuiltInProcessor, { hasUnknownSideEffects: true });
155
+ registerBuiltInFunctions(false, ['attach', 'detach', 'unname', 'rm', 'remove'], defaultBuiltInProcessor, { hasUnknownSideEffects: true });
154
156
  /* they are all mapped to `<-` but we separate super assignments */
155
- registerReplacementFunctions({ makeMaybe: true }, ['<-', '<<-'], '[', '[[', '$', '@', 'names', 'dimnames', 'attributes', 'attr', 'class', 'levels', 'rownames', 'colnames');
157
+ registerReplacementFunctions({ makeMaybe: true }, ['<-', '<<-'], '[', '[[', '$', '@', 'names', 'dimnames', 'attributes', 'attr', 'class', 'levels', 'rownames', 'colnames', 'body', 'environment', 'formals');
156
158
  //# sourceMappingURL=built-in.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eagleoutice/flowr",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "description": "Static Dataflow Analyzer and Program Slicer for the R Programming Language",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "repository": {
package/util/version.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.flowrVersion = void 0;
4
4
  const semver_1 = require("semver");
5
5
  // this is automatically replaced with the current version by release-it
6
- const version = '2.0.21';
6
+ const version = '2.0.23';
7
7
  function flowrVersion() {
8
8
  return new semver_1.SemVer(version);
9
9
  }