File tree Expand file tree Collapse file tree
_tools/repl-txt/rules/line-length/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,6 +51,22 @@ function pkg2alias( pkg ) {
5151 return null ;
5252}
5353
54+ /**
55+ * Replaces a matched alias annotation with the alias corresponding to the package path.
56+ *
57+ * @private
58+ * @param {string } match - alias annotation
59+ * @param {string } pkg - package name
60+ * @returns {string } alias name or original string
61+ */
62+ function substituteAlias ( match , pkg ) {
63+ var alias = pkg2alias ( pkg ) ;
64+ if ( alias ) {
65+ return alias ;
66+ }
67+ return match ;
68+ }
69+
5470
5571// MAIN //
5672
@@ -86,22 +102,6 @@ function main( context ) {
86102 }
87103 }
88104
89- /**
90- * Replaces a matched alias annotation with the alias corresponding to the package path.
91- *
92- * @private
93- * @param {string } match - alias annotation
94- * @param {string } pkg - package name
95- * @returns {string } alias name or original string
96- */
97- function substituteAlias ( match , pkg ) {
98- var alias = pkg2alias ( pkg ) ;
99- if ( alias ) {
100- return alias ;
101- }
102- return match ;
103- }
104-
105105 return {
106106 'function' : lineLength
107107 } ;
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ var rsa1nsa2 = require( './fixtures/row_major_sa1n_sa2.json' );
4141var rsa1sa2n = require ( './fixtures/row_major_sa1_sa2n.json' ) ;
4242var rsa1nsa2n = require ( './fixtures/row_major_sa1n_sa2n.json' ) ;
4343var rcap = require ( './fixtures/row_major_complex_access_pattern.json' ) ;
44-
4544var cu = require ( './fixtures/column_major_u.json' ) ;
4645var cl = require ( './fixtures/column_major_l.json' ) ;
4746var cxp = require ( './fixtures/column_major_xp.json' ) ;
You can’t perform that action at this time.
0 commit comments