本文整理匯總了C#中System.Xml.Xsl.XsltOld.Compiler.CreateValueOfAction方法的典型用法代碼示例。如果您正苦於以下問題:C# Compiler.CreateValueOfAction方法的具體用法?C# Compiler.CreateValueOfAction怎麽用?C# Compiler.CreateValueOfAction使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Xml.Xsl.XsltOld.Compiler
的用法示例。
在下文中一共展示了Compiler.CreateValueOfAction方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: CompileInstruction
void CompileInstruction(Compiler compiler) {
NavigatorInput input = compiler.Input;
CompiledAction action = null;
Debug.Assert(Ref.Equal(input.NamespaceURI, input.Atoms.UriXsl));
string name = input.LocalName;
if (Ref.Equal(name, input.Atoms.ApplyImports)) {
action = compiler.CreateApplyImportsAction();
}
else if (Ref.Equal(name, input.Atoms.ApplyTemplates)) {
action = compiler.CreateApplyTemplatesAction();
}
else if (Ref.Equal(name, input.Atoms.Attribute)) {
action = compiler.CreateAttributeAction();
}
else if (Ref.Equal(name, input.Atoms.CallTemplate)) {
action = compiler.CreateCallTemplateAction();
}
else if (Ref.Equal(name, input.Atoms.Choose)) {
action = compiler.CreateChooseAction();
}
else if (Ref.Equal(name, input.Atoms.Comment)) {
action = compiler.CreateCommentAction();
}
else if (Ref.Equal(name, input.Atoms.Copy)) {
action = compiler.CreateCopyAction();
}
else if (Ref.Equal(name, input.Atoms.CopyOf)) {
action = compiler.CreateCopyOfAction();
}
else if (Ref.Equal(name, input.Atoms.Element)) {
action = compiler.CreateElementAction();
}
else if (Ref.Equal(name, input.Atoms.Fallback)) {
return;
}
else if (Ref.Equal(name, input.Atoms.ForEach)) {
action = compiler.CreateForEachAction();
}
else if (Ref.Equal(name, input.Atoms.If)) {
action = compiler.CreateIfAction(IfAction.ConditionType.ConditionIf);
}
else if (Ref.Equal(name, input.Atoms.Message)) {
action = compiler.CreateMessageAction();
}
else if (Ref.Equal(name, input.Atoms.Number)) {
action = compiler.CreateNumberAction();
}
else if (Ref.Equal(name, input.Atoms.ProcessingInstruction)) {
action = compiler.CreateProcessingInstructionAction();
}
else if (Ref.Equal(name, input.Atoms.Text)) {
action = compiler.CreateTextAction();
}
else if (Ref.Equal(name, input.Atoms.ValueOf)) {
action = compiler.CreateValueOfAction();
}
else if (Ref.Equal(name, input.Atoms.Variable)) {
action = compiler.CreateVariableAction(VariableType.LocalVariable);
}
else {
if (compiler.ForwardCompatibility)
action = compiler.CreateNewInstructionAction();
else
throw compiler.UnexpectedKeyword();
}
Debug.Assert(action != null);
AddAction(action);
}