當前位置: 首頁>>代碼示例>>Java>>正文


Java DotNetExpression.accept方法代碼示例

本文整理匯總了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);
	}
}
 
開發者ID:consulo,項目名稱:consulo-csharp,代碼行數:21,代碼來源:CSharpExpressionEvaluator.java

示例2: ConstantExpressionEvaluator

import consulo.dotnet.psi.DotNetExpression; //導入方法依賴的package包/類
public ConstantExpressionEvaluator(@Nullable DotNetExpression expression)
{
	if(expression != null)
	{
		expression.accept(this);
	}
}
 
開發者ID:consulo,項目名稱:consulo-csharp,代碼行數:8,代碼來源:ConstantExpressionEvaluator.java

示例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));
}
 
開發者ID:consulo,項目名稱:consulo-csharp,代碼行數:10,代碼來源:CSharpExpressionEvaluator.java

示例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();
}
 
開發者ID:consulo,項目名稱:consulo-csharp,代碼行數:31,代碼來源:CSharpExpressionEvaluator.java

示例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);
	}
}
 
開發者ID:consulo,項目名稱:consulo-csharp,代碼行數:15,代碼來源:CSharpExpressionEvaluator.java

示例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);
		}
	}
}
 
開發者ID:consulo,項目名稱:consulo-csharp,代碼行數:16,代碼來源:CS0136.java

示例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());
}
 
開發者ID:consulo,項目名稱:consulo-csharp,代碼行數:12,代碼來源:CSharpIntroduceHandler.java


注:本文中的consulo.dotnet.psi.DotNetExpression.accept方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。