getNameValue finds scope name values in body only if is previously defined according to line numbers