会员体验
专利管家(专利管理)
工作空间(专利管理)
风险监控(情报监控)
数据分析(专利分析)
侵权分析(诉讼无效)
联系我们
交流群
官方交流:
QQ群: 891211   
微信请扫码    >>>
现在联系顾问~
热词
    • 3. 发明授权
    • Systems and methods for converting typed code
    • 用于转换类型代码的系统和方法
    • US09329849B2
    • 2016-05-03
    • US14010266
    • 2013-08-26
    • Facebook, Inc.
    • Julien Marcel Verlaguet
    • G06F9/45G06F9/38
    • G06F8/51G06F8/40G06F8/41G06F8/437G06F8/443G06F9/38G06F9/3846G06F9/45508
    • Techniques provided implement automatic data type annotation in dynamically-typed source code. A codebase, which may comprise a plurality of source code files, is scanned at a global level. The resulting scanned data may describe characteristics of the codebase, including variable and function usage. Based on inferences drawn from the scanning, data types are determined for different variables, expressions, or functions to facilitate conversion from dynamically-typed source code to statically-typed source code. For example, if a function is called once with a parameter value of data type A (e.g., class A), and another time with a parameter value of data type B (e.g., class B), a conversion tool may annotate the parameter variable in the declaration of the function with a data type D (e.g., class d) when data type D is identified as a common ancestor (e.g., superclass) to both data type A and data type B.
    • 提供的技术在动态类型的源代码中实现自动数据类型注释。 可以包括多个源代码文件的代码库在全局级别被扫描。 所得到的扫描数据可以描述代码库的特征,包括变量和功能使用。 基于从扫描得出的推论,为不同的变量,表达式或函数确定数据类型,以便于从动态类型的源代码到静态类型的源代码的转换。 例如,如果函数被调用一次,参数值为数据类型A(例如,类A),另一个时间的参数值为数据类型B(例如,类B),转换工具可以注释参数变量 在数据类型D被识别为数据类型A和数据类型B的公共祖先(例如,超类)时,在具有数据类型D(例如,类d)的函数的声明中。