本文整理汇总了C#中Analyzer.ResolveType方法的典型用法代码示例。如果您正苦于以下问题:C# Analyzer.ResolveType方法的具体用法?C# Analyzer.ResolveType怎么用?C# Analyzer.ResolveType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Analyzer
的用法示例。
在下文中一共展示了Analyzer.ResolveType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PreAnalyze
internal void PreAnalyze(Analyzer/*!*/ analyzer, GenericParameter/*!*/ parameter)
{
this.parameter = parameter;
PhpRoutine routine = parameter.DeclaringMember as PhpRoutine;
PhpType type = (routine != null) ? routine.DeclaringType as PhpType : parameter.DeclaringPhpType;
parameter.WriteUp(analyzer.ResolveType(defaultType, type, routine, position, false));
}
示例2: AnalyzeMembers
internal void AnalyzeMembers(Analyzer/*!*/ analyzer, PhpRoutine/*!*/ routine, int index)
{
this.routine = routine;
this.index = index;
PhpType referring_type;
Scope referring_scope;
if (routine.IsMethod)
{
referring_type = routine.DeclaringPhpType;
referring_scope = referring_type.Declaration.Scope;
}
else if (routine.IsLambdaFunction)
{
referring_type = analyzer.CurrentType;
referring_scope = analyzer.CurrentScope;
}
else
{
referring_type = null;
referring_scope = ((PhpFunction)routine).Declaration.Scope;
}
attributes.AnalyzeMembers(analyzer, referring_scope);
resolvedTypeHint = analyzer.ResolveType(typeHint, referring_type, routine, position, false);
}