Lines Matching refs:name

16 //     * Neither the name of Google Inc. nor the names of its
83 /// Finds a symbol of the given name within the pool.
85 /// <typeparam name="T">The type of symbol to look for</typeparam>
86 /// <param name="fullName">Fully-qualified name to look up</param>
87 /// <returns>The symbol with the given name and type,
115 /// Adds a package to the symbol tables. If a package by the same name
117 /// exists under the same name, an exception is thrown. If the package
123 String name;
127 name = fullName.Substring(dotpos + 1);
131 name = fullName;
140 "\"" + name +
145 descriptorsByName[fullName] = new PackageDescriptor(name, fullName, file);
188 /// Verifies that the descriptor's name is valid (i.e. it contains
191 /// <param name="descriptor"></param>
196 throw new DescriptorValidationException(descriptor, "Missing name.");
258 /// Looks up a descriptor by name, relative to some other descriptor.
259 /// The name may be fully-qualified (with a leading '.'), partially-qualified,
260 /// or unqualified. C++-like name lookup semantics are used to search for the
267 internal IDescriptor LookupSymbol(string name, IDescriptor relativeTo)
270 if (name.StartsWith("."))
272 // Fully-qualified name.
273 result = FindSymbol<IDescriptor>(name.Substring(1));
277 // If "name" is a compound identifier, we want to search for the
279 int firstPartLength = name.IndexOf('.');
280 string firstPart = firstPartLength == -1 ? name : name.Substring(0, firstPartLength);
293 result = FindSymbol<IDescriptor>(name);
312 scopeToTry.Append(name);
318 // Not found. Remove the name so we can try again.
326 throw new DescriptorValidationException(relativeTo, "\"" + name + "\" is not defined.");