1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Case Api as generated

This commit is contained in:
Timothy Clem 2019-02-12 12:49:34 -08:00
parent 648af915bb
commit cc78c0d8d5
15 changed files with 33 additions and 33 deletions

View File

@ -183,13 +183,13 @@ library
-- High-level flow & operational functionality (logging, stats, etc.)
, Semantic.Analysis
-- API
, Semantic.API
, Semantic.API.Diffs
, Semantic.API.Helpers
, Semantic.API.LegacyTypes
, Semantic.API.Symbols
, Semantic.API.Terms
, Semantic.API.TOCSummaries
, Semantic.Api
, Semantic.Api.Diffs
, Semantic.Api.Helpers
, Semantic.Api.LegacyTypes
, Semantic.Api.Symbols
, Semantic.Api.Terms
, Semantic.Api.TOCSummaries
, Semantic.Api.V1.CodeAnalysisPB
, Semantic.AST
, Semantic.CLI

View File

@ -18,7 +18,7 @@ import Data.Patch
import Data.String (IsString (..))
import Data.Term
import Prologue
import Semantic.API.Helpers
import Semantic.Api.Helpers
import Semantic.Api.V1.CodeAnalysisPB
import qualified Data.Text as T

View File

@ -1,4 +1,4 @@
module Semantic.API
module Semantic.Api
(
module DiffsAPI
, module SymbolsAPI
@ -7,8 +7,8 @@ module Semantic.API
, module Types
) where
import Semantic.API.Diffs as DiffsAPI
import Semantic.API.Symbols as SymbolsAPI
import Semantic.API.Terms as TermsAPI
import Semantic.API.TOCSummaries as TOCSummariesAPI
import Semantic.Api.Diffs as DiffsAPI
import Semantic.Api.Symbols as SymbolsAPI
import Semantic.Api.Terms as TermsAPI
import Semantic.Api.TOCSummaries as TOCSummariesAPI
import Semantic.Api.V1.CodeAnalysisPB as Types hiding (Language(..))

View File

@ -1,5 +1,5 @@
{-# LANGUAGE GADTs, ConstraintKinds, TypeOperators, RankNTypes #-}
module Semantic.API.Diffs
module Semantic.Api.Diffs
( parseDiffBuilder
, DiffOutputFormat(..)
, diffGraph
@ -33,7 +33,7 @@ import Prologue
import Rendering.Graph
import Rendering.JSON hiding (JSON)
import qualified Rendering.JSON
import Semantic.API.Helpers
import Semantic.Api.Helpers
import Semantic.Api.V1.CodeAnalysisPB hiding (Blob, BlobPair, Language(..))
import qualified Semantic.Api.V1.CodeAnalysisPB as API
import Semantic.Task as Task

View File

@ -1,5 +1,5 @@
{-# LANGUAGE LambdaCase #-}
module Semantic.API.Helpers
module Semantic.Api.Helpers
( spanToSpan
, spanToLegacySpan
, toChangeType
@ -16,7 +16,7 @@ import Data.Source (fromText)
import qualified Data.Span as Data
import qualified Data.Text as T
import Data.These
import qualified Semantic.API.LegacyTypes as Legacy
import qualified Semantic.Api.LegacyTypes as Legacy
import qualified Semantic.Api.V1.CodeAnalysisPB as API
spanToSpan :: Data.Span -> Maybe API.Span

View File

@ -1,5 +1,5 @@
{-# LANGUAGE DerivingVia, DeriveAnyClass, DuplicateRecordFields #-}
module Semantic.API.LegacyTypes
module Semantic.Api.LegacyTypes
( DiffTreeRequest(..)
, ParseTreeRequest(..)
, ParseTreeSymbolResponse(..)

View File

@ -1,5 +1,5 @@
{-# LANGUAGE GADTs, TypeOperators, DerivingStrategies #-}
module Semantic.API.Symbols
module Semantic.Api.Symbols
( legacyParseSymbols
, parseSymbols
, parseSymbolsBuilder
@ -18,9 +18,9 @@ import qualified Data.Vector as V
import Data.Text (pack)
import Parsing.Parser
import Prologue
import Semantic.API.Helpers
import qualified Semantic.API.LegacyTypes as Legacy
import Semantic.API.Terms (ParseEffects, doParse)
import Semantic.Api.Helpers
import qualified Semantic.Api.LegacyTypes as Legacy
import Semantic.Api.Terms (ParseEffects, doParse)
import Semantic.Api.V1.CodeAnalysisPB hiding (Blob)
import qualified Semantic.Api.V1.CodeAnalysisPB as API
import Semantic.Task

View File

@ -1,5 +1,5 @@
{-# LANGUAGE GADTs, TypeOperators, DerivingStrategies #-}
module Semantic.API.TOCSummaries (diffSummary, legacyDiffSummary, diffSummaryBuilder) where
module Semantic.Api.TOCSummaries (diffSummary, legacyDiffSummary, diffSummaryBuilder) where
import Analysis.TOCSummary (Declaration, declarationAlgebra)
import Control.Effect.Error
@ -12,8 +12,8 @@ import Data.Span (emptySpan)
import qualified Data.Text as T
import qualified Data.Vector as V
import Rendering.TOC
import Semantic.API.Diffs
import Semantic.API.Helpers
import Semantic.Api.Diffs
import Semantic.Api.Helpers
import Semantic.Api.V1.CodeAnalysisPB hiding (Blob, BlobPair)
import qualified Semantic.Api.V1.CodeAnalysisPB as API
import Semantic.Task as Task

View File

@ -1,5 +1,5 @@
{-# LANGUAGE ConstraintKinds, GADTs, TypeOperators, DerivingStrategies #-}
module Semantic.API.Terms
module Semantic.Api.Terms
(
termGraph
, parseTermBuilder
@ -36,7 +36,7 @@ import Prologue
import Rendering.Graph
import Rendering.JSON hiding (JSON)
import qualified Rendering.JSON
import Semantic.API.Helpers
import Semantic.Api.Helpers
import Semantic.Api.V1.CodeAnalysisPB hiding (Blob, Language (..))
import qualified Semantic.Api.V1.CodeAnalysisPB as API
import Semantic.Task

View File

@ -10,7 +10,7 @@ import Data.Handle
import Data.Project
import Options.Applicative hiding (style)
import Prologue
import Semantic.API hiding (File)
import Semantic.Api hiding (File)
import qualified Semantic.AST as AST
import Semantic.Config
import qualified Semantic.Graph as Graph

View File

@ -17,7 +17,7 @@ import Data.Quieterm
import Data.Typeable (cast)
import Data.Void
import Parsing.Parser
import Semantic.API (TermOutputFormat (..), parseTermBuilder)
import Semantic.Api (TermOutputFormat (..), parseTermBuilder)
import Semantic.Config (Config (..), Options (..), defaultOptions)
import qualified Semantic.IO as IO
import Semantic.Task

View File

@ -24,7 +24,7 @@ import qualified Data.Syntax as Syntax
import qualified Data.Syntax.Declaration as Declaration
import Rendering.TOC
import Semantic.Config
import Semantic.API (diffSummaryBuilder)
import Semantic.Api (diffSummaryBuilder)
import Serializing.Format as Format
import SpecHelpers

View File

@ -4,7 +4,7 @@ import Control.Monad (when)
import qualified Data.ByteString as B
import Data.ByteString.Builder
import Data.Foldable (for_)
import Semantic.API hiding (File, Blob, BlobPair)
import Semantic.Api hiding (File, Blob, BlobPair)
import Semantic.CLI
import Semantic.IO
import Semantic.Task

View File

@ -2,7 +2,7 @@ module Semantic.Spec (spec) where
import Data.Diff
import Data.Patch
import Semantic.API hiding (Blob)
import Semantic.Api hiding (Blob)
import System.Exit
import SpecHelpers

View File

@ -82,7 +82,7 @@ import Data.Set (Set)
import qualified Semantic.IO as IO
import Semantic.Config (Config(..), optionsLogLevel)
import Semantic.Telemetry (LogQueue, StatQueue)
import Semantic.API hiding (File, Blob, BlobPair)
import Semantic.Api hiding (File, Blob, BlobPair)
import System.Exit (die)
import Control.Exception (displayException)