MCPcopy Create free account
hub / github.com/mozilla/rhino / addWarning

Method addWarning

rhino/src/main/java/org/mozilla/javascript/Parser.java:203–205  ·  view source on GitHub ↗
(String messageId, String messageArg)

Source from the content-addressed store, hash-verified

201 }
202
203 void addWarning(String messageId, String messageArg) {
204 addWarning(messageId, messageArg, currentPos.getPosition(), currentPos.getLength());
205 }
206
207 void addWarning(String messageId, int position, int length) {
208 addWarning(messageId, null, position, length);

Callers 4

addStrictWarningMethod · 0.95
defineSymbolMethod · 0.95
warnTrailingCommaMethod · 0.95
getTokenMethod · 0.80

Calls 8

lookupMessageMethod · 0.95
addErrorMethod · 0.95
mapCurrentPosMethod · 0.95
mapLocationMethod · 0.95
reportWarningAsErrorMethod · 0.80
getPositionMethod · 0.65
getLengthMethod · 0.65
warningMethod · 0.65

Tested by

no test coverage detected