CSharpExtensions.GetDeclaredSymbol Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
GetDeclaredSymbol(SemanticModel, LabeledStatementSyntax, CancellationToken) |
При наличии синтаксиса оператора с меткой получите соответствующий символ метки. |
GetDeclaredSymbol(SemanticModel, LocalFunctionStatementSyntax, CancellationToken) |
При наличии синтаксиса объявления локальной функции получите соответствующий символ. |
GetDeclaredSymbol(SemanticModel, MemberDeclarationSyntax, CancellationToken) |
При наличии синтаксиса объявления элемента получите соответствующий символ. |
GetDeclaredSymbol(SemanticModel, NamespaceDeclarationSyntax, CancellationToken) |
При наличии узла синтаксиса объявления пространства имен получите соответствующий символ пространства имен для сборки объявления. |
GetDeclaredSymbol(SemanticModel, ParameterSyntax, CancellationToken) |
При наличии узла синтаксиса объявления параметра получите соответствующий символ. |
GetDeclaredSymbol(SemanticModel, PropertyDeclarationSyntax, CancellationToken) |
При наличии синтаксического узла, объявляющего свойство, получите соответствующий объявленный символ. |
GetDeclaredSymbol(SemanticModel, QueryClauseSyntax, CancellationToken) | |
GetDeclaredSymbol(SemanticModel, QueryContinuationSyntax, CancellationToken) |
Возвращает переменную диапазона запроса, объявленную в предложении продолжения запроса. |
GetDeclaredSymbol(SemanticModel, SwitchLabelSyntax, CancellationToken) |
При наличии синтаксиса метки переключателя получите соответствующий символ метки. |
GetDeclaredSymbol(SemanticModel, TupleElementSyntax, CancellationToken) |
При наличии синтаксиса элемента кортежа получите соответствующий символ. |
GetDeclaredSymbol(SemanticModel, TupleExpressionSyntax, CancellationToken) |
Учитывая синтаксический узел выражения кортежа, получите символ типа кортежа. |
GetDeclaredSymbol(SemanticModel, TypeParameterSyntax, CancellationToken) |
При объявлении параметра типа (поле или метод) получите соответствующий символ. |
GetDeclaredSymbol(SemanticModel, UsingDirectiveSyntax, CancellationToken) |
При объявлении using возвращается соответствующий символ для введенного псевдонима using. |
GetDeclaredSymbol(SemanticModel, VariableDeclaratorSyntax, CancellationToken) |
Учитывая синтаксис декларатора переменных, получите соответствующий символ. |
GetDeclaredSymbol(SemanticModel, SingleVariableDesignationSyntax, CancellationToken) |
Учитывая синтаксис декларатора переменных, получите соответствующий символ. |
GetDeclaredSymbol(SemanticModel, JoinIntoClauseSyntax, CancellationToken) |
Возвращает переменную диапазона запроса, объявленную в предложении join into. |
GetDeclaredSymbol(SemanticModel, CompilationUnitSyntax, CancellationToken) |
Учитывая синтаксис единицы компиляции, получите соответствующий символ точки входа Simple Program. |
GetDeclaredSymbol(SemanticModel, ForEachStatementSyntax, CancellationToken) |
При использовании оператора foreach получите символ для переменной итерации. |
GetDeclaredSymbol(SemanticModel, AccessorDeclarationSyntax, CancellationToken) |
При наличии синтаксического узла, объявляющего метод доступа к свойству или члену, получите соответствующий символ. |
GetDeclaredSymbol(SemanticModel, AnonymousObjectCreationExpressionSyntax, CancellationToken) |
Учитывая синтаксический узел выражения анонимного создания объекта, получите символ типа анонимного объекта. |
GetDeclaredSymbol(SemanticModel, AnonymousObjectMemberDeclaratorSyntax, CancellationToken) |
Учитывая синтаксический узел инициализатора создания анонимного объекта, получите символ свойства анонимного объекта. |
GetDeclaredSymbol(SemanticModel, ArgumentSyntax, CancellationToken) |
Учитывая синтаксический узел аргумента кортежа, получите символ элемента кортежа. |
GetDeclaredSymbol(SemanticModel, BaseMethodDeclarationSyntax, CancellationToken) |
Учитывая синтаксис объявления базового метода, получите соответствующий символ метода. |
GetDeclaredSymbol(SemanticModel, BasePropertyDeclarationSyntax, CancellationToken) |
При наличии синтаксического узла, объявляющего свойство, индексатор или событие, получите соответствующий объявленный символ. |
GetDeclaredSymbol(SemanticModel, IndexerDeclarationSyntax, CancellationToken) |
При наличии синтаксического узла, объявляющего индексатор, получите соответствующий объявленный символ. |
GetDeclaredSymbol(SemanticModel, BaseTypeDeclarationSyntax, CancellationToken) |
При объявлении типа получите соответствующий символ типа. |
GetDeclaredSymbol(SemanticModel, DelegateDeclarationSyntax, CancellationToken) |
При объявлении делегата получите соответствующий символ типа. |
GetDeclaredSymbol(SemanticModel, EnumMemberDeclarationSyntax, CancellationToken) |
При объявлении элемента перечисления получите соответствующий символ поля. |
GetDeclaredSymbol(SemanticModel, EventDeclarationSyntax, CancellationToken) |
Учитывая синтаксический узел, объявляющий событие (пользовательское), получите соответствующий символ события. |
GetDeclaredSymbol(SemanticModel, ExternAliasDirectiveSyntax, CancellationToken) |
При объявлении extern alias получите соответствующий символ для введенного псевдонима. |
GetDeclaredSymbol(SemanticModel, FileScopedNamespaceDeclarationSyntax, CancellationToken) |
При наличии узла синтаксиса объявления пространства имен получите соответствующий символ пространства имен для сборки объявления. |
GetDeclaredSymbol(SemanticModel, CatchDeclarationSyntax, CancellationToken) |
При получении объявления catch получите символ для переменной исключения. |
GetDeclaredSymbol(SemanticModel, LabeledStatementSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При наличии синтаксиса оператора с меткой получите соответствующий символ метки.
public static Microsoft.CodeAnalysis.ILabelSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.LabeledStatementSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ILabelSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.LabeledStatementSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.LabeledStatementSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ILabelSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As LabeledStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As ILabelSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- LabeledStatementSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, LocalFunctionStatementSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
При наличии синтаксиса объявления локальной функции получите соответствующий символ.
public static Microsoft.CodeAnalysis.IMethodSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.LocalFunctionStatementSyntax node, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.LocalFunctionStatementSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IMethodSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, node As LocalFunctionStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol
Параметры
- semanticModel
- SemanticModel
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, MemberDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При наличии синтаксиса объявления элемента получите соответствующий символ.
public static Microsoft.CodeAnalysis.ISymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ISymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As MemberDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ISymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- MemberDeclarationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, NamespaceDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При наличии узла синтаксиса объявления пространства имен получите соответствующий символ пространства имен для сборки объявления.
public static Microsoft.CodeAnalysis.INamespaceSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.INamespaceSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.INamespaceSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As NamespaceDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamespaceSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- NamespaceDeclarationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, ParameterSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При наличии узла синтаксиса объявления параметра получите соответствующий символ.
public static Microsoft.CodeAnalysis.IParameterSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IParameterSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IParameterSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As ParameterSyntax, Optional cancellationToken As CancellationToken = Nothing) As IParameterSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- ParameterSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, PropertyDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При наличии синтаксического узла, объявляющего свойство, получите соответствующий объявленный символ.
public static Microsoft.CodeAnalysis.IPropertySymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IPropertySymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IPropertySymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As PropertyDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IPropertySymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- PropertyDeclarationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, QueryClauseSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
public static Microsoft.CodeAnalysis.IRangeVariableSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.QueryClauseSyntax queryClause, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IRangeVariableSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.QueryClauseSyntax queryClause, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.QueryClauseSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IRangeVariableSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, queryClause As QueryClauseSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol
Параметры
- semanticModel
- SemanticModel
- queryClause
- QueryClauseSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, QueryContinuationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
Возвращает переменную диапазона запроса, объявленную в предложении продолжения запроса.
public static Microsoft.CodeAnalysis.IRangeVariableSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.QueryContinuationSyntax node, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IRangeVariableSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.QueryContinuationSyntax node, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.QueryContinuationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IRangeVariableSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, node As QueryContinuationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol
Параметры
- semanticModel
- SemanticModel
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, SwitchLabelSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При наличии синтаксиса метки переключателя получите соответствующий символ метки.
public static Microsoft.CodeAnalysis.ILabelSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.SwitchLabelSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ILabelSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.SwitchLabelSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.SwitchLabelSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ILabelSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As SwitchLabelSyntax, Optional cancellationToken As CancellationToken = Nothing) As ILabelSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- SwitchLabelSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, TupleElementSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При наличии синтаксиса элемента кортежа получите соответствующий символ.
public static Microsoft.CodeAnalysis.ISymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.TupleElementSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ISymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.TupleElementSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.TupleElementSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As TupleElementSyntax, Optional cancellationToken As CancellationToken = Nothing) As ISymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- TupleElementSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, TupleExpressionSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
Учитывая синтаксический узел выражения кортежа, получите символ типа кортежа.
public static Microsoft.CodeAnalysis.INamedTypeSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.TupleExpressionSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.INamedTypeSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.TupleExpressionSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.TupleExpressionSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.INamedTypeSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declaratorSyntax As TupleExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol
Параметры
- semanticModel
- SemanticModel
- declaratorSyntax
- TupleExpressionSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, TypeParameterSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При объявлении параметра типа (поле или метод) получите соответствующий символ.
public static Microsoft.CodeAnalysis.ITypeParameterSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterSyntax typeParameter, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ITypeParameterSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterSyntax typeParameter, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ITypeParameterSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, typeParameter As TypeParameterSyntax, Optional cancellationToken As CancellationToken = Nothing) As ITypeParameterSymbol
Параметры
- semanticModel
- SemanticModel
- typeParameter
- TypeParameterSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, UsingDirectiveSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При объявлении using возвращается соответствующий символ для введенного псевдонима using.
public static Microsoft.CodeAnalysis.IAliasSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IAliasSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IAliasSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As UsingDirectiveSyntax, Optional cancellationToken As CancellationToken = Nothing) As IAliasSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- UsingDirectiveSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, VariableDeclaratorSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
Учитывая синтаксис декларатора переменных, получите соответствующий символ.
public static Microsoft.CodeAnalysis.ISymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ISymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As VariableDeclaratorSyntax, Optional cancellationToken As CancellationToken = Nothing) As ISymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- VariableDeclaratorSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, SingleVariableDesignationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
Учитывая синтаксис декларатора переменных, получите соответствующий символ.
public static Microsoft.CodeAnalysis.ISymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.SingleVariableDesignationSyntax designationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ISymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.SingleVariableDesignationSyntax designationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.SingleVariableDesignationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, designationSyntax As SingleVariableDesignationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ISymbol
Параметры
- semanticModel
- SemanticModel
- designationSyntax
- SingleVariableDesignationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, JoinIntoClauseSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
Возвращает переменную диапазона запроса, объявленную в предложении join into.
public static Microsoft.CodeAnalysis.IRangeVariableSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.JoinIntoClauseSyntax node, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IRangeVariableSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.JoinIntoClauseSyntax node, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.JoinIntoClauseSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IRangeVariableSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, node As JoinIntoClauseSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol
Параметры
- semanticModel
- SemanticModel
- node
- JoinIntoClauseSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, CompilationUnitSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
Учитывая синтаксис единицы компиляции, получите соответствующий символ точки входа Simple Program.
public static Microsoft.CodeAnalysis.IMethodSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IMethodSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As CompilationUnitSyntax, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- CompilationUnitSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, ForEachStatementSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При использовании оператора foreach получите символ для переменной итерации.
public static Microsoft.CodeAnalysis.ILocalSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ForEachStatementSyntax forEachStatement, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ILocalSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ForEachStatementSyntax forEachStatement, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.ForEachStatementSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ILocalSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, forEachStatement As ForEachStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As ILocalSymbol
Параметры
- semanticModel
- SemanticModel
- forEachStatement
- ForEachStatementSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, AccessorDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При наличии синтаксического узла, объявляющего метод доступа к свойству или члену, получите соответствующий символ.
public static Microsoft.CodeAnalysis.IMethodSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IMethodSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IMethodSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As AccessorDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- AccessorDeclarationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, AnonymousObjectCreationExpressionSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
Учитывая синтаксический узел выражения анонимного создания объекта, получите символ типа анонимного объекта.
public static Microsoft.CodeAnalysis.INamedTypeSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousObjectCreationExpressionSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.INamedTypeSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousObjectCreationExpressionSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousObjectCreationExpressionSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.INamedTypeSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declaratorSyntax As AnonymousObjectCreationExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol
Параметры
- semanticModel
- SemanticModel
- declaratorSyntax
- AnonymousObjectCreationExpressionSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, AnonymousObjectMemberDeclaratorSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
Учитывая синтаксический узел инициализатора создания анонимного объекта, получите символ свойства анонимного объекта.
public static Microsoft.CodeAnalysis.IPropertySymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousObjectMemberDeclaratorSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IPropertySymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousObjectMemberDeclaratorSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousObjectMemberDeclaratorSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IPropertySymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declaratorSyntax As AnonymousObjectMemberDeclaratorSyntax, Optional cancellationToken As CancellationToken = Nothing) As IPropertySymbol
Параметры
- semanticModel
- SemanticModel
- declaratorSyntax
- AnonymousObjectMemberDeclaratorSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, ArgumentSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
Учитывая синтаксический узел аргумента кортежа, получите символ элемента кортежа.
public static Microsoft.CodeAnalysis.ISymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ArgumentSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ISymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ArgumentSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.ArgumentSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declaratorSyntax As ArgumentSyntax, Optional cancellationToken As CancellationToken = Nothing) As ISymbol
Параметры
- semanticModel
- SemanticModel
- declaratorSyntax
- ArgumentSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, BaseMethodDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
Учитывая синтаксис объявления базового метода, получите соответствующий символ метода.
public static Microsoft.CodeAnalysis.IMethodSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IMethodSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IMethodSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As BaseMethodDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- BaseMethodDeclarationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, BasePropertyDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При наличии синтаксического узла, объявляющего свойство, индексатор или событие, получите соответствующий объявленный символ.
public static Microsoft.CodeAnalysis.ISymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.BasePropertyDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ISymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.BasePropertyDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.BasePropertyDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As BasePropertyDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ISymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- BasePropertyDeclarationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, IndexerDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При наличии синтаксического узла, объявляющего индексатор, получите соответствующий объявленный символ.
public static Microsoft.CodeAnalysis.IPropertySymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.IndexerDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IPropertySymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.IndexerDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.IndexerDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IPropertySymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As IndexerDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IPropertySymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- IndexerDeclarationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, BaseTypeDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При объявлении типа получите соответствующий символ типа.
public static Microsoft.CodeAnalysis.INamedTypeSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.BaseTypeDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.INamedTypeSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.BaseTypeDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.BaseTypeDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.INamedTypeSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As BaseTypeDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- BaseTypeDeclarationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, DelegateDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При объявлении делегата получите соответствующий символ типа.
public static Microsoft.CodeAnalysis.INamedTypeSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.DelegateDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.INamedTypeSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.DelegateDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.DelegateDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.INamedTypeSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As DelegateDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- DelegateDeclarationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, EnumMemberDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При объявлении элемента перечисления получите соответствующий символ поля.
public static Microsoft.CodeAnalysis.IFieldSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.EnumMemberDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IFieldSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.EnumMemberDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.EnumMemberDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IFieldSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As EnumMemberDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IFieldSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- EnumMemberDeclarationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, EventDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
Учитывая синтаксический узел, объявляющий событие (пользовательское), получите соответствующий символ события.
public static Microsoft.CodeAnalysis.IEventSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.EventDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IEventSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.EventDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.EventDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IEventSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As EventDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IEventSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- EventDeclarationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, ExternAliasDirectiveSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При объявлении extern alias получите соответствующий символ для введенного псевдонима.
public static Microsoft.CodeAnalysis.IAliasSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ExternAliasDirectiveSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IAliasSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ExternAliasDirectiveSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.ExternAliasDirectiveSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IAliasSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As ExternAliasDirectiveSyntax, Optional cancellationToken As CancellationToken = Nothing) As IAliasSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- ExternAliasDirectiveSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, FileScopedNamespaceDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При наличии узла синтаксиса объявления пространства имен получите соответствующий символ пространства имен для сборки объявления.
public static Microsoft.CodeAnalysis.INamespaceSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.FileScopedNamespaceDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.FileScopedNamespaceDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.INamespaceSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As FileScopedNamespaceDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamespaceSymbol
Параметры
- semanticModel
- SemanticModel
- declarationSyntax
- FileScopedNamespaceDeclarationSyntax
- cancellationToken
- CancellationToken
Возвращаемое значение
Применяется к
GetDeclaredSymbol(SemanticModel, CatchDeclarationSyntax, CancellationToken)
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
- Source:
- CSharpExtensions.cs
При получении объявления catch получите символ для переменной исключения.
public static Microsoft.CodeAnalysis.ILocalSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax catchDeclaration, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ILocalSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax catchDeclaration, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ILocalSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, catchDeclaration As CatchDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ILocalSymbol
Параметры
- semanticModel
- SemanticModel
- catchDeclaration
- CatchDeclarationSyntax
- cancellationToken
- CancellationToken