Class CATypeChecking
java.lang.Object
com.io7m.cardant.model.CATypeChecking
Functions for performing type checking on metadata.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CATypeCheckingcreate(CAStrings inStrings, Set<CATypeRecord> inTypeDeclarations, Set<CAMetadataType> inMetadata) Create a type checker for the given set of types and metadata.List<com.io7m.seltzer.api.SStructuredError<CAErrorCode>> execute()Execute the type checker.toString()
-
Method Details
-
create
public static CATypeChecking create(CAStrings inStrings, Set<CATypeRecord> inTypeDeclarations, Set<CAMetadataType> inMetadata) Create a type checker for the given set of types and metadata.- Parameters:
inStrings- The stringsinTypeDeclarations- The type declarations against which to check metadatainMetadata- The metadata- Returns:
- A type checker
-
execute
Execute the type checker.- Returns:
- The list of type errors, if any occurred
-
toString
-