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