38 references to Virtual
Microsoft.CodeAnalysis.CSharp (38)
Parser\LanguageParser.cs (1)
1312return DeclarationModifiers.Virtual;
Symbols\Source\LocalFunctionSymbol.cs (1)
361public override bool IsVirtual => (_declarationModifiers & DeclarationModifiers.Virtual) != 0;
Symbols\Source\ModifierUtils.cs (10)
55Debug.Assert((allowedModifiers & (DeclarationModifiers.Override | DeclarationModifiers.Virtual)) == 0); 65reportStaticNotVirtualForModifiers = allowedModifiers & (DeclarationModifiers.Abstract | DeclarationModifiers.Override | DeclarationModifiers.Virtual); 89case DeclarationModifiers.Virtual: 157(modifiers & defaultInterfaceImplementationModifiers & (DeclarationModifiers.Sealed | DeclarationModifiers.Abstract | DeclarationModifiers.Virtual)) != 0) 159var reportModifiers = DeclarationModifiers.Sealed | DeclarationModifiers.Abstract | DeclarationModifiers.Virtual; 161(modifiers & defaultInterfaceImplementationModifiers & (DeclarationModifiers.Abstract | DeclarationModifiers.Virtual)) != 0) 239else if ((mods & (DeclarationModifiers.Private | DeclarationModifiers.Partial | DeclarationModifiers.Virtual | DeclarationModifiers.Abstract)) == 0) 247mods |= DeclarationModifiers.Virtual; 313case DeclarationModifiers.Virtual: 363return DeclarationModifiers.Virtual;
Symbols\Source\SourceDelegateMethodSymbol.cs (3)
262: base(delegateType, returnType, syntax, MethodKind.DelegateInvoke, refKind, DeclarationModifiers.Virtual | DeclarationModifiers.Public) 355: base((SourceNamedTypeSymbol)invoke.ContainingType, iAsyncResultType, syntax, MethodKind.Ordinary, RefKind.None, DeclarationModifiers.Virtual | DeclarationModifiers.Public) 393: base((SourceNamedTypeSymbol)invoke.ContainingType, invoke.ReturnTypeWithAnnotations, syntax, MethodKind.Ordinary, invoke.RefKind, DeclarationModifiers.Virtual | DeclarationModifiers.Public)
Symbols\Source\SourceEventSymbol.cs (3)
395get { return (_modifiers & DeclarationModifiers.Virtual) != 0; } 459DeclarationModifiers.Virtual | 476DeclarationModifiers.Virtual |
Symbols\Source\SourceMemberMethodSymbol.cs (2)
176return (modifiers & (DeclarationModifiers.Abstract | DeclarationModifiers.Virtual | DeclarationModifiers.Override)) != 0; 639return (this.DeclarationModifiers & DeclarationModifiers.Virtual) != 0;
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
706DeclarationModifiers.Virtual | 718DeclarationModifiers.Virtual | 785DeclarationModifiers.Virtual |
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
238declarationModifiers &= ~DeclarationModifiers.Virtual;
Symbols\Source\SourcePropertySymbol.cs (2)
380DeclarationModifiers.Virtual | 406DeclarationModifiers.Virtual |
Symbols\Source\SourcePropertySymbolBase.cs (1)
592get { return (_modifiers & DeclarationModifiers.Virtual) != 0; }
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (4)
140allowedModifiers |= DeclarationModifiers.Abstract | DeclarationModifiers.Virtual; 160if ((result & (DeclarationModifiers.Abstract | DeclarationModifiers.Virtual | DeclarationModifiers.Sealed)) != 0) 163(result & (DeclarationModifiers.Abstract | DeclarationModifiers.Virtual)) != 0) 183reportModifierIfPresent(result, DeclarationModifiers.Virtual, location, diagnostics, requiredVersionArgument, availableVersionArgument);
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (3)
40result |= containingType.IsSealed ? DeclarationModifiers.None : DeclarationModifiers.Virtual; 45result &= ~DeclarationModifiers.Virtual; 74case DeclarationModifiers.Virtual:
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
30(false, true) => DeclarationModifiers.Protected | DeclarationModifiers.Virtual,
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
24(containingType.IsSealed ? 0 : DeclarationModifiers.Virtual) |
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (2)
47result |= containingType.IsSealed ? DeclarationModifiers.None : DeclarationModifiers.Virtual; 80case DeclarationModifiers.Virtual: