2 instantiations of Ref
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (2)
626return new Ref(context.Info, directiveText); 649return new Ref(Info, name)
15 references to Ref
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (5)
320case "ref": return Ref.Parse(context); 617public static new Ref? Parse(in ParseContext context) 647public Ref WithName(string name, NameKind kind) 660public Ref EnsureResolvedPath(ErrorReporter errorReporter) 893if (directive is CSharpDirective.Project or CSharpDirective.Ref or CSharpDirective.IncludeOrExclude)
SyncedSource\FileBasedPrograms\VirtualProjectBuilder.cs (10)
218if (!directives.Any(static d => d is CSharpDirective.Project or CSharpDirective.IncludeOrExclude or CSharpDirective.Ref)) 238case CSharpDirective.Ref refDirective: 239refDirective = refDirective.WithName(await project.ExpandStringAsync(refDirective.Name).ConfigureAwait(false), CSharpDirective.Ref.NameKind.Expanded); 521if (!directives.Any(static d => d is CSharpDirective.Ref)) 529foreach (var refDirective in directives.OfType<CSharpDirective.Ref>()) 561if (directive is CSharpDirective.Ref) 563await CheckFlagEnabledAsync(refEnabled, CSharpDirective.Ref.ExperimentalFileBasedProgramEnableRefDirective, directive).ConfigureAwait(false); 601var refDirectives = directives.OfType<CSharpDirective.Ref>(); 900foreach (var refDirective in refDirectives)