private LocalVariableDefinition buildStruct(MethodDefinition read, Map<Short, LocalVariableDefinition> structData)
    {
        // construct the instance and store it in the instance local variable
        LocalVariableDefinition instance = constructStructInstance(read, structData);

        // inject fields
        injectStructFields(read, instance, structData);

        // inject methods
        injectStructMethods(read, instance, structData);

        // invoke factory method if present
        invokeFactoryMethod(read, structData, instance);

        return instance;
    }
private LocalVariableDefinition buildStruct ( MethodDefinition read , Map < Short , LocalVariableDefinition > structData ) { LocalVariableDefinition instance = constructStructInstance ( read , structData ) ; injectStructFields ( read , instance , structData ) ; injectStructMethods ( read , instance , structData ) ; invokeFactoryMethod ( read , structData , instance ) ; return instance ; }
Defines the code to build the struct instance using the data in the local variables.