Lines Matching refs:ctx
324 [inspect.custom](recurseTimes, ctx) {
329 return ctx.stylize('[Object]', 'special');
332 const innerOpts = { ...ctx };
350 if (length > ctx.breakLength) {
715 const ctx = this[context];
716 ctx.href = href;
730 ctx.protocol_end = protocol_end;
731 ctx.username_end = username_end;
732 ctx.host_start = host_start;
733 ctx.host_end = host_end;
734 ctx.port = port;
735 ctx.pathname_start = pathname_start;
736 ctx.search_start = search_start;
737 ctx.hash_start = hash_start;
738 ctx.scheme_type = scheme_type;
742 if (ctx.hasSearch) {
775 const ctx = this[context];
776 const protocol = StringPrototypeSlice(ctx.href, 0, ctx.protocol_end);
779 if (ctx.scheme_type !== 1) {
781 if (ctx.scheme_type === 6) {
824 const ctx = this[context];
825 if (ctx.protocol_end + 2 < ctx.username_end) {
826 return StringPrototypeSlice(ctx.href, ctx.protocol_end + 2, ctx.username_end);
843 const ctx = this[context];
844 if (ctx.host_start - ctx.username_end > 0) {
845 return StringPrototypeSlice(ctx.href, ctx.username_end + 1, ctx.host_start);
862 const ctx = this[context];
863 let startsAt = ctx.host_start;
864 if (ctx.href[startsAt] === '@') {
869 if (startsAt === ctx.host_end) {
872 return StringPrototypeSlice(ctx.href, startsAt, ctx.pathname_start);
887 const ctx = this[context];
888 let startsAt = ctx.host_start;
890 if (ctx.href[startsAt] === '@') {
893 return StringPrototypeSlice(ctx.href, startsAt, ctx.host_end);
926 const ctx = this[context];
928 if (ctx.hasSearch) {
929 endsAt = ctx.search_start;
930 } else if (ctx.hasHash) {
931 endsAt = ctx.hash_start;
933 return StringPrototypeSlice(ctx.href, ctx.pathname_start, endsAt);
948 const ctx = this[context];
949 if (!ctx.hasSearch) { return ''; }
950 let endsAt = ctx.href.length;
951 if (ctx.hasHash) { endsAt = ctx.hash_start; }
952 if (endsAt - ctx.search_start <= 1) { return ''; }
953 return StringPrototypeSlice(ctx.href, ctx.search_start, endsAt);
983 const ctx = this[context];
984 if (!ctx.hasHash || (ctx.href.length - ctx.hash_start <= 1)) {
987 return StringPrototypeSlice(ctx.href, ctx.hash_start);
1331 [inspect.custom](recurseTimes, ctx) {
1336 return ctx.stylize('[Object]', 'special');
1338 const innerOpts = { ...ctx };