PR for supporting extracting code when initializing test data without field name

This PR only supports anonymous struct type.
To fully support for named struct type requires a lot of changes in the source code.