本文整理匯總了Java中consulo.dotnet.psi.DotNetExpression.accept方法的典型用法代碼示例。如果您正苦於以下問題:Java DotNetExpression.accept方法的具體用法?Java DotNetExpression.accept怎麽用?Java DotNetExpression.accept使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類consulo.dotnet.psi.DotNetExpression
的用法示例。
在下文中一共展示了DotNetExpression.accept方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: pushNArguments
import consulo.dotnet.psi.DotNetExpression; //導入方法依賴的package包/類
@RequiredReadAction
private void pushNArguments(MethodResolveResult resolveResult)
{
List<NCallArgument> arguments = resolveResult.getCalcResult().getArguments();
for(NCallArgument argument : arguments)
{
CSharpCallArgument callArgument = argument.getCallArgument();
if(callArgument == null)
{
cantEvaluateExpression();
}
DotNetExpression argumentExpression = callArgument.getArgumentExpression();
if(argumentExpression == null)
{
cantEvaluateExpression();
}
argumentExpression.accept(this);
}
}
示例2: ConstantExpressionEvaluator
import consulo.dotnet.psi.DotNetExpression; //導入方法依賴的package包/類
public ConstantExpressionEvaluator(@Nullable DotNetExpression expression)
{
if(expression != null)
{
expression.accept(this);
}
}
示例3: visitIsExpression
import consulo.dotnet.psi.DotNetExpression; //導入方法依賴的package包/類
@Override
@RequiredReadAction
public void visitIsExpression(CSharpIsExpressionImpl expression)
{
DotNetExpression leftExpression = expression.getExpression();
leftExpression.accept(this);
myEvaluators.add(new IsExpressionEvaluator(expression));
}
示例4: visitPrefixExpression
import consulo.dotnet.psi.DotNetExpression; //導入方法依賴的package包/類
@Override
@RequiredReadAction
public void visitPrefixExpression(CSharpPrefixExpressionImpl expression)
{
CSharpOperatorReferenceImpl operatorElement = expression.getOperatorElement();
PsiElement element = operatorElement.resolveToCallable();
if(element != null)
{
if(!element.isPhysical())
{
CSharpCallArgument[] callArguments = expression.getCallArguments();
for(CSharpCallArgument callArgument : callArguments)
{
DotNetExpression argumentExpression = callArgument.getArgumentExpression();
if(argumentExpression == null)
{
cantEvaluateExpression();
}
argumentExpression.accept(this);
}
myEvaluators.add(new PrefixOperatorEvaluator(operatorElement.getOperatorElementType()));
return;
}
}
expressionIsNotSupported();
}
示例5: pushArguments
import consulo.dotnet.psi.DotNetExpression; //導入方法依賴的package包/類
private void pushArguments(CSharpBinaryExpressionImpl expression)
{
CSharpCallArgument[] callArguments = expression.getCallArguments();
for(CSharpCallArgument callArgument : callArguments)
{
DotNetExpression argumentExpression = callArgument.getArgumentExpression();
if(argumentExpression == null)
{
throw new UnsupportedOperationException("bad operator call argument");
}
argumentExpression.accept(this);
}
}
示例6: addIfNotNull
import consulo.dotnet.psi.DotNetExpression; //導入方法依賴的package包/類
@RequiredReadAction
private void addIfNotNull(DotNetVariable variable)
{
String name = variable.getName();
if(name != null)
{
myVariables.putValue(name, variable);
DotNetExpression initializer = variable.getInitializer();
if(initializer != null)
{
initializer.accept(this);
}
}
}
示例7: createDeclaration
import consulo.dotnet.psi.DotNetExpression; //導入方法依賴的package包/類
@Nullable
@RequiredReadAction
public PsiElement createDeclaration(CSharpIntroduceOperation operation)
{
final Project project = operation.getProject();
final DotNetExpression initializer = operation.getInitializer();
InitializerTextBuilder builder = new InitializerTextBuilder();
initializer.accept(builder);
String assignmentText = getDeclarationString(operation, builder.result());
return CSharpFileFactory.createStatement(project, assignmentText.trim());
}