Skip to content

Make StatementType a type alias instead of an int#5259

Merged
sougou merged 1 commit intovitessio:masterfrom
systay:tiny-refactoring
Oct 5, 2019
Merged

Make StatementType a type alias instead of an int#5259
sougou merged 1 commit intovitessio:masterfrom
systay:tiny-refactoring

Conversation

@systay
Copy link
Collaborator

@systay systay commented Oct 2, 2019

No description provided.

Signed-off-by: Andres Taylor <antaylor@squareup.com>
@systay systay requested a review from sougou as a code owner October 2, 2019 05:47
func StmtType(stmtType int) string {
switch stmtType {
func (s StatementType) String() string {
switch s {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should ideally do an array lookup instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants