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