FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gpython/symtable/stringer.go at v0.0.3 · go-python/gpython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
go-python
/
gpython
Public
Notifications
You must be signed in to change notification settings
Fork
105
Star
1k
Code
Issues
49
Pull requests
5
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
gpython
/
symtable
/
stringer.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (22 loc) · 918 Bytes
Breadcrumbs
gpython
/
symtable
/
stringer.go
Copy path
File metadata and controls
31 lines (22 loc) · 918 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2018 The go-python Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// generated by stringer -type=Scope,BlockType -output stringer.go; DO NOT EDIT
package
symtable
import
"fmt"
const
_Scope_name
=
"ScopeInvalidScopeLocalScopeGlobalExplicitScopeGlobalImplicitScopeFreeScopeCell"
var
_Scope_index
=
[
...
]
uint8
{
0
,
12
,
22
,
41
,
60
,
69
,
78
}
func
(
i
Scope
)
String
()
string
{
if
i
+
1
>=
Scope
(
len
(
_Scope_index
)) {
return
fmt
.
Sprintf
(
"Scope(%d)"
,
i
)
}
return
_Scope_name
[
_Scope_index
[
i
]:
_Scope_index
[
i
+
1
]]
}
const
_BlockType_name
=
"FunctionBlockClassBlockModuleBlock"
var
_BlockType_index
=
[
...
]
uint8
{
0
,
13
,
23
,
34
}
func
(
i
BlockType
)
String
()
string
{
if
i
+
1
>=
BlockType
(
len
(
_BlockType_index
)) {
return
fmt
.
Sprintf
(
"BlockType(%d)"
,
i
)
}
return
_BlockType_name
[
_BlockType_index
[
i
]:
_BlockType_index
[
i
+
1
]]
}
Back
|
FazBrowse Home
|
New Git URL