本文整理汇总了C#中ParserRuleContext.GetText方法的典型用法代码示例。如果您正苦于以下问题:C# ParserRuleContext.GetText方法的具体用法?C# ParserRuleContext.GetText怎么用?C# ParserRuleContext.GetText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParserRuleContext
的用法示例。
在下文中一共展示了ParserRuleContext.GetText方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UntypedFunctionUsageQuickFix
public UntypedFunctionUsageQuickFix(ParserRuleContext context, QualifiedSelection selection)
: base(context, selection, string.Format(InspectionsUI.QuickFixUseTypedFunction_, context.GetText()))
{
}
示例2: CreateSnippetMember
private CodeSnippetTypeMember CreateSnippetMember(ParserRuleContext context)
{
// The original source code
String sourceCode = context.GetText();
//
CodeSnippetTypeMember snippet = new CodeSnippetTypeMember(sourceCode);
FillCodeDomDesignerData(snippet, context.Start.Line, context.Start.Column);
return snippet;
}
示例3: StringLiteral
private static ExpressionSyntax StringLiteral(ParserRuleContext arg)
{
return CSharp.ParseExpression(arg.GetText());
}
示例4: Identifer
private static ExpressionSyntax Identifer(ParserRuleContext arg)
{
return CSharp.IdentifierName(arg.GetText());
}
示例5: Constant
private static ExpressionSyntax Constant(ParserRuleContext node)
{
return CSharp.ParseExpression(node.GetText());
}
示例6: EnterEveryRule
public void EnterEveryRule(ParserRuleContext ctx)
{
if (VerboseUpdate != null)
{
VerboseUpdate(ctx.GetText());
}
}
示例7: AddAttr
public void AddAttr(string type, string input, ParserRuleContext ctx)
{
var text = ctx.GetText(input);
int start, end;
ctx.GetBounds(out start, out end);
AddAttrNode(type, text, start, end);
}