VisualBasicExtensions.GetSymbolInfo 方法

定义

重载

GetSymbolInfo(SemanticModel, CrefReferenceSyntax, CancellationToken)

获取相应的 SymbolInfo,其中包含指定 CrefReferenceSyntax 的语义信息。

GetSymbolInfo(SemanticModel, OrderingSyntax, CancellationToken)

返回与 . 关联的 OrderingSyntaxOrderBy/OrderByDescending/ThenBy/ThenByDescending 方法。

GetSymbolInfo(SemanticModel, QueryClauseSyntax, CancellationToken)

返回查询子句的符号信息。

GetSymbolInfo(SemanticModel, FunctionAggregationSyntax, CancellationToken)

返回与 FunctionAggregationSyntax. 关联的聚合函数。

GetSymbolInfo(SemanticModel, AttributeSyntax, CancellationToken)

获取相应的 SymbolInfo,其中包含指定 AttributeSyntax 的语义信息。

GetSymbolInfo(SemanticModel, ExpressionRangeVariableSyntax, CancellationToken)

返回与 ExpressionRangeVariableSyntaxLetClauseSyntax关联的 Select 方法; Microsoft.CodeAnalysis.SymbolInfo.None 否则,如果没有。

GetSymbolInfo(SemanticModel, ExpressionSyntax, CancellationToken)

获取包含指定 ExpressionSyntax 的语义信息的相应 SymbolInfo。

GetSymbolInfo(SemanticModel, CrefReferenceSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

获取相应的 SymbolInfo,其中包含指定 CrefReferenceSyntax 的语义信息。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.CrefReferenceSyntax crefReference, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.CrefReferenceSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, crefReference As CrefReferenceSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

参数

semanticModel
SemanticModel
crefReference
CrefReferenceSyntax
cancellationToken
CancellationToken

返回

适用于

GetSymbolInfo(SemanticModel, OrderingSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

返回与 . 关联的 OrderingSyntaxOrderBy/OrderByDescending/ThenBy/ThenByDescending 方法。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.OrderingSyntax orderingSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.OrderingSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, orderingSyntax As OrderingSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

参数

semanticModel
SemanticModel
orderingSyntax
OrderingSyntax
cancellationToken
CancellationToken

返回

适用于

GetSymbolInfo(SemanticModel, QueryClauseSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

返回查询子句的符号信息。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.QueryClauseSyntax clauseSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.QueryClauseSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, clauseSyntax As QueryClauseSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

参数

semanticModel
SemanticModel
clauseSyntax
QueryClauseSyntax
cancellationToken
CancellationToken

返回

注解

语法节点类型返回的符号信息
DistinctClauseSyntax 返回与 DistinctClauseSyntax. 关联的 Distinct 方法。
WhereClauseSyntax 返回与 WhereClauseSyntax. 关联的 Where 方法。
PartitionWhileClauseSyntax 返回与 PartitionWhileClauseSyntax. 关联的 TakeWhile/SkipWhile 方法。
PartitionClauseSyntax 返回与 . 关联的 PartitionClauseSyntaxTake/Skip 方法。
GroupByClauseSyntax 返回与 GroupByClauseSyntax. 关联的 GroupBy 方法。
JoinClauseSyntax 返回与 JoinClauseSyntax. 关联的 Join/GroupJoin 方法。
SelectClauseSyntax 返回与 SelectClauseSyntaxSelect 方法关联的方法; Microsoft.CodeAnalysis.SymbolInfo.None 如果没有。
FromClauseSyntax Returns Select method associated with FromClauseSyntax, which has only one CollectionRangeVariableSyntax and is the only query clause within QueryExpressionSyntax. 否则为 Microsoft.CodeAnalysis.SymbolInfo.None。 编译器将注入方法调用,以确保将查询转换为至少一个方法调用。
LetClauseSyntax Microsoft.CodeAnalysis.SymbolInfo.None
OrderByClauseSyntax Microsoft.CodeAnalysis.SymbolInfo.None
AggregateClauseSyntax Microsoft.CodeAnalysis.SymbolInfo.None. 请改用 GetAggregateClauseSymbolInfo(SemanticModel, AggregateClauseSyntax, CancellationToken)

适用于

GetSymbolInfo(SemanticModel, FunctionAggregationSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

返回与 FunctionAggregationSyntax. 关联的聚合函数。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.FunctionAggregationSyntax functionSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.FunctionAggregationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, functionSyntax As FunctionAggregationSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

参数

semanticModel
SemanticModel
functionSyntax
FunctionAggregationSyntax
cancellationToken
CancellationToken

返回

适用于

GetSymbolInfo(SemanticModel, AttributeSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

获取相应的 SymbolInfo,其中包含指定 AttributeSyntax 的语义信息。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax attribute, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

参数

semanticModel
SemanticModel
attribute
AttributeSyntax
cancellationToken
CancellationToken

返回

适用于

GetSymbolInfo(SemanticModel, ExpressionRangeVariableSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

返回与 ExpressionRangeVariableSyntaxLetClauseSyntax关联的 Select 方法; Microsoft.CodeAnalysis.SymbolInfo.None 否则,如果没有。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionRangeVariableSyntax variableSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionRangeVariableSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, variableSyntax As ExpressionRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

参数

semanticModel
SemanticModel
cancellationToken
CancellationToken

返回

适用于

GetSymbolInfo(SemanticModel, ExpressionSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

获取包含指定 ExpressionSyntax 的语义信息的相应 SymbolInfo。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax expression, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, expression As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

参数

semanticModel
SemanticModel
expression
ExpressionSyntax
cancellationToken
CancellationToken

返回

适用于