export const enum ShapeFlags {ELEMENT = 1,FUNCTIONAL_COMPONENT = 1 << 1,STATEFUL_COMPONENT = 1 << 2,TEXT_CHILDREN = 1 << 3,ARRAY_CHILDREN = 1 << 4,SLOTS_CHILDREN = 1 << 5,TELEPORT = 1 << 6,SUSPENSE = 1 << 7,COMPONENT_SHOULD_KEEP...
export const enum ShapeFlags { ELEMENT = 1, FUNCTIONAL_COMPONENT = 1 << 1, STATEFUL_COMPONENT = 1 << 2, TEXT_CHILDREN = 1 << 3, ARRAY_CHILDREN = 1 << 4, SLOTS_CHILDREN = 1 << 5, TELEPORT = 1 << 6, SUSPENSE = 1 << 7, COMPONENT_SHOULD_KEEP_ALIVE = 1 << 8, COMPONENT_...
value这里即对应了字面量的值,我们可以看出字面量值的类型,字符串,布尔,数值,null和正则。 这个针对正则字面量的,为了更好地来解析正则表达式的内容,添加多一个regex字段,里边会包括正则本身,以及正则的flags。 interface RegExpLiteral <: Literal { regex: { pattern: string; flags: string; }; } Programs ...
awaitbreakcasecatchclass constcontinuedebuggerdefaultdeletedoelseexport extendsfinallyforfunctionifimport ininstance ofnewreturnsuperswitchthisthrowtrytypeofvarvoidwhilewithyield 除了上述的内容之外,还有 1 个为了未来使用而保留的关键字:enum 在严格模式下, 有一些额外的为未来使用而保留的关键字:implements package ...
flags: string; }; raw?: string; } 废话少说,开撸!!! // standard/es5.ts 实现以上节点方法 import Scope from "../scope"; import * as ESTree from "estree"; import { AstPath } from "../types/index"; const es5 = { // 根节点的处理很简单,我们只要对它的body属性进行遍历,然后访问该节...
Enums areused when we know all possible values at compile time, such as choices on a menu, rounding modes, command line flags, etc. It is not necessary that the set of constants in an enum type stay fixed for all time. In Java (from 1.5), enums are represented using enum data type...
正则表达式由 Body 和 Flags 两部分组成,例如: /RegularExpressionBody/g; 其中Body 部分至少有一个字符,第一个字符不能是* (因为 /* 跟多行注释有词法冲突)。 正则表达式有自己的语法规则,在词法阶段,仅会对它做简单解析。 正则表达式并非机械地见到/就停止,在正则表达式[ ]中的/就会被认为是普通字符。我...
部分保留字class enum extends super const export import 变量,变量是松散类型的,可以保存任何类型的数据,使用var关键字定义,var message; var message="hi" ; 像这样,初始化变量并不会把message标记为字符串类型,初始化过程就是给变量赋一个值那么简单。
As an example of a query involving properties, consider the following query that flags object expressions containing two identically named properties, excluding results in minified code: import javascript from ObjectExpr oe, Property p1, Property p2, int i, int j where p1 = oe.getProperty(i) and...
makefile 还有些隐含的规则,比如把源文件编译成中间目标文件这一步可以省略不写,make 会自动的推导生成中间目标文件,对应命令是(CC)–c(CPPFLAGS),链接目标文件是通过运行编译器的来生成,也可以省略,对应的命令是(CFLAGS),链接目标文件是通过运行编译器的ld来生成,也可以省略,对应的命令是(CC) $(LDFLAGS).o(LO...