1
1
mirror of https://github.com/github/semantic.git synced 2025-01-01 19:55:34 +03:00

Rename Accessibility -> Visibility

This commit is contained in:
Rick Winfrey 2018-12-17 18:24:35 -08:00
parent 5ec10f6fc4
commit 3779e79d7c
7 changed files with 15 additions and 13 deletions

View File

@ -71,17 +71,17 @@ instance Declarations1 Function where
instance FreeVariables1 Function where
liftFreeVariables freeVariables f@Function{..} = foldMap freeVariables f `Set.difference` foldMap freeVariables functionParameters
data Accessibility a = Public { unPublic :: a }
data Visibility a = Public { unPublic :: a }
| Protected { unProtected :: a }
| Private { unPrivate :: a }
| Unknown
deriving (Diffable, Eq, Ord, Show, Foldable, Traversable, Functor, Generic1, Hashable1, ToJSONFields1, Named1, Message1, NFData1)
deriving (Diffable, Eq, Ord, Show, Foldable, Traversable, FreeVariables1, Functor, Generic1, Hashable1, ToJSONFields1, Named1, Message1, NFData1)
instance Eq1 Accessibility where liftEq = genericLiftEq
instance Ord1 Accessibility where liftCompare = genericLiftCompare
instance Show1 Accessibility where liftShowsPrec = genericLiftShowsPrec
instance Eq1 Visibility where liftEq = genericLiftEq
instance Ord1 Visibility where liftCompare = genericLiftCompare
instance Show1 Visibility where liftShowsPrec = genericLiftShowsPrec
instance Evaluatable Accessibility
instance Evaluatable Visibility
data Method a = Method { methodContext :: [a]
, methodAccessibility :: a

View File

@ -31,13 +31,13 @@ import Data.ImportPath (importPath, defaultAlias)
type Syntax =
'[ Comment.Comment
, Declaration.Accessibility
, Declaration.Constructor
, Declaration.Function
, Declaration.Method
, Declaration.MethodSignature
, Declaration.Type
, Declaration.TypeAlias
, Declaration.Visibility
, Expression.Plus
, Expression.Minus
, Expression.Times

View File

@ -42,11 +42,11 @@ import Proto3.Suite (Named (..), Named1 (..))
type Syntax =
'[ Comment.Comment
, Declaration.Accessibility
, Declaration.Class
, Declaration.InterfaceDeclaration
, Declaration.Method
, Declaration.VariableDeclaration
, Declaration.Visibility
, Expression.Plus
, Expression.Minus
, Expression.Times

View File

@ -39,9 +39,9 @@ import Prologue hiding (for)
-- | Small version of Ruby syntax for testing the code rewriting pipeline.
type Syntax =
'[ Comment.Comment
, Declaration.Accessibility
, Declaration.Function
, Declaration.Method
, Declaration.Visibility
, Expression.Minus
, Expression.Plus
, Expression.Times

View File

@ -43,6 +43,7 @@ type Syntax = '[
, Declaration.Function
, Declaration.Method
, Declaration.VariableDeclaration
, Declaration.Visibility
, Expression.Plus
, Expression.Minus
, Expression.Times

View File

@ -44,6 +44,7 @@ type Syntax = '[
Comment.Comment
, Declaration.Function
, Declaration.Method
, Declaration.Visibility
, Directive.File
, Directive.Line
, Expression.Plus

View File

@ -42,7 +42,6 @@ import Proto3.Suite (Named1(..), Named(..))
type Syntax = '[
Comment.Comment
, Comment.HashBang
, Declaration.Accessibility
, Declaration.Class
, Declaration.Function
, Declaration.Method
@ -51,6 +50,7 @@ type Syntax = '[
, Declaration.PublicFieldDefinition
, Declaration.VariableDeclaration
, Declaration.TypeAlias
, Declaration.Visibility
, Expression.Plus
, Expression.Minus
, Expression.Times