forked from qt-creator/qt-creator
		
	QmlJS: Convert more dynamic_casts to value_casts.
And introduce a good error message for the case when someone forgets the specialization of the value_cast template. Change-Id: Iec55a839e8f5eef5872b1dab8601f66e0e0c88de Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
		@@ -704,6 +704,11 @@ const ASTPropertyReference *Value::asAstPropertyReference() const
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const ASTSignal *Value::asAstSignal() const
 | 
			
		||||
{
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
////////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
// Values
 | 
			
		||||
////////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
@@ -1982,6 +1987,11 @@ ASTSignal::~ASTSignal()
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const ASTSignal *ASTSignal::asAstSignal() const
 | 
			
		||||
{
 | 
			
		||||
    return this;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int ASTSignal::argumentCount() const
 | 
			
		||||
{
 | 
			
		||||
    int count = 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user