-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from tdakkota/refactor/do-not-use-deprecated-a…
…st-object refactor: get rid of deprecated `ast.Object`
- Loading branch information
Showing
10 changed files
with
137 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
package testdata | ||
|
||
type Field struct{} | ||
|
||
type JustStruct struct { | ||
Tеst Field // want `identifier "Tеst" contain non-ASCII character: U\+0435 'е'` | ||
type _ struct { | ||
Tést int // want `identifier "Tést" contain non-ASCII character: U\+00E9 'é'` | ||
_, Tést2 int // want `identifier "Tést2" contain non-ASCII character: U\+00E9 'é'` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package testdata | ||
|
||
func TеstFunc() { // want `identifier "TеstFunc" contain non-ASCII character: U\+0435 'е'` | ||
func TéstFunc() {} // want `identifier "TéstFunc" contain non-ASCII character: U\+00E9 'é'` | ||
|
||
type _ interface { | ||
TéstFunc() // want `identifier "TéstFunc" contain non-ASCII character: U\+00E9 'é'` | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package testdata | ||
|
||
import téstImport "fmt" // want `identifier "téstImport" contain non-ASCII character: U\+00E9 'é'` | ||
|
||
var _ téstImport.Stringer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package testdata | ||
|
||
func _() { | ||
téstLabel: // want `identifier "téstLabel" contain non-ASCII character: U\+00E9 'é'` | ||
return | ||
goto téstLabel | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package téstdata // want `identifier "téstdata" contain non-ASCII character: U\+00E9 'é'` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package testdata | ||
|
||
type ( | ||
_ struct{} | ||
TéstStruct struct{} // want `identifier "TéstStruct" contain non-ASCII character: U\+00E9 'é'` | ||
TéstAlias = struct{} // want `identifier "TéstAlias" contain non-ASCII character: U\+00E9 'é'` | ||
|
||
_[_ any] struct{} | ||
_[TéstGeneric any] struct{} // want `identifier "TéstGeneric" contain non-ASCII character: U\+00E9 'é'` | ||
) | ||
|
||
func _[TéstGeneric any]() {} // want `identifier "TéstGeneric" contain non-ASCII character: U\+00E9 'é'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters