1
1
mirror of https://github.com/github/semantic.git synced 2025-01-04 21:47:07 +03:00

Fix a couple of indentation errors.

This commit is contained in:
Rob Rix 2019-10-18 18:23:24 -04:00
parent ffab2423b1
commit a337ba1eb6
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7
2 changed files with 178 additions and 178 deletions

View File

@ -29,107 +29,107 @@ import Source.Span
type Syntax =
[ Comment.Comment
, Declaration.Constructor
, Declaration.Function
, Declaration.Method
, Declaration.MethodSignature
, Declaration.Type
, Declaration.TypeAlias
, Expression.Plus
, Expression.Minus
, Expression.Times
, Expression.DividedBy
, Expression.Modulo
, Expression.Power
, Expression.Negate
, Expression.FloorDivision
, Expression.BOr
, Expression.BAnd
, Expression.BXOr
, Expression.LShift
, Expression.RShift
, Expression.UnsignedRShift
, Expression.Complement
, Expression.Call
, Expression.LessThan
, Expression.LessThanEqual
, Expression.GreaterThan
, Expression.GreaterThanEqual
, Expression.Equal
, Expression.StrictEqual
, Expression.Comparison
, Expression.Subscript
, Expression.Member
, Statement.PostDecrement
, Statement.PostIncrement
, Expression.MemberAccess
, Expression.And
, Expression.Not
, Expression.Or
, Expression.XOr
, Go.Syntax.Composite
, Go.Syntax.DefaultPattern
, Go.Syntax.Defer
, Go.Syntax.Field
, Go.Syntax.Go
, Go.Syntax.Label
, Go.Syntax.Package
, Go.Syntax.Receive
, Go.Syntax.ReceiveOperator
, Go.Syntax.Rune
, Go.Syntax.Select
, Go.Syntax.Send
, Go.Syntax.Slice
, Go.Syntax.TypeAssertion
, Go.Syntax.TypeConversion
, Go.Syntax.TypeSwitch
, Go.Syntax.TypeSwitchGuard
, Go.Syntax.Variadic
, Go.Type.BidirectionalChannel
, Go.Type.ReceiveChannel
, Go.Type.SendChannel
, Go.Syntax.Import
, Go.Syntax.QualifiedImport
, Go.Syntax.SideEffectImport
, Literal.Array
, Literal.Complex
, Literal.Float
, Literal.Hash
, Literal.Integer
, Literal.KeyValue
, Literal.Pointer
, Literal.Reference
, Literal.TextElement
, Statement.Assignment
, Statement.Break
, Statement.Continue
, Statement.For
, Statement.ForEach
, Statement.Goto
, Statement.If
, Statement.Match
, Statement.NoOp
, Statement.Pattern
, Statement.Return
, Statement.Statements
, Syntax.Context
, Syntax.Error
, Syntax.Empty
, Syntax.Identifier
, Type.Annotation
, Type.Array
, Type.Function
, Type.Interface
, Type.Map
, Type.Parenthesized
, Type.Pointer
, Type.Slice
, []
, Literal.String
, Literal.EscapeSequence
, Literal.Null
, Literal.Boolean
]
, Declaration.Constructor
, Declaration.Function
, Declaration.Method
, Declaration.MethodSignature
, Declaration.Type
, Declaration.TypeAlias
, Expression.Plus
, Expression.Minus
, Expression.Times
, Expression.DividedBy
, Expression.Modulo
, Expression.Power
, Expression.Negate
, Expression.FloorDivision
, Expression.BOr
, Expression.BAnd
, Expression.BXOr
, Expression.LShift
, Expression.RShift
, Expression.UnsignedRShift
, Expression.Complement
, Expression.Call
, Expression.LessThan
, Expression.LessThanEqual
, Expression.GreaterThan
, Expression.GreaterThanEqual
, Expression.Equal
, Expression.StrictEqual
, Expression.Comparison
, Expression.Subscript
, Expression.Member
, Statement.PostDecrement
, Statement.PostIncrement
, Expression.MemberAccess
, Expression.And
, Expression.Not
, Expression.Or
, Expression.XOr
, Go.Syntax.Composite
, Go.Syntax.DefaultPattern
, Go.Syntax.Defer
, Go.Syntax.Field
, Go.Syntax.Go
, Go.Syntax.Label
, Go.Syntax.Package
, Go.Syntax.Receive
, Go.Syntax.ReceiveOperator
, Go.Syntax.Rune
, Go.Syntax.Select
, Go.Syntax.Send
, Go.Syntax.Slice
, Go.Syntax.TypeAssertion
, Go.Syntax.TypeConversion
, Go.Syntax.TypeSwitch
, Go.Syntax.TypeSwitchGuard
, Go.Syntax.Variadic
, Go.Type.BidirectionalChannel
, Go.Type.ReceiveChannel
, Go.Type.SendChannel
, Go.Syntax.Import
, Go.Syntax.QualifiedImport
, Go.Syntax.SideEffectImport
, Literal.Array
, Literal.Complex
, Literal.Float
, Literal.Hash
, Literal.Integer
, Literal.KeyValue
, Literal.Pointer
, Literal.Reference
, Literal.TextElement
, Statement.Assignment
, Statement.Break
, Statement.Continue
, Statement.For
, Statement.ForEach
, Statement.Goto
, Statement.If
, Statement.Match
, Statement.NoOp
, Statement.Pattern
, Statement.Return
, Statement.Statements
, Syntax.Context
, Syntax.Error
, Syntax.Empty
, Syntax.Identifier
, Type.Annotation
, Type.Array
, Type.Function
, Type.Interface
, Type.Map
, Type.Parenthesized
, Type.Pointer
, Type.Slice
, []
, Literal.String
, Literal.EscapeSequence
, Literal.Null
, Literal.Boolean
]
newtype Term ann = Term { getTerm :: Term.Term (Sum Syntax) ann }

