File tree Expand file tree Collapse file tree
lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-content-indent/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,26 @@ var rule;
3838
3939
4040// FUNCTIONS //
41+ /**
42+ * Copies AST node location info.
43+ *
44+ * @private
45+ * @param {Object } loc - AST node location
46+ * @returns {Object } copied location info
47+ */
48+ function copyLocationInfo ( loc ) {
49+ return {
50+ 'start' : {
51+ 'line' : loc . start . line ,
52+ 'column' : loc . start . column
53+ } ,
54+ 'end' : {
55+ 'line' : loc . end . line ,
56+ 'column' : loc . end . column
57+ }
58+ } ;
59+ }
60+
4161
4262/**
4363* Rule to prevent indentation of Markdown heading content in JSDoc descriptions.
@@ -112,25 +132,7 @@ function main( context ) {
112132 }
113133 }
114134
115- /**
116- * Copies AST node location info.
117- *
118- * @private
119- * @param {Object } loc - AST node location
120- * @returns {Object } copied location info
121- */
122- function copyLocationInfo ( loc ) {
123- return {
124- 'start' : {
125- 'line' : loc . start . line ,
126- 'column' : loc . start . column
127- } ,
128- 'end' : {
129- 'line' : loc . end . line ,
130- 'column' : loc . end . column
131- }
132- } ;
133- }
135+
134136
135137 /**
136138 * Reports an error message.
You can’t perform that action at this time.
0 commit comments