Index: /trunk/ab5.0/abdev/BasicCompiler_Common/include/Delegate.h
===================================================================
--- /trunk/ab5.0/abdev/BasicCompiler_Common/include/Delegate.h	(revision 587)
+++ /trunk/ab5.0/abdev/BasicCompiler_Common/include/Delegate.h	(revision 588)
@@ -57,7 +57,7 @@
 	}
 
-	void SetSourceIndex( int sourceIndex )
+	int GetSourceIndex() const
 	{
-		this->sourceIndex = sourceIndex;
+		return sourceIndex;
 	}
 
Index: /trunk/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Delegate.cpp
===================================================================
--- /trunk/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Delegate.cpp	(revision 587)
+++ /trunk/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Delegate.cpp	(revision 588)
@@ -221,7 +221,5 @@
 	Jenga::Common::Strings parameterStrings;
 	SplitParameter( dg.GetParamStr(), parameterStrings );
-	int sourceIndex;
-	ActiveBasic::Compiler::LexicalAnalyzer::AnalyzeParameter( dg.GetParameters(), parameterStrings, sourceIndex );
-	dg.SetSourceIndex( sourceIndex );
+	ActiveBasic::Compiler::LexicalAnalyzer::AnalyzeParameter( dg.GetParameters(), parameterStrings, dg.GetSourceIndex() );
 
 	// 動的パラメータを作る
@@ -235,5 +233,5 @@
 		if( !compiler.StringToType( dg.GetReturnTypeName(), returnType ) )
 		{
-			compiler.errorMessenger.Output(3,dg.GetReturnTypeName(),sourceIndex);
+			compiler.errorMessenger.Output(3,dg.GetReturnTypeName(),dg.GetSourceIndex());
 		}
 		else
