本文整理汇总了C#中Boo.Lang.Compiler.Ast.MethodInvocationExpression.get_Target方法的典型用法代码示例。如果您正苦于以下问题:C# MethodInvocationExpression.get_Target方法的具体用法?C# MethodInvocationExpression.get_Target怎么用?C# MethodInvocationExpression.get_Target使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Boo.Lang.Compiler.Ast.MethodInvocationExpression
的用法示例。
在下文中一共展示了MethodInvocationExpression.get_Target方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LeaveMethodInvocationExpression
public override void LeaveMethodInvocationExpression(MethodInvocationExpression node)
{
IEntityWithParameters parameters = node.get_Target().get_Entity() as IEntityWithParameters;
if (parameters != null)
{
ExpressionCollection args = node.get_Arguments();
if (parameters.get_AcceptVarArgs() && UnityCallableResolutionServiceModule.IsArrayArgumentExplicitlyProvided(parameters.GetParameters(), args))
{
UnaryExpression expression2;
Expression expression = args.get_Item(-1);
UnaryExpression expression1 = expression2 = new UnaryExpression();
expression2.set_Operator(7);
expression2.set_Operand(expression);
expression2.set_ExpressionType(this.GetExpressionType(expression));
args.ReplaceAt(-1, expression2);
}
}
}
示例2: LeaveMethodInvocationExpression
public override void LeaveMethodInvocationExpression(MethodInvocationExpression node)
{
if (this.IsEvalInvocation(node))
{
if (!string.IsNullOrEmpty(this.UnityScriptParameters.DisableEval))
{
this.Error(node, UnityScriptCompilerErrors.EvalHasBeenDisabled(node.get_Target().get_LexicalInfo(), this.UnityScriptParameters.DisableEval));
}
else
{
this.ReplaceEvalByEvaluatorEval(node);
}
}
}
示例3: IsConstructorInvocation
private bool IsConstructorInvocation(MethodInvocationExpression node)
{
return ((node.get_Target().get_Entity() != null) && (node.get_Target().get_Entity().get_EntityType() == 0x10));
}
示例4: IsEvalInvocation
public bool IsEvalInvocation(MethodInvocationExpression node)
{
return (node.get_Target().get_Entity() == UnityScriptTypeSystem.UnityScriptEval);
}
示例5: ProcessTypeofBuiltin
private void ProcessTypeofBuiltin(MethodInvocationExpression node)
{
if (node.get_Arguments().get_Count() != 1)
{
this.Error(node, new CompilerError("UCE0001", node.get_Target().get_LexicalInfo(), "'typeof' takes a single argument.", null));
}
else
{
IType type = node.get_Arguments().get_Item(0).get_Entity() as IType;
if (type != null)
{
node.get_ParentNode().Replace(node, this.get_CodeBuilder().CreateTypeofExpression(type));
}
else
{
node.set_Target(this.get_CodeBuilder().CreateReference(this._UnityRuntimeServices_GetTypeOf));
this.BindExpressionType(node, this.get_TypeSystemServices().TypeType);
}
}
}