Lines Matching refs:dependencies

83         private FileDescriptor(ByteString descriptorData, FileDescriptorProto proto, IEnumerable<FileDescriptor> dependencies, DescriptorPool pool, bool allowUnknownDependencies, GeneratedClrTypeInfo generatedCodeInfo)
88 Dependencies = new ReadOnlyCollection<FileDescriptor>(dependencies.ToList());
90 PublicDependencies = DeterminePublicDependencies(this, proto, dependencies, allowUnknownDependencies);
215 /// Extracts public dependencies from direct dependencies. This is a static method despite its
218 private static IList<FileDescriptor> DeterminePublicDependencies(FileDescriptor @this, FileDescriptorProto proto, IEnumerable<FileDescriptor> dependencies, bool allowUnknownDependencies)
220 var nameToFileMap = dependencies.ToDictionary(file => file.Name);
237 // Ignore unknown dependencies.
292 /// Unmodifiable list of this file's dependencies (imports).
297 /// Unmodifiable list of this file's public dependencies (public imports).
355 /// <param name="dependencies">FileDescriptors corresponding to all of the
356 /// file's dependencies, in the exact order listed in the .proto file. May be null,
358 /// <param name="allowUnknownDependencies">Whether unknown dependencies are ignored (true) or cause an exception to be thrown (false).</param>
363 private static FileDescriptor BuildFrom(ByteString descriptorData, FileDescriptorProto proto, FileDescriptor[] dependencies, bool allowUnknownDependencies, GeneratedClrTypeInfo generatedCodeInfo)
374 if (dependencies == null)
376 dependencies = new FileDescriptor[0];
379 DescriptorPool pool = new DescriptorPool(dependencies);
380 FileDescriptor result = new FileDescriptor(descriptorData, proto, dependencies, pool, allowUnknownDependencies, generatedCodeInfo);
382 // Validate that the dependencies we've been passed (as FileDescriptors) are actually the ones we
384 if (dependencies.Length != proto.Dependency.Count)
416 /// which creates the appropriate dependencies etc. It has to be public because the generated
421 FileDescriptor[] dependencies,
425 registry.AddRange(GetAllExtensions(dependencies, generatedCodeInfo));
440 // dependencies by default.
441 return BuildFrom(ByteString.CopyFrom(descriptorData), proto, dependencies, true, generatedCodeInfo);
449 private static IEnumerable<Extension> GetAllExtensions(FileDescriptor[] dependencies, GeneratedClrTypeInfo generatedInfo)
451 return dependencies.SelectMany(GetAllDependedExtensions).Distinct(ExtensionRegistry.ExtensionComparer.Instance).Concat(GetAllGeneratedExtensions(generatedInfo));
481 /// dependencies must come before the descriptor which depends on them. (If A depends on B, and B
496 var dependencies = new List<FileDescriptor>();
504 dependencies.Add(dependency);
506 var pool = new DescriptorPool(dependencies);
508 data, proto, dependencies, pool,