string ReadId(bool ignoreWhiteSpace) { SkipWhite(); StringBuilder?sb = ObjectPools.AllocStringBuilder(); int c; while ((c = GetIdChar(ignoreWhiteSpace)) != -1) { sb.Append((char)c); } Verify(sb.Length > 0, "Expected an id"); return(ObjectPools.FreeAndToString(ref sb)); }
string ReadAssemblyNameId() { SkipWhite(); StringBuilder?sb = ObjectPools.AllocStringBuilder(); int c; while ((c = GetAsmNameChar()) != -1) { sb.Append((char)c); } var name = ObjectPools.FreeAndToString(ref sb).Trim(); Verify(name.Length > 0, "Expected an assembly name"); return(name); }