Contextual typing
Abstract
Type inference is used to provide the benefits of static type checking without explicitly declaring type in the source code. Type inference that proceeds in a bottom up direction is augmented by contextual typing that proceeds in a top down direction. Contextual typing types enclosed expressions by associating the type of a directly enclosing expression with the enclosed expression. Object literals, function literals and array literals enclosed in assignment and call expressions, can be contextually typed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: receiving a parse tree representing program source code by a processor of a software development computer, the program source code comprising at least one enclosing expression, the enclosing expression enclosing at least one enclosed expression; assigning a type associated with the enclosing expression to the at least one enclosed expression by: evaluating the at least one enclosing expression of the parse tree for applicability of contextual typing by: comparing the at least one enclosing expression of the parse tree with a set of templates; selecting a template from the
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- "C# Type Inference", Retrieved at <<http://www.codersource.net/MicrosoftNet/CNet30/CTypeInference.aspx>>, Retrieved Date : Nov. 5, 2012, pp. 1-4.
- "Final Office Action Issued in U.S. Appl. No. 13/798,088", Mailed Date: Jun. 3, 2016, 19 Pages.
- "Final Office Action Issued in U.S. Appl. No. 13/798,088"; Mailed Date: Mar. 19, 2015, 25 Pages.
- "Final Office Action Issued in U.S. Appl. No. 13/798,095", Mailed date: Dec. 17, 2015, 19 Pages.
- "Final Office Action Issued in U.S. Appl. No. 13/798,095", Mailed Date: Mar. 5, 2015, 27 Pages.