12 writes to _syntax
System.Private.Uri (12)
System\Uri.cs (4)
580_syntax = null!; 626_syntax = null!; 2107_syntax = UriParser.UnixFileUri; 2212_syntax = UriParser.UnixFileUri;
System\UriExt.cs (8)
39ParsingError err = ParseScheme(_string, ref _flags, ref _syntax!); 63_syntax = null!; //make it be relative Uri 75_syntax = null!; //make it be relative Uri 110_syntax = null!; // convert to relative uri 144_syntax = _syntax.InternalOnNewUri(); 158_syntax = null!; // convert it to relative 727_syntax = uriParser!; 1071_syntax = otherUri._syntax;
93 references to _syntax
System.Private.Uri (93)
System\Uri.cs (80)
249Debug.Assert(_syntax != null); 251if (_syntax.IsSimple) 302return _syntax; 308get { return _syntax is null; } 314private bool IriParsing => IriParsingStatic(_syntax); 772if (_syntax == null) 830if (_syntax.IsSimple) 861if (_syntax.IsSimple) 882return (object)_syntax.SchemeName == (object)UriSchemeFile; 1087Compress(ref result, IsDosPath ? pathStart + 2 : pathStart, _syntax); 1115if (_syntax.IsSimple) 1127return _syntax.DefaultPort; 1175return _syntax.SchemeName; 1264return _syntax != null; 1561if (_syntax.InFact(UriSyntaxFlags.MailToLikeUri)) 1586if (_syntax == null) 1593_syntax.IsSimple ? 1608if (_syntax is null) 1622if (!_syntax.IsSimple) 1857if (_syntax.InFact(UriSyntaxFlags.MailToLikeUri)) 1859if (!other._syntax.InFact(UriSyntaxFlags.MailToLikeUri)) 1979Debug.Assert(_syntax != null && !_syntax.IsSimple); 2006Debug.Assert(_syntax != null); 2044if (_syntax.IsAllSet(UriSyntaxFlags.AllowEmptyHost | UriSyntaxFlags.AllowDOSPath) 2058if (_syntax.InFact(UriSyntaxFlags.FileLikeUri) || i - idx <= 3) 2072if (_syntax.InFact(UriSyntaxFlags.FileLikeUri)) 2080if (_syntax.InFact(UriSyntaxFlags.MustHaveAuthority)) 2097else if (_syntax.InFact(UriSyntaxFlags.FileLikeUri) && (i - idx >= 2 && i - idx != 3 && 2105else if (!OperatingSystem.IsWindows() && _syntax.InFact(UriSyntaxFlags.FileLikeUri) && pUriString[i - 1] == '/' && i - idx == 3) 2124if (_syntax.InFact(UriSyntaxFlags.MustHaveAuthority)) 2137else if (_syntax.InFact(UriSyntaxFlags.OptionalAuthority) && (InFact(Flags.AuthorityFound) || 2145else if (_syntax.NotAny(UriSyntaxFlags.MailToLikeUri)) 2157else if (_syntax.InFact(UriSyntaxFlags.MustHaveAuthority)) 2163else if (_syntax.NotAny(UriSyntaxFlags.MailToLikeUri)) 2196idx = CheckAuthorityHelper(pUriString, idx, length, ref err, ref _flags, _syntax, ref newHost); 2205if (hostTerminator == '\\' && NotAny(Flags.ImplicitFile) && _syntax.NotAny(UriSyntaxFlags.AllowDOSPath)) 2210else if (!OperatingSystem.IsWindows() && hostTerminator == '/' && NotAny(Flags.ImplicitFile) && InFact(Flags.UncPath) && _syntax == UriParser.FileUri) 2278idx = _syntax.SchemeName.Length; 2306if (_syntax.DefaultPort != UriParser.NoDefaultPort) 2307info.Offset.PortValue = (ushort)_syntax.DefaultPort; 2408if (notEmpty && _syntax.DefaultPort != port) 2447if (!_syntax.IsSimple) 2608string host = _syntax.InternalGetComponents(this, UriComponents.Host, UriFormat.UriEscaped); 2619if (CheckAuthorityHelper(pHost, 0, host.Length, ref err, ref flags, _syntax, ref newHost) != 2651string portStr = _syntax.InternalGetComponents(this, UriComponents.StrongPort, UriFormat.UriEscaped); 2666throw new UriFormatException(SR.Format(SR.net_uri_PortOutOfRange, _syntax.GetType(), portStr)); 2670if (port == _syntax.DefaultPort) 2807dest.Append(_syntax.SchemeName); 2844_syntax, isQuery: false); 2904_syntax, isQuery: false); 2926(InFact(Flags.NotDefaultPort) || ((parts & UriComponents.StrongPort) != 0 && _syntax.DefaultPort != UriParser.NoDefaultPort))) 3014mode, _syntax, isQuery); 3045if (InFact(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort) 3088return _syntax.SchemeName; 3146if (InFact(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort) 3226UriSyntaxFlags syntaxFlags = _syntax.Flags; 3241string schemeName = _syntax.SchemeName; 3311_string = _syntax.SchemeName + SchemeDelimiter; 3370if (_syntax.InFact(UriSyntaxFlags.MayHaveQuery)) 3372if (_syntax.InFact(UriSyntaxFlags.MayHaveFragment)) 3383Debug.Assert(_syntax.InFact(UriSyntaxFlags.MayHaveFragment)); 3408? '?' : _syntax.InFact(UriSyntaxFlags.MayHaveFragment) ? '#' : c_EOL)); 3433_syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes)))) 3435if (((result & Check.DotSlashEscaped) != 0) && _syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes)) 3786Debug.Assert((_flags & Flags.Debug_LeftConstructor) == 0 || (!_syntax.IsSimple && Monitor.IsEntered(_info))); 4193else if (delim == '?' && c == '#' && (_syntax != null && _syntax.InFact(UriSyntaxFlags.MayHaveFragment))) 4200if (IsImplicitFile || (_syntax != null && !_syntax.InFact(UriSyntaxFlags.MayHaveQuery) 4213if (IsImplicitFile || (_syntax != null && !_syntax.InFact(UriSyntaxFlags.MayHaveFragment))) 4327if (_syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes) && InFact(Flags.PathNotCanonical) 4330UnescapePathSlashesAndDots(ref dest, start, _syntax.InFact(UriSyntaxFlags.ConvertPathSlashes)); 4359if (!OperatingSystem.IsWindows() && InFact(Flags.BackslashInPath) && _syntax.NotAny(UriSyntaxFlags.ConvertPathSlashes) && _syntax.InFact(UriSyntaxFlags.FileLikeUri) && !IsImplicitFile) 4382if (_syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes) && InFact(Flags.PathNotCanonical) 4385UnescapePathSlashesAndDots(ref dest, start, _syntax.InFact(UriSyntaxFlags.ConvertPathSlashes)); 4405Compress(ref dest, offset, _syntax); 4468_syntax, isQuery: false);
System\UriExt.cs (10)
31Debug.Assert(_originalUnicodeString is null && _info is null && _syntax is null && _flags == Flags.Zero); 101if (_syntax != null) 103if (_syntax.IsSimple) 144_syntax = _syntax.InternalOnNewUri(); 150_syntax.InternalValidate(this, out e); 504idx = _info.Offset.Scheme + _syntax.SchemeName.Length + 2; 557idx = _syntax.SchemeName.Length; 912return _syntax.SchemeName; 935&& _syntax.DefaultPort != UriParser.NoDefaultPort)) 1071_syntax = otherUri._syntax;
System\UriScheme.cs (3)
67if (uri._syntax is null) 72if (!ReferenceEquals(uri._syntax, this)) 74throw new InvalidOperationException(SR.Format(SR.net_uri_UserDrivenParsing, uri._syntax.GetType()));