lib/json_constants_parser.js
function(options) {
	var constantsData = options.constantsData;
	var location = options.location;
	var index = options.index;
	var name = options.name;

	var bufferInfo;
	var addData = false;

	// Search for a buffer's info
	array_registers.forEach(function(arrayRegister) {
		if(name === arrayRegister.data) {
			bufferInfo = {
				'size': arrayRegister.size,
			};
			var importTypeData = true;
			if(arrayRegister.type) {
				if(arrayRegister.type !== 'raw') {
					bufferInfo.type = arrayRegister.type;
					importTypeData = false;
				}
			}
			if(importTypeData) {
				bufferInfo.type = constantsData[location][index].type;
			}
			addData = true;
		}
	});

	if(addData) {
		constantsData[location][index].bufferInfo = bufferInfo;
	}
}
function(options) {
	var constantsData = options.constantsData;
	var location = options.location;
	var index = options.index;
	var name = options.name;

	var bufferInfo;
	var addData = false;

	// Search for a buffer's info
	array_registers.forEach(function(arrayRegister) {
		if(name === arrayRegister.data) {
			bufferInfo = {
				'size': arrayRegister.size,
			};
			var importTypeData = true;
			if(arrayRegister.type) {
				if(arrayRegister.type !== 'raw') {
					bufferInfo.type = arrayRegister.type;
					importTypeData = false;
				}
			}
			if(importTypeData) {
				bufferInfo.type = constantsData[location][index].type;
			}
			addData = true;
		}
	});

	if(addData) {
		constantsData[location][index].bufferInfo = bufferInfo;
	}
}
function ( options ) { var constantsData = options . constantsData ; var location = options . location ; var index = options . index ; var name = options . name ; var bufferInfo ; var addData = false ; // Search for a buffer's info array_registers . forEach ( function ( arrayRegister ) { if ( name === arrayRegister . data ) { bufferInfo = { 'size' : arrayRegister . size , } ; var importTypeData = true ; if ( arrayRegister . type ) { if ( arrayRegister . type !== 'raw' ) { bufferInfo . type = arrayRegister . type ; importTypeData = false ; } } if ( importTypeData ) { bufferInfo . type = constantsData [ location ] [ index ] . type ; } addData = true ; } } ) ; if ( addData ) { constantsData [ location ] [ index ] . bufferInfo = bufferInfo ; } }
This function forces the creation of the bufferInfo attribute to registers
that contains more information about them.
This function forces the creation of the bufferInfo attribute to registers that contains more information about them .