Class CBBinderContext

java.lang.Object
com.io7m.cedarbridge.schema.binder.internal.CBBinderContext

public final class CBBinderContext extends Object
The contextual information used during binding analysis.
  • Constructor Details

    • CBBinderContext

      public CBBinderContext(CBStringsType inStrings, CBLoaderType inLoader, CBExpressionLineLogType inLineLog, Consumer<CBError> inErrorConsumer, String inPackageName, CBASTLanguage inLanguage)
      The contextual information used during binding analysis.
      Parameters:
      inStrings - The strings
      inLoader - The loader
      inLineLog - The line log for incoming expressions
      inErrorConsumer - The error consumer
      inPackageName - The package name
      inLanguage - The language being analyzed
  • Method Details

    • current

      public CBBinderContextType current()
      Returns:
      The current binder context
    • errorCount

      public int errorCount()
      Returns:
      The number of errors encountered