12 writes to _syntax
System.Private.Uri (12)
98 references to _syntax
System.Private.Uri (98)
System\Uri.cs (85)
202Debug.Assert(_syntax != null);
204if (_syntax.IsSimple)
255return _syntax;
261get { return _syntax is null; }
267private bool IriParsing => IriParsingStatic(_syntax);
725if (_syntax == null)
783if (_syntax.IsSimple)
814if (_syntax.IsSimple)
835return (object)_syntax.SchemeName == (object)UriSchemeFile;
1009c_DummyChar, UnescapeMode.CopyOnly, _syntax, false);
1027c_DummyChar, c_DummyChar, mode, _syntax, true);
1037Compress(result, IsDosPath ? pathStart + 2 : pathStart, ref count, _syntax);
1065if (_syntax.IsSimple)
1077return _syntax.DefaultPort;
1125return _syntax.SchemeName;
1202_syntax, isQuery: false);
1222return _syntax != null;
1530if (_syntax.InFact(UriSyntaxFlags.MailToLikeUri))
1555if (_syntax == null)
1562_syntax.IsSimple ?
1577if (_syntax is null)
1591if (!_syntax.IsSimple)
1826if (_syntax.InFact(UriSyntaxFlags.MailToLikeUri))
1828if (!other._syntax.InFact(UriSyntaxFlags.MailToLikeUri))
1951Debug.Assert(_syntax != null && !_syntax.IsSimple);
1978Debug.Assert(_syntax != null);
2016if (_syntax.IsAllSet(UriSyntaxFlags.AllowEmptyHost | UriSyntaxFlags.AllowDOSPath)
2030if (_syntax.InFact(UriSyntaxFlags.FileLikeUri) || i - idx <= 3)
2044if (_syntax.InFact(UriSyntaxFlags.FileLikeUri))
2052if (_syntax.InFact(UriSyntaxFlags.MustHaveAuthority))
2069else if (_syntax.InFact(UriSyntaxFlags.FileLikeUri) && (i - idx >= 2 && i - idx != 3 &&
2077else if (!OperatingSystem.IsWindows() && _syntax.InFact(UriSyntaxFlags.FileLikeUri) && pUriString[i - 1] == '/' && i - idx == 3)
2096if (_syntax.InFact(UriSyntaxFlags.MustHaveAuthority))
2109else if (_syntax.InFact(UriSyntaxFlags.OptionalAuthority) && (InFact(Flags.AuthorityFound) ||
2117else if (_syntax.NotAny(UriSyntaxFlags.MailToLikeUri))
2129else if (_syntax.InFact(UriSyntaxFlags.MustHaveAuthority))
2135else if (_syntax.NotAny(UriSyntaxFlags.MailToLikeUri))
2168idx = CheckAuthorityHelper(pUriString, idx, length, ref err, ref _flags, _syntax, ref newHost);
2177if (hostTerminator == '\\' && NotAny(Flags.ImplicitFile) && _syntax.NotAny(UriSyntaxFlags.AllowDOSPath))
2182else if (!OperatingSystem.IsWindows() && hostTerminator == '/' && NotAny(Flags.ImplicitFile) && InFact(Flags.UncPath) && _syntax == UriParser.FileUri)
2250idx = _syntax.SchemeName.Length;
2278if (_syntax.DefaultPort != UriParser.NoDefaultPort)
2279info.Offset.PortValue = (ushort)_syntax.DefaultPort;
2381if (notEmpty && _syntax.DefaultPort != port)
2420if (!_syntax.IsSimple)
2576string host = _syntax.InternalGetComponents(this, UriComponents.Host, UriFormat.UriEscaped);
2590if (CheckAuthorityHelper(pHost, 0, host.Length, ref err, ref flags, _syntax, ref newHost) !=
2621string portStr = _syntax.InternalGetComponents(this, UriComponents.StrongPort, UriFormat.UriEscaped);
2636throw new UriFormatException(SR.Format(SR.net_uri_PortOutOfRange, _syntax.GetType(), portStr));
2640if (port == _syntax.DefaultPort)
2775dest.Append(_syntax.SchemeName);
2812_syntax, isQuery: false);
2820_syntax, isQuery: false);
2878_syntax, isQuery: false);
2894(InFact(Flags.NotDefaultPort) || ((parts & UriComponents.StrongPort) != 0 && _syntax.DefaultPort != UriParser.NoDefaultPort)))
2961mode, _syntax, isQuery: true);
3000mode, _syntax, isQuery: false);
3032if (InFact(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort)
3075return _syntax.SchemeName;
3133if (InFact(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort)
3213UriSyntaxFlags syntaxFlags = _syntax.Flags;
3228string schemeName = _syntax.SchemeName;
3298_string = _syntax.SchemeName + SchemeDelimiter;
3353if (_syntax.InFact(UriSyntaxFlags.MayHaveQuery))
3355if (_syntax.InFact(UriSyntaxFlags.MayHaveFragment))
3366Debug.Assert(_syntax.InFact(UriSyntaxFlags.MayHaveFragment));
3397? '?' : _syntax.InFact(UriSyntaxFlags.MayHaveFragment) ? '#' : c_EOL));
3422_syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes))))
3424if (((result & Check.DotSlashEscaped) != 0) && _syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes))
3787Debug.Assert((_flags & Flags.Debug_LeftConstructor) == 0 || (!_syntax.IsSimple && Monitor.IsEntered(_info)));
4184else if (delim == '?' && c == '#' && (_syntax != null && _syntax.InFact(UriSyntaxFlags.MayHaveFragment)))
4191if (IsImplicitFile || (_syntax != null && !_syntax.InFact(UriSyntaxFlags.MayHaveQuery)
4204if (IsImplicitFile || (_syntax != null && !_syntax.InFact(UriSyntaxFlags.MayHaveFragment)))
4318if (_syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes) && InFact(Flags.PathNotCanonical)
4325_syntax.InFact(UriSyntaxFlags.ConvertPathSlashes) ? '\\' : c_DummyChar);
4356if (!OperatingSystem.IsWindows() && InFact(Flags.BackslashInPath) && _syntax.NotAny(UriSyntaxFlags.ConvertPathSlashes) && _syntax.InFact(UriSyntaxFlags.FileLikeUri) && !IsImplicitFile)
4379if (_syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes) && InFact(Flags.PathNotCanonical)
4386_syntax.InFact(UriSyntaxFlags.ConvertPathSlashes) ? '\\' : c_DummyChar);
4408dest.Length = offset + Compress(dest.RawChars.Slice(offset, dest.Length - offset), _syntax);
4468_syntax, isQuery: false);