(InstanceScope scope, ST st, Object attr)
| 939 | } |
| 940 | |
| 941 | protected void setFirstArgument(InstanceScope scope, ST st, Object attr) { |
| 942 | if ( !st.impl.hasFormalArgs ) { |
| 943 | if ( st.impl.formalArguments==null ) { |
| 944 | st.add(ST.IMPLICIT_ARG_NAME, attr); |
| 945 | return; |
| 946 | } |
| 947 | // else fall thru to set locals[0] |
| 948 | } |
| 949 | if ( st.impl.formalArguments==null ) { |
| 950 | errMgr.runTimeError(this, scope, ErrorType.ARGUMENT_COUNT_MISMATCH, 1, st.impl.name, 0); |
| 951 | return; |
| 952 | } |
| 953 | st.locals[0] = attr; |
| 954 | } |
| 955 | |
| 956 | protected void addToList(InstanceScope scope, List<Object> list, Object o) { |
| 957 | o = convertAnythingIteratableToIterator(scope, o); |
no test coverage detected