Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
dmd.expressionsem
Compiler implementation of the
D programming language.
Authors:
License:
Source expressionsem.d
Documentation https://dlang.org/phobos/dmd_expressionsem.html
- StringExp
semanticString(Scope*sc, Expressionexp, const char*s); - Resolve
expas a compile-time known string.Parameters:Scope* scscope Expression expExpression which expected as a string char* sWhat the string is expected for, will be used in error diagnostic. Returns:String literal, or null if error happens. - Expression
resolveOpDollar(Scope*sc, ArrayExpae, Expression*pe0); - Runs semantic on ae.arguments. Declares temporary variables if '$' was used.
- Expression
resolveOpDollar(Scope*sc, ArrayExpae, IntervalExpie, Expression*pe0); - Runs semantic on se.lwr and se.upr. Declares a temporary variable if '$' was used.
- bool
arrayExpressionSemantic(Expressions*exps, Scope*sc, boolpreserveErrors= false); - Perform semantic() on an array of Expressions.
- Expression
resolvePropertiesOnly(Scope*sc, Expressione1); - If e1 is a property function (template), resolve it.
- Expression
resolve(ref const Locloc, Scope*sc, Dsymbols, boolhasOverloads); - Resolve a symbol
sand wraps it in an expression object.Parameters:Loc loclocation of use of sScope* sccontext Dsymbol ssymbol to resolve bool hasOverloadsapplies if srepresents a function. true means it's overloaded and will be resolved later, false means it's the exact function symbol.Returns:sturned into an expression, ErrorExp if an error occurred - Expression
trySemantic(Expressionexp, Scope*sc); - Try to run semantic routines. If they fail, return NULL.
- Expression
unaSemantic(UnaExpe, Scope*sc); - Helper function for easy error propagation. If error occurs, returns ErrorExp. Otherwise returns NULL.
- Expression
binSemantic(BinExpe, Scope*sc); - Helper function for easy error propagation. If error occurs, returns ErrorExp. Otherwise returns NULL.
Copyright © 1999-2018 by the D Language Foundation | Page generated by
Ddoc on Thu Nov 1 12:28:23 2018