Understanding Semantics
Syntax trees describe all the declarations and logic in the source code, and they help you understand the syntactic and lexical structure of a code file. However, there is more to a program than just syntax. The semantics of a program—that is, the way the language rules are applied to produce meaningful results—are necessary to get a complete picture. For example, depending on the context, it is possible that exactly the same textual representation could reference a method or property of an object returned by a local variable, field, or property; invoke shared members; or qualify a type or namespace.
The .NET Compiler Platform includes the Compilation, Symbol, and Semantic model types.
Compilation
A compilation is an ...
Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.