code: @VisibleForTesting
    public NamedType createNamedType(
        StaticTypedScope scope, String reference, String sourceName, int lineno, int charno) {
      return new NamedType(scope, this, reference, sourceName, lineno, charno);
    }
docs: Creates a named type.