mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-17 17:29:02 +02:00
Merge dmd-1.073.
This commit is contained in:
34
dmd/sideeffect.c
Normal file
34
dmd/sideeffect.c
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
// Compiler implementation of the D programming language
|
||||
// Copyright (c) 1999-2012 by Digital Mars
|
||||
// All Rights Reserved
|
||||
// written by Walter Bright
|
||||
// http://www.digitalmars.com
|
||||
// License for redistribution is by either the Artistic License
|
||||
// in artistic.txt, or the GNU General Public License in gnu.txt.
|
||||
// See the included readme.txt for details.
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "mars.h"
|
||||
#include "init.h"
|
||||
#include "expression.h"
|
||||
#include "template.h"
|
||||
#include "statement.h"
|
||||
#include "mtype.h"
|
||||
#include "utf.h"
|
||||
#include "declaration.h"
|
||||
#include "aggregate.h"
|
||||
#include "scope.h"
|
||||
#include "attrib.h"
|
||||
|
||||
/********************************************
|
||||
* Determine if Expression has any side effects.
|
||||
*/
|
||||
|
||||
bool Expression::hasSideEffect()
|
||||
{
|
||||
return checkSideEffect(2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user