code: function (route) {
          var staticPrefix = null;
          var hostVariables = [];
          var pathVariables = [];
          var variables = [];
          var tokens = [];
          var regex = null;
          var hostRegex = null;
          var hostTokens = [];
          var host;
  
          if ('' !== (host = route.domain())) {
              var result = compilePattern(route, host, true);
  
              hostVariables = result['variables'];
              variables = variables.concat(hostVariables);
  
              hostTokens = result['tokens'];
              hostRegex = result['regex'];
          }
  
          var path = route.getPath();
  
          result = compilePattern(route, path, false);
  
          staticPrefix = result['staticPrefix'];
  
          pathVariables = result['variables'];
          variables = variables.concat(pathVariables);
  
          tokens = result['tokens'];
          regex = result['regex'];
  
          return new CompiledRoute(
              staticPrefix,
              regex,
              tokens,
              pathVariables,
              hostRegex,
              hostTokens,
              hostVariables,
              _.uniq(variables)
          );
      }
docs: Compiles the current route instance.
  
  @param route A Route instance
  
  @return CompiledRoute A CompiledRoute instance