getSymbol :: Throws (Located GeneratorError) e => Id -> SymbolTable -> GenerateJvm e Symbol
getSymbol name table = do
  case lookupSymbol name table of
    Nothing -> failCheck GeneratorError $ "Unknown symbol: " ++ name
    Just symbol -> return symbol
getSymbol :: Throws (Located GeneratorError) e => Id -> SymbolTable -> GenerateJvm e Symbol
getSymbol name table = do
  case lookupSymbol name table of
    Nothing -> failCheck GeneratorError $ "Unknown symbol: " ++ name
    Just symbol -> return symbol
getSymbol name table = do
  case lookupSymbol name table of
    Nothing -> failCheck GeneratorError $ "Unknown symbol: " ++ name
    Just symbol -> return symbol