This change fixes a few mistakes in the old way of checking accessibility, and adds support for protected class visibility.
17 lines
573 B
Go
17 lines
573 B
Go
// Copyright 2016 Marapongo, Inc. All rights reserved.
|
|
|
|
package tokens
|
|
|
|
// Accessibility modifiers.
|
|
type Accessibility string // accessibility modifiers common to all.
|
|
const (
|
|
PublicAccessibility Accessibility = "public"
|
|
PrivateAccessibility Accessibility = "private"
|
|
)
|
|
|
|
type ClassMemberAccessibility Accessibility // accessibility modifiers for class members.
|
|
const (
|
|
PublicClassAccessibility ClassMemberAccessibility = "public"
|
|
PrivateClassAccessibility ClassMemberAccessibility = "private"
|
|
ProtectedClassAccessibility ClassMemberAccessibility = "protected"
|
|
)
|