41 references to NameOptions
Microsoft.CodeAnalysis.CSharp (41)
Parser\LanguageParser.cs (41)
5857private SimpleNameSyntax ParseSimpleName(NameOptions options = NameOptions.None)
5877if (kind == ScanTypeArgumentListKind.DefiniteTypeArgumentList || (kind == ScanTypeArgumentListKind.PossibleTypeArgumentList && (options & NameOptions.InTypeList) != 0))
5902private ScanTypeArgumentListKind ScanTypeArgumentList(NameOptions options)
5909if ((options & NameOptions.InExpression) == 0)
5988case SyntaxKind.GreaterThanToken when ((options & NameOptions.AfterIs) != 0) && this.PeekToken(1).Kind != SyntaxKind.GreaterThanToken:
6008if ((options & (NameOptions.AfterIs | NameOptions.DefinitePattern | NameOptions.AfterOut)) != 0 ||
6009(options & NameOptions.AfterTupleComma) != 0 && this.PeekToken(1).Kind is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken ||
6010(options & NameOptions.FirstElementOfPossibleTupleLiteral) != 0 && this.PeekToken(1).Kind == SyntaxKind.CommaToken)
6585explicitInterfaceName = this.ParseSimpleName(NameOptions.InTypeList);
6596var tmp = this.ParseQualifiedNameRight(NameOptions.InTypeList, explicitInterfaceName, separator);
6703private NameSyntax ParseAliasQualifiedName(NameOptions allowedParts = NameOptions.None)
6711private NameSyntax ParseQualifiedName(NameOptions options = NameOptions.None)
6731NameOptions options,
7261NameOptions nameOptions;
7265nameOptions = NameOptions.InExpression | NameOptions.AfterIs | NameOptions.PossiblePattern;
7268nameOptions = NameOptions.InExpression | NameOptions.DefinitePattern | NameOptions.PossiblePattern;
7271nameOptions = NameOptions.InExpression | NameOptions.AfterOut;
7274nameOptions = NameOptions.InExpression | NameOptions.AfterTupleComma;
7277nameOptions = NameOptions.InExpression | NameOptions.FirstElementOfPossibleTupleLiteral;
7284nameOptions = NameOptions.None;
7653private TypeSyntax ParseUnderlyingType(ParseTypeMode mode, NameOptions options = NameOptions.None)
11514return this.ParseAliasQualifiedName(NameOptions.InExpression);
11552return this.ParseAliasQualifiedName(NameOptions.InExpression);
11682this.ParseSimpleName(NameOptions.InExpression));
11693expr = _syntaxFactory.MemberAccessExpression(SyntaxKind.PointerMemberAccessExpression, expr, this.EatToken(), this.ParseSimpleName(NameOptions.InExpression));
11715expr = _syntaxFactory.MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression, expr, this.EatToken(), this.ParseSimpleName(NameOptions.InExpression));
11861SyntaxKind.DotToken => _syntaxFactory.MemberBindingExpression(this.EatToken(), this.ParseSimpleName(NameOptions.InExpression)),
11887expr = _syntaxFactory.MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression, expr, this.EatToken(), this.ParseSimpleName(NameOptions.InExpression));