MCPcopy Index your code
hub / github.com/antlr/codebuff / setFirstArgument

Method setFirstArgument

output/java8/1.4.15/Interpreter.java:911–924  ·  view source on GitHub ↗
(InstanceScope scope, ST st, Object attr)

Source from the content-addressed store, hash-verified

909 }
910
911 protected void setFirstArgument(InstanceScope scope, ST st, Object attr) {
912 if ( !st.impl.hasFormalArgs ) {
913 if ( st.impl.formalArguments==null ) {
914 st.add(ST.IMPLICIT_ARG_NAME, attr);
915 return;
916 }
917 // else fall thru to set locals[0]
918 }
919 if ( st.impl.formalArguments==null ) {
920 errMgr.runTimeError(this, scope, ErrorType.ARGUMENT_COUNT_MISMATCH, 1, st.impl.name, 0);
921 return;
922 }
923 st.locals[0] = attr;
924 }
925
926 protected void addToList(InstanceScope scope, List<Object> list, Object o) {
927 o = convertAnythingIteratableToIterator(scope, o);

Callers 2

rot_mapMethod · 0.95
rot_map_iteratorMethod · 0.95

Calls 2

addMethod · 0.65
runTimeErrorMethod · 0.65

Tested by

no test coverage detected