Advertisement
Guest User

Untitled

a guest
Dec 31st, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 1.78 KB | None | 0 0
  1. case class Temputs(
  2.     // Signatures that have already started to be compiled.
  3.     declaredSignatures: Set[Signature2],
  4.  
  5.     // Not all signatures/banners will have a return type here, it might not have been processed yet.
  6.     returnTypesBySignature: Map[Signature2, Reference2],
  7.  
  8.     // Not all signatures/banners or even return types will have a function here, it might not have
  9.     // been processed yet.
  10.     functions: List[Function2],
  11.  
  12.     // One must fill this in when putting things into declaredStructs/Interfaces.
  13.     mutabilitiesByCitizenRef: Map[CitizenRef2, MutabilityP],
  14.  
  15.     // declaredStructs is the structs that we're currently in the process of defining
  16.     // Things will appear here before they appear in structDefsByRef
  17.     // This is to prevent infinite recursion / stack overflow when templaring recursive types
  18.     // Not too sure about the type of declaredStructs, we might need something else
  19.     declaredStructs: Set[StructRef2],
  20.     structDefsByRef: ListMap[StructRef2, StructDefinition2],
  21.     // declaredInterfaces is the interfaces that we're currently in the process of defining
  22.     // Things will appear here before they appear in interfaceDefsByRef
  23.     // This is to prevent infinite recursion / stack overflow when templaring recursive types
  24.     // Not too sure about the type of declaredInterfaces, we might need something else
  25.     declaredInterfaces: Set[InterfaceRef2],
  26.     interfaceDefsByRef: ListMap[InterfaceRef2, InterfaceDefinition2],
  27.     // Only PackTemplar can make a PackT2.
  28.     packTypes: Map[List[Reference2], StructRef2],
  29.     // Only ArrayTemplar can make an RawArrayT2.
  30.     arraySequenceTypes: Map[(Int, RawArrayT2), ArraySequenceT2],
  31.     // Only ArrayTemplar can make an RawArrayT2.
  32.     unknownSizeArrayTypes: Map[RawArrayT2, UnknownSizeArrayT2])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement