2 instantiations of Ref
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (2)
1159return new Ref(context.Info, firstToken.Text) { Metadata = metadata }; 1182return new Ref(Info, name)
15 references to Ref
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (5)
382case "ref": return Ref.Parse(context); 1141public static new Ref? Parse(in ParseContext context) 1180public Ref WithName(string name, NameKind kind) 1194public Ref EnsureResolvedPath(ErrorReporter errorReporter) 1430if (directive is CSharpDirective.Project or CSharpDirective.Ref or CSharpDirective.IncludeOrExclude)
SyncedSource\FileBasedPrograms\VirtualProjectBuilder.cs (10)
226if (!directives.Any(static d => d is CSharpDirective.Project or CSharpDirective.IncludeOrExclude or CSharpDirective.Ref)) 246case CSharpDirective.Ref refDirective: 247refDirective = refDirective.WithName(await project.ExpandStringAsync(refDirective.Name).ConfigureAwait(false), CSharpDirective.Ref.NameKind.Expanded); 544if (!directives.Any(static d => d is CSharpDirective.Ref)) 552foreach (var refDirective in directives.OfType<CSharpDirective.Ref>()) 584if (directive is CSharpDirective.Ref) 586await CheckFlagEnabledAsync(refEnabled, CSharpDirective.Ref.ExperimentalFileBasedProgramEnableRefDirective, directive).ConfigureAwait(false); 625var refDirectives = directives.OfType<CSharpDirective.Ref>(); 930foreach (var refDirective in refDirectives)