Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1018046 // prepareEvalWithDollarVars_assertAllVarsSet

JavaX fragment (include)

static Pair<LS, O> prepareEvalWithDollarVars_assertAllVarsSet(S code, SS values) {
  Set<S> vars = tok_dollarVarTokens(javaTok(code));
  for (S v : vars)
    if (!containsKey(values, v))
      fail("No value for " + v);
  ret prepareEvalWithDollarVars(code, vars);
}

Author comment

Began life as a copy of #1017774

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018046
Snippet name: prepareEvalWithDollarVars_assertAllVarsSet
Eternal ID of this version: #1018046/1
Text MD5: c4d30e7f8a92108195bc97fbb1e3774c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-28 17:36:09
Source code size: 272 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 315 / 343
Referenced in: [show references]