Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ function pkg2alias( pkg ) {
return null;
}

/**
* Replaces a matched alias annotation with the alias corresponding to the package path.
*
* @private
* @param {string} match - alias annotation
* @param {string} pkg - package name
* @returns {string} alias name or original string
*/
function substituteAlias( match, pkg ) {
var alias = pkg2alias( pkg );
if ( alias ) {
return alias;
}
return match;
}


// MAIN //

Expand Down Expand Up @@ -86,22 +102,6 @@ function main( context ) {
}
}

/**
* Replaces a matched alias annotation with the alias corresponding to the package path.
*
* @private
* @param {string} match - alias annotation
* @param {string} pkg - package name
* @returns {string} alias name or original string
*/
function substituteAlias( match, pkg ) {
var alias = pkg2alias( pkg );
if ( alias ) {
return alias;
}
return match;
}

return {
'function': lineLength
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ var rsa1nsa2 = require( './fixtures/row_major_sa1n_sa2.json' );
var rsa1sa2n = require( './fixtures/row_major_sa1_sa2n.json' );
var rsa1nsa2n = require( './fixtures/row_major_sa1n_sa2n.json' );
var rcap = require( './fixtures/row_major_complex_access_pattern.json' );

var cu = require( './fixtures/column_major_u.json' );
var cl = require( './fixtures/column_major_l.json' );
var cxp = require( './fixtures/column_major_xp.json' );
Expand Down
Loading