from tailor.swift.swiftlistener import SwiftListener
from tailor.utils.charformat import isUpperCamelCase


class MainListener(SwiftListener):

    def enterClassName(self, ctx):
        self.__verify_upper_camel_case(ctx, 'Class names should be in UpperCamelCase')

    def enterEnumName(self, ctx):
        self.__verify_upper_camel_case(ctx, 'Enum names should be in UpperCamelCase')

    def enterEnumCaseName(self, ctx):
        pass

    def enterStructName(self, ctx):
        pass

    @staticmethod
    def __verify_upper_camel_case(ctx, err_msg):
        construct_name = ctx.getText()
        if not isUpperCamelCase(construct_name):
            print('Line', str(ctx.start.line) + ':', err_msg)

from tailor.swift.swiftlistener import SwiftListener
from tailor.utils.charformat import isUpperCamelCase


class MainListener(SwiftListener):

    def enterClassName(self, ctx):
        self.__verify_upper_camel_case(ctx, 'Class names should be in UpperCamelCase')

    def enterEnumName(self, ctx):
        self.__verify_upper_camel_case(ctx, 'Enum names should be in UpperCamelCase')

    def enterEnumCaseName(self, ctx):
        self.__verify_upper_camel_case(ctx, 'Enum case names should be in UpperCamelCase')

    def enterStructName(self, ctx):
        pass

    @staticmethod
    def __verify_upper_camel_case(ctx, err_msg):
        construct_name = ctx.getText()
        if not isUpperCamelCase(construct_name):
            print('Line', str(ctx.start.line) + ':', err_msg)

Implement UpperCamelCase name check for enum case
Implement UpperCamelCase name check for enum case

  from tailor.swift.swiftlistener import SwiftListener
  from tailor.utils.charformat import isUpperCamelCase
  
  
  class MainListener(SwiftListener):
  
      def enterClassName(self, ctx):
          self.__verify_upper_camel_case(ctx, 'Class names should be in UpperCamelCase')
  
      def enterEnumName(self, ctx):
          self.__verify_upper_camel_case(ctx, 'Enum names should be in UpperCamelCase')
  
      def enterEnumCaseName(self, ctx):
-         pass
+         self.__verify_upper_camel_case(ctx, 'Enum case names should be in UpperCamelCase')
  
      def enterStructName(self, ctx):
          pass
  
      @staticmethod
      def __verify_upper_camel_case(ctx, err_msg):
          construct_name = ctx.getText()
          if not isUpperCamelCase(construct_name):
              print('Line', str(ctx.start.line) + ':', err_msg)
  
Implement UpperCamelCase name check for enum case
## Code Before:
from tailor.swift.swiftlistener import SwiftListener
from tailor.utils.charformat import isUpperCamelCase


class MainListener(SwiftListener):

    def enterClassName(self, ctx):
        self.__verify_upper_camel_case(ctx, 'Class names should be in UpperCamelCase')

    def enterEnumName(self, ctx):
        self.__verify_upper_camel_case(ctx, 'Enum names should be in UpperCamelCase')

    def enterEnumCaseName(self, ctx):
        pass

    def enterStructName(self, ctx):
        pass

    @staticmethod
    def __verify_upper_camel_case(ctx, err_msg):
        construct_name = ctx.getText()
        if not isUpperCamelCase(construct_name):
            print('Line', str(ctx.start.line) + ':', err_msg)

## Instruction:
Implement UpperCamelCase name check for enum case
## Code After:
from tailor.swift.swiftlistener import SwiftListener
from tailor.utils.charformat import isUpperCamelCase


class MainListener(SwiftListener):

    def enterClassName(self, ctx):
        self.__verify_upper_camel_case(ctx, 'Class names should be in UpperCamelCase')

    def enterEnumName(self, ctx):
        self.__verify_upper_camel_case(ctx, 'Enum names should be in UpperCamelCase')

    def enterEnumCaseName(self, ctx):
        self.__verify_upper_camel_case(ctx, 'Enum case names should be in UpperCamelCase')

    def enterStructName(self, ctx):
        pass

    @staticmethod
    def __verify_upper_camel_case(ctx, err_msg):
        construct_name = ctx.getText()
        if not isUpperCamelCase(construct_name):
            print('Line', str(ctx.start.line) + ':', err_msg)
