41 references to NameOptions
Microsoft.CodeAnalysis.CSharp (41)
Parser\LanguageParser.cs (41)
5855private SimpleNameSyntax ParseSimpleName(NameOptions options = NameOptions.None) 5875if (kind == ScanTypeArgumentListKind.DefiniteTypeArgumentList || (kind == ScanTypeArgumentListKind.PossibleTypeArgumentList && (options & NameOptions.InTypeList) != 0)) 5900private ScanTypeArgumentListKind ScanTypeArgumentList(NameOptions options) 5907if ((options & NameOptions.InExpression) == 0) 5986case SyntaxKind.GreaterThanToken when ((options & NameOptions.AfterIs) != 0) && this.PeekToken(1).Kind != SyntaxKind.GreaterThanToken: 6006if ((options & (NameOptions.AfterIs | NameOptions.DefinitePattern | NameOptions.AfterOut)) != 0 || 6007(options & NameOptions.AfterTupleComma) != 0 && this.PeekToken(1).Kind is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken || 6008(options & NameOptions.FirstElementOfPossibleTupleLiteral) != 0 && this.PeekToken(1).Kind == SyntaxKind.CommaToken) 6583explicitInterfaceName = this.ParseSimpleName(NameOptions.InTypeList); 6594var tmp = this.ParseQualifiedNameRight(NameOptions.InTypeList, explicitInterfaceName, separator); 6701private NameSyntax ParseAliasQualifiedName(NameOptions allowedParts = NameOptions.None) 6709private NameSyntax ParseQualifiedName(NameOptions options = NameOptions.None) 6729NameOptions options, 7259NameOptions nameOptions; 7263nameOptions = NameOptions.InExpression | NameOptions.AfterIs | NameOptions.PossiblePattern; 7266nameOptions = NameOptions.InExpression | NameOptions.DefinitePattern | NameOptions.PossiblePattern; 7269nameOptions = NameOptions.InExpression | NameOptions.AfterOut; 7272nameOptions = NameOptions.InExpression | NameOptions.AfterTupleComma; 7275nameOptions = NameOptions.InExpression | NameOptions.FirstElementOfPossibleTupleLiteral; 7282nameOptions = NameOptions.None; 7651private TypeSyntax ParseUnderlyingType(ParseTypeMode mode, NameOptions options = NameOptions.None) 11485return this.ParseAliasQualifiedName(NameOptions.InExpression); 11523return this.ParseAliasQualifiedName(NameOptions.InExpression); 11653this.ParseSimpleName(NameOptions.InExpression)); 11664expr = _syntaxFactory.MemberAccessExpression(SyntaxKind.PointerMemberAccessExpression, expr, this.EatToken(), this.ParseSimpleName(NameOptions.InExpression)); 11686expr = _syntaxFactory.MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression, expr, this.EatToken(), this.ParseSimpleName(NameOptions.InExpression)); 11832SyntaxKind.DotToken => _syntaxFactory.MemberBindingExpression(this.EatToken(), this.ParseSimpleName(NameOptions.InExpression)), 11858expr = _syntaxFactory.MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression, expr, this.EatToken(), this.ParseSimpleName(NameOptions.InExpression));