All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.twilio.guardrail.languages.ScalaLanguage.scala Maven / Gradle / Ivy

The newest version!
package com.twilio.guardrail.languages

class ScalaLanguage extends LanguageAbstraction {

  type Statement = scala.meta.Stat

  type Import = scala.meta.Import

  // Terms

  type Term       = scala.meta.Term
  type TermName   = scala.meta.Term.Name
  type TermSelect = scala.meta.Term.Select
  type Expression = scala.meta.Term
  type Apply      = scala.meta.Term.Apply

  // Declarations
  type MethodDeclaration = scala.meta.Decl.Def

  // Definitions
  type Definition          = scala.meta.Defn
  type AbstractClass       = Nothing
  type ClassDefinition     = scala.meta.Defn.Class
  type InterfaceDefinition = Nothing
  type ObjectDefinition    = scala.meta.Defn.Object
  type Trait               = scala.meta.Defn.Trait

  // Functions
  type InstanceMethod = Nothing
  type StaticMethod   = Nothing

  // Values
  type ValueDefinition = scala.meta.Defn.Val
  type MethodParameter = scala.meta.Term.Param
  type Type            = scala.meta.Type
  type TypeName        = scala.meta.Type.Name
  type Annotation      = scala.meta.Mod.Annot

  // Result
  type FileContents = scala.meta.Source
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy