So when you want to rename a method or class, it's easy for the environment to find every use of it by pinpointing the location in the AST.
因此,当需要重新命名一个方法或者类的时候,开发环境很容易通过在 AST 中精确定位找到方法或类被引用的每个地方。
AST buys patents to protect its members from patent litigation, provides them with licenses to the technology, and then resells the patents on the open market.
企业安全联盟购买专利,以便保护成员避免专利诉讼,为它们提供技术许可,然后在公开市场上出售专利。
Or to use the appropriate terminology, how a parser can produce a custom element... in this case our AST objects.
用适当的术语来说就是解析器如何才能产生一个定制的元素(在这里,就是AST对象)。
The analysis API eliminates most of the challenges associated with visiting AST nodes by providing a common visitor class and abstracting the query mechanism.
分析API通过提供一个公用的访问者类和抽象查询机制,消除了和访问AST节点相关联的大部分挑战。
This article will not discuss the AST in any detail here, except to say that when the extension needs to add new elements to the generated source it does so by calling methods on the AST objects.
本文在这里并不讨论关于AST的任何细节,除非当扩展需要向生成的代码添加新元素时,才会涉及到一些。通过访问AST的方法来做到这一点。
The AST is a tree representation of the source code that contains everything from variable declarations to function definitions and method invocations.
AST是源代码的树形表示,它包含了从变量声明到功能定义和方法调用的全部内容。
To see more clearly, this distinction of when you would use a scanner vs. an AST, consider the code in Listing 10.
要更清晰地了解何时使用扫描程序与何时使用AST 之间的差别,请考虑清单 10中的代码。
To explain this and other interesting features, I need to describe what the indexer does with the parser's AST and how it interacts with the PDOM.
为解释这个以及其他有趣的特性,我需要描述一下索引器使用解析器的AST将如何工作以及它如何同PDOM进行交互。
AST nodes take care of things such as binding names to definitions, overload resolution and error checking.
AST节点负责一些例如,绑定定义与名称,分辨重载,错误检查这样的事情。
One necessity for making code tools is the AST, to analyze source.
制造代码工具一个必须的东西是AST,用来分析源码。
Documenting your annotation handlers will benefit maintainers of the AST transformations, while documenting your annotations will benefit their users.
文档注释处理程序将有益于AST转换的维护者,而文档注释将有益于其用户。
This line visits the AST tree, starting at the compilation unit (the top-most node), and queries for a list of all method declarations.
这一行访问ast树,起步于编辑单元(最顶层的节点),并且查询所有的方法声明。
I'll note before we go any further that the terms parse tree and abstract syntax tree (or AST) describe very similar grammatical structures.
在我们继续之前,我要特别提一下,术语解析树和抽象语法树(或ast)描述了非常相似的语法结构。
Comment nodes do not show in the AST Tree because they are not parented.
ast树中没有显示注释节点,因为它们没有父子关系。
The following sections contain recommendations, from project setup to testing, that you may find useful when creating your own AST transformations.
以下部分包含了一些建议,从项目设置到测试,这些在创建自己的AST转换时可能会很有用。
You can go even further and create an 'AST' for your language and display it in the navigation bar and outline views.
你甚至可以为你的语言创建一个‘AST’,并在导航条与大纲视图上显示它。
Now, I show how the CDT parser generates the AST and how you can traverse it with your own code.
接下来介绍 CDT解析器如何生成AST以及如何用您自己的代码对其进行遍历。
I'm wondering about your plans for paying your account which, as you know, is now over 40 days ast due.
我想了解一下你的付款计划,要知道,你的付款已经逾期40多天了。
SIP tooling is also provided in the AST to help you more easily build SIP applications.
AST中提供的SIP工具可以帮助您更轻松地构建SIP应用程序。
It will flag errors only if there is something in the source file that will affect the AST Tree integrity.
只有当源文件中有一些代码影响到ast树的完整性时才会标记错误。
Take some time to peruse this documentation, because you will eventually need to write AST code for some of your more advanced rules.
请花一些时间研读这一文档,因为您最终将会为您的高级规则编写AST代码。
L ast week, I went to a dinner party that gave me a bout of indigestion.
上周我去参加了一个晚宴,结果害得我消化不良。
While ParseTree output doesn't seem to be planned, it's entirely possible to translate the ANTLR generated AST into the ParseTree format.
而分析树输出看起来还没有计划,很有可能把ANTLR产生的AST转化成分析树格式。
The first item on our plate is to define this AST for the calculator language.
您要做的第一件事是为计算器语言定义该AST。
I'm clearly not finished yet; there's parsing work yet to be done, but the calculator AST is in pretty good shape.
显然我还没有说完;还有分析的工作要做,但是计算器ast已经成形。
Unlike the simple scanner, an AST understands the relationships between language elements (they are no longer simply "tokens").
与简单的扫描程序不同,AST理解语言元素(它们不再只是“标记”)之间的关系。
First, you have to consider whether a change to the AST needs to be made.
首先,您必须考虑是否需要更改ast。
This function displays an AST with a couple of conventions.
该函数将显示一个带有几个约定的AST。
Our translation layer operates on Actionscript bytecodes, not Actionscript source, so it doesn't operate on an AST.
我们的转换层操纵actionscript字节码,而不是ActionScript源代码,因此它并不会使用AST。
In this section, you will see how to set up your AST for seamless OpenJPA development.
在本部分中,您将了解如何设置AST以实现无缝的OpenJPA开发。
应用推荐