GoLanguage

class GoLanguage : Language<GoLanguageFrontend> , HasShortCircuitOperators, HasGenerics, HasStructs, HasFirstClassFunctions, HasAnonymousIdentifier, HasFunctionalCasts

The Go language.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
var annotations: MutableList<Annotation>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var astChildren: List<Node>
Link copied to clipboard
open override val builtInTypes: Map<String, ObjectType>
Link copied to clipboard
var code: String?
Link copied to clipboard
Link copied to clipboard

All operators which perform and assignment and an operation using lhs and rhs. See https://go.dev/ref/spec#Operators_and_punctuation

Link copied to clipboard
open override val conjunctiveOperators: List<String>
Link copied to clipboard
open override var ctx: TranslationContext?
Link copied to clipboard
open override val disjunctiveOperators: List<String>
Link copied to clipboard
open override val endCharacter: Char = ']'
Link copied to clipboard
var file: String?
Link copied to clipboard
open override val fileExtensions: List<String>
Link copied to clipboard
open override val frontend: KClass<GoLanguageFrontend>
Link copied to clipboard
var id: Long?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var language: Language<*>?
Link copied to clipboard
var location: PhysicalLocation?
Link copied to clipboard
open var name: Name
Link copied to clipboard
open override val namespaceDelimiter: String
Link copied to clipboard
var nextCDG: List<Node>
Link copied to clipboard
var nextCDGEdges: MutableList<PropertyEdge<Node>>
Link copied to clipboard
var nextDFG: MutableSet<Node>
Link copied to clipboard
var nextDFGEdges: MutableList<Dataflow>
Link copied to clipboard
var nextEOG: List<Node>
Link copied to clipboard
var nextEOGEdges: MutableList<PropertyEdge<Node>>
Link copied to clipboard
val nextFullDFG: List<Node>
Link copied to clipboard
var nextPDG: MutableSet<Node>
Link copied to clipboard
var nextPDGEdges: MutableSet<PropertyEdge<Node>>
Link copied to clipboard
Link copied to clipboard
var prevCDG: List<Node>
Link copied to clipboard
var prevCDGEdges: MutableList<PropertyEdge<Node>>
Link copied to clipboard
var prevDFG: MutableSet<Node>
Link copied to clipboard
var prevDFGEdges: MutableList<Dataflow>
Link copied to clipboard
var prevEOG: List<Node>
Link copied to clipboard
var prevEOGEdges: MutableList<PropertyEdge<Node>>
Link copied to clipboard
val prevFullDFG: List<Node>
Link copied to clipboard
var prevPDG: MutableSet<Node>
Link copied to clipboard
var prevPDGEdges: MutableSet<PropertyEdge<Node>>
Link copied to clipboard
Link copied to clipboard
open override var scope: Scope?
Link copied to clipboard

Go supports the normal = operator, as well as a short assignment operator, which also declares the variable under certain circumstances. But both act as a simple assignment.

Link copied to clipboard
open override val startCharacter: Char = '['

Functions

Link copied to clipboard
open fun accept(strategy: IStrategy<Node>, visitor: IVisitor<Node>)
Link copied to clipboard
fun addAllPrevDFG(prev: Collection<Node>, granularity: Granularity, callingContext: CallingContext?)
Link copied to clipboard
fun addAllPrevPDG(prev: Collection<Node>, dependenceType: DependenceType)
Link copied to clipboard
fun addAllPrevPDGEdges(prev: Collection<PropertyEdge<Node>>, dependenceType: DependenceType)
Link copied to clipboard
fun addAnnotations(annotations: Collection<Annotation>)
Link copied to clipboard
fun addNextDFG(next: Node, granularity: Granularity, callingContext: CallingContext?)
Link copied to clipboard
fun addNextEOG(propertyEdge: PropertyEdge<Node>)
Link copied to clipboard
fun addPrevCDG(prev: Node, properties: MutableMap<Properties, Any?>)
Link copied to clipboard
open fun addPrevDFG(prev: Node, granularity: Granularity, callingContext: CallingContext?)
Link copied to clipboard
fun addPrevEOG(propertyEdge: PropertyEdge<Node>)
Link copied to clipboard
open fun bestViableResolution(result: CallResolutionResult): Pair<Set<FunctionDeclaration>, CallResolutionResult.SuccessKind>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun getSimpleTypeOf(typeString: String): Type?
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open fun newFrontend(ctx: TranslationContext): GoLanguageFrontend
Link copied to clipboard
open override fun propagateTypeOfBinaryOperation(operation: BinaryOperator): Type
Link copied to clipboard
fun removeNextDFG(next: Node?)
Link copied to clipboard
fun removePrevDFG(prev: Node?)
Link copied to clipboard
fun removePrevEOGEntry(eog: Node)
Link copied to clipboard
open fun shouldPropagateType(hasType: HasType, srcType: Type): Boolean
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun tryCast(type: Type, targetType: Type, hint: HasType?, targetHint: HasType?): CastResult