Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd38f992

Browse files
authored
Fix unquote (#2338)
1 parentddf0b72 commitd38f992

File tree

37 files changed

+95
-470
lines changed

37 files changed

+95
-470
lines changed

‎internal/stringutil/util.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func StripQuotes(name string) string {
217217
returnname
218218
}
219219

220-
varmatchSlashSomething=regexp.MustCompile(`\.`)
220+
varmatchSlashSomething=regexp.MustCompile(`\\.`)
221221

222222
funcmatchSlashReplacer(instring)string {
223223
returnin[1:]

‎testdata/baselines/reference/submodule/compiler/classStaticPropertyAccess.symbols‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class A {
55
>A : Symbol(A, Decl(classStaticPropertyAccess.ts, 0, 0))
66

77
public static "\""() {}
8-
>"\"" : Symbol(A["\\\""], Decl(classStaticPropertyAccess.ts, 0, 9))
8+
>"\"" : Symbol(A["\""], Decl(classStaticPropertyAccess.ts, 0, 9))
99

1010
public static x: number = 1;
1111
>x : Symbol(A.x, Decl(classStaticPropertyAccess.ts, 1, 27))

‎testdata/baselines/reference/submodule/compiler/classStaticPropertyAccess.symbols.diff‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎testdata/baselines/reference/submodule/compiler/numericClassMembers1.symbols‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class C236 {
2525
>C236 : Symbol(C236, Decl(numericClassMembers1.ts, 8, 1))
2626

2727
'0.0' = 1;
28-
>'0.0' : Symbol(C236["00"], Decl(numericClassMembers1.ts, 10, 12))
28+
>'0.0' : Symbol(C236["0.0"], Decl(numericClassMembers1.ts, 10, 12))
2929

3030
'0' = 2;
3131
>'0' : Symbol(C236["0"], Decl(numericClassMembers1.ts, 11, 14))

‎testdata/baselines/reference/submodule/compiler/numericClassMembers1.symbols.diff‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'0.0' = 1;
77
->'0.0' : Symbol(C236['0.0'], Decl(numericClassMembers1.ts, 10, 12))
8-
+>'0.0' : Symbol(C236["00"], Decl(numericClassMembers1.ts, 10, 12))
8+
+>'0.0' : Symbol(C236["0.0"], Decl(numericClassMembers1.ts, 10, 12))
99

1010
'0' = 2;
1111
->'0' : Symbol(C236['0'], Decl(numericClassMembers1.ts, 11, 14))

‎testdata/baselines/reference/submodule/compiler/propertiesAndIndexersForNumericNames.symbols‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ class C {
1616
>"-1" : Symbol(C["-1"], Decl(propertiesAndIndexersForNumericNames.ts, 5, 34))
1717

1818
public "-2.5": string = "negative number"; // Error
19-
>"-2.5" : Symbol(C["-25"], Decl(propertiesAndIndexersForNumericNames.ts, 6, 44))
19+
>"-2.5" : Symbol(C["-2.5"], Decl(propertiesAndIndexersForNumericNames.ts, 6, 44))
2020

2121
public "3.141592": string = "pi-sitive number"; // Error
22-
>"3.141592" : Symbol(C["3141592"], Decl(propertiesAndIndexersForNumericNames.ts, 7, 46))
22+
>"3.141592" : Symbol(C["3.141592"], Decl(propertiesAndIndexersForNumericNames.ts, 7, 46))
2323

2424
public "1.2e-20": string = "really small number"; // Error
25-
>"1.2e-20" : Symbol(C["12e-20"], Decl(propertiesAndIndexersForNumericNames.ts, 8, 51))
25+
>"1.2e-20" : Symbol(C["1.2e-20"], Decl(propertiesAndIndexersForNumericNames.ts, 8, 51))
2626

2727
public "Infinity": string = "A gillion"; // Error
2828
>"Infinity" : Symbol(C["Infinity"], Decl(propertiesAndIndexersForNumericNames.ts, 9, 53))
@@ -94,6 +94,6 @@ class C {
9494
>"0b101101001010" : Symbol(C["0b101101001010"], Decl(propertiesAndIndexersForNumericNames.ts, 37, 47))
9595

9696
public "0.000000000000000000012": string = "should've been in exponential form"; // No error
97-
>"0.000000000000000000012" : Symbol(C["0000000000000000000012"], Decl(propertiesAndIndexersForNumericNames.ts, 38, 56))
97+
>"0.000000000000000000012" : Symbol(C["0.000000000000000000012"], Decl(propertiesAndIndexersForNumericNames.ts, 38, 56))
9898
}
9999

‎testdata/baselines/reference/submodule/compiler/propertiesAndIndexersForNumericNames.symbols.diff‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

‎testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.symbols‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module JustStrings {
1313

1414
class T { '1.': string; }
1515
>T : Symbol(T, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 4, 28))
16-
>'1.' : Symbol(T["1"], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 5, 13))
16+
>'1.' : Symbol(T["1."], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 5, 13))
1717

1818
var s: S;
1919
>s : Symbol(s, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 6, 7))
@@ -30,7 +30,7 @@ module JustStrings {
3030

3131
interface T2 { '1.0': string; baz?: string }
3232
>T2 : Symbol(T2, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 9, 46))
33-
>'1.0' : Symbol(T2["10"], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 10, 18))
33+
>'1.0' : Symbol(T2["1.0"], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 10, 18))
3434
>baz : Symbol(T2.baz, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 10, 33))
3535

