diff --git a/src/linter/ui5Types/utils/UniqueNameCreator.ts b/src/linter/ui5Types/utils/UniqueNameCreator.ts index 4ac8d28f0..ca9282ad3 100644 --- a/src/linter/ui5Types/utils/UniqueNameCreator.ts +++ b/src/linter/ui5Types/utils/UniqueNameCreator.ts @@ -143,27 +143,23 @@ export const getUniqueName = function ( let candidate = adjustCase(sResultName); if (!isValidIdentifierName(candidate)) { candidate = adjustCase("O") + sResultName; + if (!isValidIdentifierName(candidate)) { + throw new Error(`Failed to create a valid identifier name for '${sResultName}', tried '${candidate}'`); + } } sResultName = candidate; // add suffix to make it unique - candidate = sResultName; - const iMaxIterations = 100; - for (let i = 0; i < iMaxIterations; i++) { - if ( - isValidIdentifierName(candidate) && - !alreadyExists(usedNames, candidate, additionalCheck) - ) { - return candidate; - } + let i = 0; + while (alreadyExists(usedNames, candidate, additionalCheck)) { candidate = sResultName + i; + if (!isValidIdentifierName(candidate)) { + throw new Error(`Invalid unique identifier name '${candidate}' for '${sResultName}'`); + } + i++; } - throw new Error( - `Did not find a valid unique name for ${sResultName} within ${ - iMaxIterations - 1 - } iterations.` - ); + return candidate; }; /** diff --git a/test/fixtures/transpiler/xml/LargeXMLViewUniqueIdentifiers.view.xml b/test/fixtures/transpiler/xml/LargeXMLViewUniqueIdentifiers.view.xml new file mode 100644 index 000000000..336cb4574 --- /dev/null +++ b/test/fixtures/transpiler/xml/LargeXMLViewUniqueIdentifiers.view.xml @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md index f0be0d396..137947d0d 100644 --- a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md +++ b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md @@ -517,6 +517,669 @@ Generated by [AVA](https://avajs.dev). Map {} +## Transpile LargeXMLViewUniqueIdentifiers.view.xml + +> source + + `import Text from "sap/m/Text";␊ + import Text0 from "sap/m/Text";␊ + import Text1 from "sap/m/Text";␊ + import Text10 from "sap/m/Text";␊ + import Text100 from "sap/m/Text";␊ + import Text101 from "sap/m/Text";␊ + import Text102 from "sap/m/Text";␊ + import Text103 from "sap/m/Text";␊ + import Text11 from "sap/m/Text";␊ + import Text12 from "sap/m/Text";␊ + import Text13 from "sap/m/Text";␊ + import Text14 from "sap/m/Text";␊ + import Text15 from "sap/m/Text";␊ + import Text16 from "sap/m/Text";␊ + import Text17 from "sap/m/Text";␊ + import Text18 from "sap/m/Text";␊ + import Text19 from "sap/m/Text";␊ + import Text2 from "sap/m/Text";␊ + import Text20 from "sap/m/Text";␊ + import Text21 from "sap/m/Text";␊ + import Text22 from "sap/m/Text";␊ + import Text23 from "sap/m/Text";␊ + import Text24 from "sap/m/Text";␊ + import Text25 from "sap/m/Text";␊ + import Text26 from "sap/m/Text";␊ + import Text27 from "sap/m/Text";␊ + import Text28 from "sap/m/Text";␊ + import Text29 from "sap/m/Text";␊ + import Text3 from "sap/m/Text";␊ + import Text30 from "sap/m/Text";␊ + import Text31 from "sap/m/Text";␊ + import Text32 from "sap/m/Text";␊ + import Text33 from "sap/m/Text";␊ + import Text34 from "sap/m/Text";␊ + import Text35 from "sap/m/Text";␊ + import Text36 from "sap/m/Text";␊ + import Text37 from "sap/m/Text";␊ + import Text38 from "sap/m/Text";␊ + import Text39 from "sap/m/Text";␊ + import Text4 from "sap/m/Text";␊ + import Text40 from "sap/m/Text";␊ + import Text41 from "sap/m/Text";␊ + import Text42 from "sap/m/Text";␊ + import Text43 from "sap/m/Text";␊ + import Text44 from "sap/m/Text";␊ + import Text45 from "sap/m/Text";␊ + import Text46 from "sap/m/Text";␊ + import Text47 from "sap/m/Text";␊ + import Text48 from "sap/m/Text";␊ + import Text49 from "sap/m/Text";␊ + import Text5 from "sap/m/Text";␊ + import Text50 from "sap/m/Text";␊ + import Text51 from "sap/m/Text";␊ + import Text52 from "sap/m/Text";␊ + import Text53 from "sap/m/Text";␊ + import Text54 from "sap/m/Text";␊ + import Text55 from "sap/m/Text";␊ + import Text56 from "sap/m/Text";␊ + import Text57 from "sap/m/Text";␊ + import Text58 from "sap/m/Text";␊ + import Text59 from "sap/m/Text";␊ + import Text6 from "sap/m/Text";␊ + import Text60 from "sap/m/Text";␊ + import Text61 from "sap/m/Text";␊ + import Text62 from "sap/m/Text";␊ + import Text63 from "sap/m/Text";␊ + import Text64 from "sap/m/Text";␊ + import Text65 from "sap/m/Text";␊ + import Text66 from "sap/m/Text";␊ + import Text67 from "sap/m/Text";␊ + import Text68 from "sap/m/Text";␊ + import Text69 from "sap/m/Text";␊ + import Text7 from "sap/m/Text";␊ + import Text70 from "sap/m/Text";␊ + import Text71 from "sap/m/Text";␊ + import Text72 from "sap/m/Text";␊ + import Text73 from "sap/m/Text";␊ + import Text74 from "sap/m/Text";␊ + import Text75 from "sap/m/Text";␊ + import Text76 from "sap/m/Text";␊ + import Text77 from "sap/m/Text";␊ + import Text78 from "sap/m/Text";␊ + import Text79 from "sap/m/Text";␊ + import Text8 from "sap/m/Text";␊ + import Text80 from "sap/m/Text";␊ + import Text81 from "sap/m/Text";␊ + import Text82 from "sap/m/Text";␊ + import Text83 from "sap/m/Text";␊ + import Text84 from "sap/m/Text";␊ + import Text85 from "sap/m/Text";␊ + import Text86 from "sap/m/Text";␊ + import Text87 from "sap/m/Text";␊ + import Text88 from "sap/m/Text";␊ + import Text89 from "sap/m/Text";␊ + import Text9 from "sap/m/Text";␊ + import Text90 from "sap/m/Text";␊ + import Text91 from "sap/m/Text";␊ + import Text92 from "sap/m/Text";␊ + import Text93 from "sap/m/Text";␊ + import Text94 from "sap/m/Text";␊ + import Text95 from "sap/m/Text";␊ + import Text96 from "sap/m/Text";␊ + import Text97 from "sap/m/Text";␊ + import Text98 from "sap/m/Text";␊ + import Text99 from "sap/m/Text";␊ + import View from "sap/ui/core/mvc/View";␊ + const oText = new Text({␊ + text: "Foo",␊ + });␊ + ␊ + const oText0 = new Text0({␊ + text: "Foo",␊ + });␊ + ␊ + const oText1 = new Text1({␊ + text: "Foo",␊ + });␊ + ␊ + const oText2 = new Text2({␊ + text: "Foo",␊ + });␊ + ␊ + const oText3 = new Text3({␊ + text: "Foo",␊ + });␊ + ␊ + const oText4 = new Text4({␊ + text: "Foo",␊ + });␊ + ␊ + const oText5 = new Text5({␊ + text: "Foo",␊ + });␊ + ␊ + const oText6 = new Text6({␊ + text: "Foo",␊ + });␊ + ␊ + const oText7 = new Text7({␊ + text: "Foo",␊ + });␊ + ␊ + const oText8 = new Text8({␊ + text: "Foo",␊ + });␊ + ␊ + const oText9 = new Text9({␊ + text: "Foo",␊ + });␊ + ␊ + const oText10 = new Text10({␊ + text: "Foo",␊ + });␊ + ␊ + const oText11 = new Text11({␊ + text: "Foo",␊ + });␊ + ␊ + const oText12 = new Text12({␊ + text: "Foo",␊ + });␊ + ␊ + const oText13 = new Text13({␊ + text: "Foo",␊ + });␊ + ␊ + const oText14 = new Text14({␊ + text: "Foo",␊ + });␊ + ␊ + const oText15 = new Text15({␊ + text: "Foo",␊ + });␊ + ␊ + const oText16 = new Text16({␊ + text: "Foo",␊ + });␊ + ␊ + const oText17 = new Text17({␊ + text: "Foo",␊ + });␊ + ␊ + const oText18 = new Text18({␊ + text: "Foo",␊ + });␊ + ␊ + const oText19 = new Text19({␊ + text: "Foo",␊ + });␊ + ␊ + const oText20 = new Text20({␊ + text: "Foo",␊ + });␊ + ␊ + const oText21 = new Text21({␊ + text: "Foo",␊ + });␊ + ␊ + const oText22 = new Text22({␊ + text: "Foo",␊ + });␊ + ␊ + const oText23 = new Text23({␊ + text: "Foo",␊ + });␊ + ␊ + const oText24 = new Text24({␊ + text: "Foo",␊ + });␊ + ␊ + const oText25 = new Text25({␊ + text: "Foo",␊ + });␊ + ␊ + const oText26 = new Text26({␊ + text: "Foo",␊ + });␊ + ␊ + const oText27 = new Text27({␊ + text: "Foo",␊ + });␊ + ␊ + const oText28 = new Text28({␊ + text: "Foo",␊ + });␊ + ␊ + const oText29 = new Text29({␊ + text: "Foo",␊ + });␊ + ␊ + const oText30 = new Text30({␊ + text: "Foo",␊ + });␊ + ␊ + const oText31 = new Text31({␊ + text: "Foo",␊ + });␊ + ␊ + const oText32 = new Text32({␊ + text: "Foo",␊ + });␊ + ␊ + const oText33 = new Text33({␊ + text: "Foo",␊ + });␊ + ␊ + const oText34 = new Text34({␊ + text: "Foo",␊ + });␊ + ␊ + const oText35 = new Text35({␊ + text: "Foo",␊ + });␊ + ␊ + const oText36 = new Text36({␊ + text: "Foo",␊ + });␊ + ␊ + const oText37 = new Text37({␊ + text: "Foo",␊ + });␊ + ␊ + const oText38 = new Text38({␊ + text: "Foo",␊ + });␊ + ␊ + const oText39 = new Text39({␊ + text: "Foo",␊ + });␊ + ␊ + const oText40 = new Text40({␊ + text: "Foo",␊ + });␊ + ␊ + const oText41 = new Text41({␊ + text: "Foo",␊ + });␊ + ␊ + const oText42 = new Text42({␊ + text: "Foo",␊ + });␊ + ␊ + const oText43 = new Text43({␊ + text: "Foo",␊ + });␊ + ␊ + const oText44 = new Text44({␊ + text: "Foo",␊ + });␊ + ␊ + const oText45 = new Text45({␊ + text: "Foo",␊ + });␊ + ␊ + const oText46 = new Text46({␊ + text: "Foo",␊ + });␊ + ␊ + const oText47 = new Text47({␊ + text: "Foo",␊ + });␊ + ␊ + const oText48 = new Text48({␊ + text: "Foo",␊ + });␊ + ␊ + const oText49 = new Text49({␊ + text: "Foo",␊ + });␊ + ␊ + const oText50 = new Text50({␊ + text: "Foo",␊ + });␊ + ␊ + const oText51 = new Text51({␊ + text: "Foo",␊ + });␊ + ␊ + const oText52 = new Text52({␊ + text: "Foo",␊ + });␊ + ␊ + const oText53 = new Text53({␊ + text: "Foo",␊ + });␊ + ␊ + const oText54 = new Text54({␊ + text: "Foo",␊ + });␊ + ␊ + const oText55 = new Text55({␊ + text: "Foo",␊ + });␊ + ␊ + const oText56 = new Text56({␊ + text: "Foo",␊ + });␊ + ␊ + const oText57 = new Text57({␊ + text: "Foo",␊ + });␊ + ␊ + const oText58 = new Text58({␊ + text: "Foo",␊ + });␊ + ␊ + const oText59 = new Text59({␊ + text: "Foo",␊ + });␊ + ␊ + const oText60 = new Text60({␊ + text: "Foo",␊ + });␊ + ␊ + const oText61 = new Text61({␊ + text: "Foo",␊ + });␊ + ␊ + const oText62 = new Text62({␊ + text: "Foo",␊ + });␊ + ␊ + const oText63 = new Text63({␊ + text: "Foo",␊ + });␊ + ␊ + const oText64 = new Text64({␊ + text: "Foo",␊ + });␊ + ␊ + const oText65 = new Text65({␊ + text: "Foo",␊ + });␊ + ␊ + const oText66 = new Text66({␊ + text: "Foo",␊ + });␊ + ␊ + const oText67 = new Text67({␊ + text: "Foo",␊ + });␊ + ␊ + const oText68 = new Text68({␊ + text: "Foo",␊ + });␊ + ␊ + const oText69 = new Text69({␊ + text: "Foo",␊ + });␊ + ␊ + const oText70 = new Text70({␊ + text: "Foo",␊ + });␊ + ␊ + const oText71 = new Text71({␊ + text: "Foo",␊ + });␊ + ␊ + const oText72 = new Text72({␊ + text: "Foo",␊ + });␊ + ␊ + const oText73 = new Text73({␊ + text: "Foo",␊ + });␊ + ␊ + const oText74 = new Text74({␊ + text: "Foo",␊ + });␊ + ␊ + const oText75 = new Text75({␊ + text: "Foo",␊ + });␊ + ␊ + const oText76 = new Text76({␊ + text: "Foo",␊ + });␊ + ␊ + const oText77 = new Text77({␊ + text: "Foo",␊ + });␊ + ␊ + const oText78 = new Text78({␊ + text: "Foo",␊ + });␊ + ␊ + const oText79 = new Text79({␊ + text: "Foo",␊ + });␊ + ␊ + const oText80 = new Text80({␊ + text: "Foo",␊ + });␊ + ␊ + const oText81 = new Text81({␊ + text: "Foo",␊ + });␊ + ␊ + const oText82 = new Text82({␊ + text: "Foo",␊ + });␊ + ␊ + const oText83 = new Text83({␊ + text: "Foo",␊ + });␊ + ␊ + const oText84 = new Text84({␊ + text: "Foo",␊ + });␊ + ␊ + const oText85 = new Text85({␊ + text: "Foo",␊ + });␊ + ␊ + const oText86 = new Text86({␊ + text: "Foo",␊ + });␊ + ␊ + const oText87 = new Text87({␊ + text: "Foo",␊ + });␊ + ␊ + const oText88 = new Text88({␊ + text: "Foo",␊ + });␊ + ␊ + const oText89 = new Text89({␊ + text: "Foo",␊ + });␊ + ␊ + const oText90 = new Text90({␊ + text: "Foo",␊ + });␊ + ␊ + const oText91 = new Text91({␊ + text: "Foo",␊ + });␊ + ␊ + const oText92 = new Text92({␊ + text: "Foo",␊ + });␊ + ␊ + const oText93 = new Text93({␊ + text: "Foo",␊ + });␊ + ␊ + const oText94 = new Text94({␊ + text: "Foo",␊ + });␊ + ␊ + const oText95 = new Text95({␊ + text: "Foo",␊ + });␊ + ␊ + const oText96 = new Text96({␊ + text: "Foo",␊ + });␊ + ␊ + const oText97 = new Text97({␊ + text: "Foo",␊ + });␊ + ␊ + const oText98 = new Text98({␊ + text: "Foo",␊ + });␊ + ␊ + const oText99 = new Text99({␊ + text: "Foo",␊ + });␊ + ␊ + const oText100 = new Text100({␊ + text: "Foo",␊ + });␊ + ␊ + const oText101 = new Text101({␊ + text: "Foo",␊ + });␊ + ␊ + const oText102 = new Text102({␊ + text: "Foo",␊ + });␊ + ␊ + const oText103 = new Text103({␊ + text: "Foo",␊ + });␊ + ␊ + const oView = new View({␊ + controllerName: "com.myapp.controller.Main",␊ + content: [␊ + oText,␊ + oText0,␊ + oText1,␊ + oText2,␊ + oText3,␊ + oText4,␊ + oText5,␊ + oText6,␊ + oText7,␊ + oText8,␊ + oText9,␊ + oText10,␊ + oText11,␊ + oText12,␊ + oText13,␊ + oText14,␊ + oText15,␊ + oText16,␊ + oText17,␊ + oText18,␊ + oText19,␊ + oText20,␊ + oText21,␊ + oText22,␊ + oText23,␊ + oText24,␊ + oText25,␊ + oText26,␊ + oText27,␊ + oText28,␊ + oText29,␊ + oText30,␊ + oText31,␊ + oText32,␊ + oText33,␊ + oText34,␊ + oText35,␊ + oText36,␊ + oText37,␊ + oText38,␊ + oText39,␊ + oText40,␊ + oText41,␊ + oText42,␊ + oText43,␊ + oText44,␊ + oText45,␊ + oText46,␊ + oText47,␊ + oText48,␊ + oText49,␊ + oText50,␊ + oText51,␊ + oText52,␊ + oText53,␊ + oText54,␊ + oText55,␊ + oText56,␊ + oText57,␊ + oText58,␊ + oText59,␊ + oText60,␊ + oText61,␊ + oText62,␊ + oText63,␊ + oText64,␊ + oText65,␊ + oText66,␊ + oText67,␊ + oText68,␊ + oText69,␊ + oText70,␊ + oText71,␊ + oText72,␊ + oText73,␊ + oText74,␊ + oText75,␊ + oText76,␊ + oText77,␊ + oText78,␊ + oText79,␊ + oText80,␊ + oText81,␊ + oText82,␊ + oText83,␊ + oText84,␊ + oText85,␊ + oText86,␊ + oText87,␊ + oText88,␊ + oText89,␊ + oText90,␊ + oText91,␊ + oText92,␊ + oText93,␊ + oText94,␊ + oText95,␊ + oText96,␊ + oText97,␊ + oText98,␊ + oText99,␊ + oText100,␊ + oText101,␊ + oText102,␊ + oText103,␊ + ],␊ + });␊ + ␊ + export default oView;` + +> map + + { + file: 'LargeXMLViewUniqueIdentifiers.view.js', + mappings: 'AAQC,8BAAmB;AACnB,+BAAmB;AACnB,+BAAmB;AASnB,gCAAmB;AA0FnB,iCAAmB;AACnB,iCAAmB;AACnB,iCAAmB;AACnB,iCAAmB;AA5FnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AAjBnB,+BAAmB;AAkBnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AACnB,gCAAmB;AA1BnB,+BAAmB;AA2BnB,gCA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AAmB;IAAb,YAAU;;;gBAChB,YAAmB;IAAb,YAAU;;;gBAChB,YAAmB;IAAb,YAAU;;;gBAChB,YAAmB;IAAb,YAAU;;;gBAChB,YAAmB;IAAb,YAAU;;;gBAChB,YAAmB;IAAb,YAAU;;;gBAChB,YAAmB;IAAb,YAAU;;;gBAChB,YAAmB;IAAb,YAAU;;;gBAChB,YAAmB;IAAb,YAAU;;;gBAChB,YAAmB;IAAb,YAAU;;;gBAChB,YAAmB;IAAb,YAAU;;;gBAChB,YAAmB;IAAb,YAAU;;;iBAChB,aAAmB;IAAb,YAAU;;;iBAChB,aAAmB;IAAb,YAAU;;;iBAChB,aAAmB;IAAb,YAAU;;;iBAChB,aAAmB;IAAb,YAAU;;;cAhHjB,UAKC;IADA,4CAA0C;IAI1C,OAAmB', + names: [], + sources: [ + 'LargeXMLViewUniqueIdentifiers.view.xml', + ], + version: 3, + } + +> messages + + [] + +> controllerByIdInfo + + Map {} + ## Transpile MultipleXmlns.fragment.xml > source diff --git a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.snap b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.snap index da5ef6579..17635ebf0 100644 Binary files a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.snap and b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.snap differ