View File

@ -28,83 +28,83 @@ import Source.Span
type Syntax =
[ Comment.Comment
, Declaration.Class
, Declaration.Comprehension
, Declaration.Decorator
, Declaration.Function
, Declaration.RequiredParameter
, Expression.Plus
, Expression.Minus
, Expression.Times
, Expression.DividedBy
, Expression.Modulo
, Expression.Power
, Expression.Negate
, Expression.FloorDivision
, Expression.And
, Expression.Not
, Expression.Or
, Expression.XOr
, Expression.BAnd
, Expression.BOr
, Expression.BXOr
, Expression.LShift
, Expression.RShift
, Expression.Complement
, Expression.Call
, Expression.LessThan
, Expression.LessThanEqual
, Expression.GreaterThan
, Expression.GreaterThanEqual
, Expression.Equal
, Expression.StrictEqual
, Expression.Comparison
, Expression.Enumeration
, Expression.ScopeResolution
, Expression.MemberAccess
, Expression.Subscript
, Expression.Member
, Literal.Array
, Literal.Boolean
, Literal.Float
, Literal.Hash
, Literal.Integer
, Literal.KeyValue
, Literal.Null
, Literal.Set
, Literal.String
, Literal.TextElement
, Literal.Tuple
, Python.Syntax.Alias
, Python.Syntax.Ellipsis
, Python.Syntax.FutureImport
, Python.Syntax.Import
, Python.Syntax.QualifiedImport
, Python.Syntax.QualifiedAliasedImport
, Python.Syntax.Redirect
, Statement.Assignment
, Statement.Break
, Statement.Catch
, Statement.Continue
, Statement.Else
, Statement.Finally
, Statement.ForEach
, Statement.If
, Statement.Let
, Statement.NoOp
, Statement.Return
, Statement.Statements
, Statement.Throw
, Statement.Try
, Statement.While
, Statement.Yield
, Syntax.Context
, Syntax.Empty
, Syntax.Error
, Syntax.Identifier
, Type.Annotation
, []
]
, Declaration.Class
, Declaration.Comprehension
, Declaration.Decorator
, Declaration.Function
, Declaration.RequiredParameter
, Expression.Plus
, Expression.Minus
, Expression.Times
, Expression.DividedBy
, Expression.Modulo
, Expression.Power
, Expression.Negate
, Expression.FloorDivision
, Expression.And
, Expression.Not
, Expression.Or
, Expression.XOr
, Expression.BAnd
, Expression.BOr
, Expression.BXOr
, Expression.LShift
, Expression.RShift
, Expression.Complement
, Expression.Call
, Expression.LessThan
, Expression.LessThanEqual
, Expression.GreaterThan
, Expression.GreaterThanEqual
, Expression.Equal
, Expression.StrictEqual
, Expression.Comparison
, Expression.Enumeration
, Expression.ScopeResolution
, Expression.MemberAccess
, Expression.Subscript
, Expression.Member
, Literal.Array
, Literal.Boolean
, Literal.Float
, Literal.Hash
, Literal.Integer
, Literal.KeyValue
, Literal.Null
, Literal.Set
, Literal.String
, Literal.TextElement
, Literal.Tuple
, Python.Syntax.Alias
, Python.Syntax.Ellipsis
, Python.Syntax.FutureImport
, Python.Syntax.Import
, Python.Syntax.QualifiedImport
, Python.Syntax.QualifiedAliasedImport
, Python.Syntax.Redirect
, Statement.Assignment
, Statement.Break
, Statement.Catch
, Statement.Continue
, Statement.Else
, Statement.Finally
, Statement.ForEach
, Statement.If
, Statement.Let
, Statement.NoOp
, Statement.Return
, Statement.Statements
, Statement.Throw
, Statement.Try
, Statement.While
, Statement.Yield
, Syntax.Context
, Syntax.Empty
, Syntax.Error
, Syntax.Identifier
, Type.Annotation
, []
]
newtype Term ann = Term { getTerm :: Term.Term (Sum Syntax) ann }