MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / doVar

Method doVar

ij/src/main/java/ij/macro/Interpreter.java:1319–1337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1317 }
1318
1319 void doVar() {
1320 getToken();
1321 while (token==WORD) {
1322 if (nextToken()=='=')
1323 doAssignment();
1324 else {
1325 Variable v = lookupVariable(tokenAddress);
1326 if (v==null)
1327 push(tokenAddress, 0.0, null, this);
1328 }
1329 getToken();
1330 if (token==',')
1331 getToken();
1332 else {
1333 putTokenBack();
1334 break;
1335 }
1336 }
1337 }
1338
1339 final void getLeftParen() {
1340 getToken();

Callers 2

saveGlobals2Method · 0.95
doStatementMethod · 0.95

Calls 6

getTokenMethod · 0.95
nextTokenMethod · 0.95
doAssignmentMethod · 0.95
lookupVariableMethod · 0.95
pushMethod · 0.95
putTokenBackMethod · 0.95

Tested by

no test coverage detected