3636
var s2: S2;

‎testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.symbols.diff‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class T { '1.': string; }
1111
>T : Symbol(T, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 4, 28))
1212
->'1.' : Symbol(T['1.'], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 5, 13))
13-
+>'1.' : Symbol(T["1"], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 5, 13))
13+
+>'1.' : Symbol(T["1."], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 5, 13))
1414

1515
var s: S;
1616
>s : Symbol(s, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 6, 7))
@@ -25,7 +25,7 @@
2525
interface T2 { '1.0': string; baz?: string }
2626
>T2 : Symbol(T2, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 9, 46))
2727
->'1.0' : Symbol(T2['1.0'], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 10, 18))
28-
+>'1.0' : Symbol(T2["10"], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 10, 18))
28+
+>'1.0' : Symbol(T2["1.0"], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 10, 18))
2929
>baz : Symbol(T2.baz, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 10, 33))
3030

3131
var s2: S2;

‎testdata/baselines/reference/submodule/conformance/numericIndexerConstrainsPropertyDeclarations.symbols‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ class C {
4141
>2.0 : Symbol(C[2.0], Decl(numericIndexerConstrainsPropertyDeclarations.ts, 16, 16))
4242

4343
"3.0": string; // ok
44-
>"3.0" : Symbol(C["30"], Decl(numericIndexerConstrainsPropertyDeclarations.ts, 17, 16))
44+
>"3.0" : Symbol(C["3.0"], Decl(numericIndexerConstrainsPropertyDeclarations.ts, 17, 16))
4545

4646
"4.0": number; // error
47-
>"4.0" : Symbol(C["40"], Decl(numericIndexerConstrainsPropertyDeclarations.ts, 18, 18))
47+
>"4.0" : Symbol(C["4.0"], Decl(numericIndexerConstrainsPropertyDeclarations.ts, 18, 18))
4848

4949
3.0: MyNumber // error
5050
>3.0 : Symbol(C[3.0], Decl(numericIndexerConstrainsPropertyDeclarations.ts, 19, 18))
@@ -116,10 +116,10 @@ interface I {
116116
>foo : Symbol(I.foo, Decl(numericIndexerConstrainsPropertyDeclarations.ts, 51, 15))
117117

118118
"3.0": string; // ok
119-
>"3.0" : Symbol(I["30"], Decl(numericIndexerConstrainsPropertyDeclarations.ts, 52, 18))
119+
>"3.0" : Symbol(I["3.0"], Decl(numericIndexerConstrainsPropertyDeclarations.ts, 52, 18))
120120

121121
"4.0": number; // error
122-
>"4.0" : Symbol(I["40"], Decl(numericIndexerConstrainsPropertyDeclarations.ts, 53, 18))
122+
>"4.0" : Symbol(I["4.0"], Decl(numericIndexerConstrainsPropertyDeclarations.ts, 53, 18))
123123

124124
f: MyNumber; // error
125125
>f : Symbol(I.f, Decl(numericIndexerConstrainsPropertyDeclarations.ts, 54, 18))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp