Home
last modified time | relevance | path

Searched refs:text (Results 1 – 25 of 79) sorted by relevance

1234

/arkcompiler/runtime_core/libark_defect_scan_aux/tests/across_abc_test/
Duser_input.js18 constructor(text) { argument
19 this.text = text;
23 return this.text;
26 setText(text) { argument
27 this.text = text;
/arkcompiler/ets_frontend/ts2panda/src/expression/
DtemplateExpression.ts21 let text = "";
23 text = expr.head.rawText!;
25 text = expr.rawText!;
28 text = text.replace(/(\r?\n|\r)/gm, "\n");
29 pandaGen.loadAccumulatorString(expr, text);
33 let text = "";
35 text = expr.head.text;
37 text = expr.text;
40 if (text.indexOf("\\u{") != -1) {
41 text = eval("'" + text + "'");
[all …]
DbigIntLiteral.ts21 let text = jshelpers.getTextOfIdentifierOrLiteral(lit);
22 text = text.substring(0, text.length-1);
23 pandaGen.loadAccumulatorBigInt(lit, text);
DstringLiteral.ts21 let text = jshelpers.getTextOfIdentifierOrLiteral(lit);
22 pandaGen.loadAccumulatorString(lit, text);
DnumericLiteral.ts39 let text = jshelpers.getTextOfIdentifierOrLiteral(lit);
40 let value = Number.parseFloat(text);
/arkcompiler/runtime_core/compiler/tests/js/
DregallocTryTest.js40 var text = ""; variable
43 text += car[i] + x + y;
48 var text = "";
50 text = "number is invalid";
52 text = (x < 18) ? "young" : "old";
59 let text = "";
61 text += x;
64 text += "The number is " + i;
68 text += "The number is " + i;
DstyleTryCatch.js40 var text = ""; variable
43 text += car[i] + x + y;
76 var text = "";
79 text += car[i] + x + y;
82 text += car[i] + x + y;
85 text += car[i] + x + y;
DregallocTest.js44 var text = "";
47 text += car[i] + x + y;
49 return text;
DtestTryCatch.js40 var text = ""; variable
43 text += car[i] + x + y;
/arkcompiler/runtime_core/libark_defect_scan_aux/tests/across_function_test/
Dacross_function_test.js36 constructor(text) { argument
37 this.text = text;
41 return this.text;
44 setText(text) { argument
45 this.text = text;
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DsuperCallWithCommentEmit01.ts22 constructor(public text: string) { }
26 constructor(text: string) {
28 super(text)
29 AssertType(super(text), "void");
31 AssertType(text, "string");
DstringLiteralPropertyNameWithLineContinuation1.ts23 AssertType({'text\':'hello'}, "{ text: string; }");
24 AssertType('text\', "string");
30 x.text = "bar"
31 AssertType(x.text = "bar", "string");
32 AssertType(x.text, "string");
DtargetTypeObjectLiteralToAny.ts29 AssertType(TypeScriptKeywords.forEach(function(keyword) { result.push({text:keyword, type:"k…
31 AssertType(function(keyword) { result.push({text:keyword, type:"keyword"}); // this should n…
34 …result.push({text:keyword, type:"keyword"}); // this should not cause a crash - push should be typ…
35 AssertType(result.push({text:keyword, type:"keyword"}), "any");
37 AssertType({text:keyword, type:"keyword"}, "{ text: string; type: string; }");
38 AssertType(text, "string");
DcontrolFlowPropertyDeclarations.ts245 let text = ''
246 AssertType(text, "string");
256 text = text
257 AssertType(text, "string");
258 AssertType(text .replace(/\r/g, '') .replace(/( {2,}|\n|\t|\{|\})/g, function(whitesp…
259 AssertType(text .replace(/\r/g, '') .replace, "{ (union, string): string; (union, (st…
260 AssertType(text .replace(/\r/g, ''), "string");
261 AssertType(text .replace, "{ (union, string): string; (union, (string, ...any[]) => string):…
262 AssertType(text = text .replace(/\r/g, '') .replace(/( {2,}|\n|\t|\{|\})/g, function(…
285 if (text.indexOf('\n') > -1) {
[all …]
DdestructuringTypeGuardFlow.ts45 const { bar, baz, nested: {a, b: text} } = aFoo;
51 AssertType(text, "string");
70 const bAgain: string = text;
72 AssertType(text, "string");
89 const { bar, baz, nested: {a, b: text} } = bBar.elem2;
95 AssertType(text, "string");
115 const bAgain: string = text;
117 AssertType(text, "string");
DlocalRequireFunction.ts32 const text = fs.readFileSync("/a/b/c"); constant
33 AssertType(text, "error");
/arkcompiler/ets_frontend/ts2panda/src/
DsyntaxCheckHelper.ts51 export function isIncludeOctalEscapeSequence(text: string): boolean {
53 if (!text.match(reg)) {
59 while (index < text.length) {
60 if (text[index] === '\\' && index != text.length - 1) {
61 if (text[index + 1] === "\\") {
63 } else if (text[index + 1] >= '0' && text[index + 1] <= '7') {
237 export function isIncludeBackslash8Or9InString(text: string): boolean {
241 while (index < text.length) {
242 if (text[index] === '\\' && index != text.length - 1) {
243 if (text[index + 1] === "\\") {
[all …]
DsyntaxCheckerForStrcitMode.ts51 function checkString(node: ts.Node, text: string): void {
53 if (isIncludeOctalEscapeSequence(text)) {
57 if (isIncludeOctalEscapeSequence(text)) {
68 let text = jshelpers.getTextOfNode(node);
69 checkString(node, text);
171 let text = jshelpers.getTextOfNode(expr);
172 checkString(expr, text.substring(1, text.length - 1));
/arkcompiler/ets_frontend/arkguard/src/utils/
DOhsUtil.ts94 initializer.left.expression.expression.text !== 'globalThis') {
99 initializer.left.expression.name.text !== 'requireNapi') {
108 if (isStringLiteral(arg) && arg.text === moduleName.substring('@ohos.'.length)) {
120 initializer.expression.text !== '_interopRequireDefault') {
129 if (!isIdentifier(arg.expression) || arg.expression.text !== 'requireModule') {
134 if (!isStringLiteral(innerArg) || innerArg.text !== moduleName) {
163 if (isIdentifier(expression) && expression.text === 'ViewPU') {
191 propertySet.add(memberName.text);
195 propertySet.add(memberName.text);
196 stringPropsSet.add(memberName.text);
[all …]
DScopeAnalyzer.ts285 let labelName: string = '$' + scope.labels.length + '_' + node.label.text;
287 'name': node.label.text,
473 current.importNames.add(node.propertyName.text);
475 current.importNames.add(node.name.text);
507 current.importNames.add(bindingElement.name.text);
523 current.exportNames.add(node.name.text);
528 let labelName: string = node?.label?.text ?? '';
597 let scopeName: string = node.name.text ?? '$' + current.children.length;
616 let scopeName: string = node.name.text ?? '$' + current.children.length;
637 if (def.name === param.text) {
[all …]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_info.cpp274 void PGOMethodInfo::ProcessToText(std::string &text) const in ProcessToText()
276 text += std::to_string(GetMethodId().GetOffset()); in ProcessToText()
277 text += ELEMENT_SEPARATOR; in ProcessToText()
278 text += std::to_string(GetCount()); in ProcessToText()
279 text += ELEMENT_SEPARATOR; in ProcessToText()
280 text += GetSampleModeToString(); in ProcessToText()
281 text += ELEMENT_SEPARATOR; in ProcessToText()
282 text += GetMethodName(); in ProcessToText()
418 void PGOMethodTypeSet::ProcessToText(std::string &text) const in ProcessToText()
426 text += ARRAY_START + SPACE; in ProcessToText()
[all …]
/arkcompiler/runtime_core/tests/fuzztest/jsonobjectctor1_fuzzer/
Djsonobjectctor1_fuzzer.cpp23 std::string text(data, data + size); in JsonObjectCtor1FuzzTest() local
24 panda::JsonObject json_object(text); in JsonObjectCtor1FuzzTest()
/arkcompiler/runtime_core/ldscripts/
Dpanda.ld24 *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
50 .text : { *(.text .stub .text.*) }
Dpanda_test_asan.ld142 *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
171 .text :
173 *(.text.unlikely .text.*_unlikely .text.unlikely.*)
174 *(.text.exit .text.exit.*)
175 *(.text.startup .text.startup.*)
176 *(.text.hot .text.hot.*)
177 *(.text .stub .text.* .gnu.linkonce.t.*)
/arkcompiler/ets_frontend/ts2panda/src/base/
Dutil.ts99 export function addUnicodeEscape(text: string): string {
102 let len = text.length;
105 if (text[secondIdx] === '\\' && secondIdx + 1 != len && text[secondIdx + 1] === 'u') {
106 if (secondIdx != 0 && text[secondIdx - 1] === '\\') {
107 newText += text.substr(firstIdx, secondIdx - firstIdx) + "\\\\" + "\\u";
109 newText += text.substr(firstIdx, secondIdx - firstIdx) + "\\" + "\\u";
119 newText += text.substr(firstIdx);

1234