コード例 #1
0
ファイル: MockTypeLib.cs プロジェクト: zhuweijia/msbuild
 /// <summary>
 /// Add a new type info to the type library
 /// </summary>
 /// <param name="typeInfo"></param>
 public void AddTypeInfo(MockTypeInfo typeInfo)
 {
     _containedTypeInfos.Add(typeInfo);
     typeInfo.ContainingTypeLib        = this;
     typeInfo.IndexInContainingTypeLib = _containedTypeInfos.Count - 1;
     typeInfo.SetFaultInjector(_faultInjector);
 }
コード例 #2
0
ファイル: MockTypeLib.cs プロジェクト: JamesLinus/msbuild
 /// <summary>
 /// Add a new type info to the type library
 /// </summary>
 /// <param name="typeInfo"></param>
 public void AddTypeInfo(MockTypeInfo typeInfo)
 {
     _containedTypeInfos.Add(typeInfo);
     typeInfo.ContainingTypeLib = this;
     typeInfo.IndexInContainingTypeLib = _containedTypeInfos.Count - 1;
     typeInfo.SetFaultInjector(_faultInjector);
 }
コード例 #3
0
ファイル: MockTypeInfo.cs プロジェクト: cameron314/msbuild
 /// <summary>
 /// Adds a new function signature to the list of this type's implemented functions
 /// </summary>
 /// <param name="implementedType"></param>
 public void DefinesFunction(MockTypeInfo[] parameters, MockTypeInfo returnType)
 {
     _typeAttributes.cFuncs++;
     _definedFunctions.Add(new FuncInfo(parameters, returnType));
 }
コード例 #4
0
ファイル: MockTypeInfo.cs プロジェクト: cameron314/msbuild
 /// <summary>
 /// Adds implementedType to the list of this type's implemented interfaces
 /// </summary>
 /// <param name="implementedType"></param>
 public void ImplementsInterface(MockTypeInfo implementedType)
 {
     _typeAttributes.cImplTypes++;
     _implementedTypes.Add(implementedType);
 }
コード例 #5
0
ファイル: MockTypeInfo.cs プロジェクト: hongli051/IronyTest
 /// <summary>
 /// Adds a new function signature to the list of this type's implemented functions
 /// </summary>
 /// <param name="implementedType"></param>
 public void DefinesFunction(MockTypeInfo[] parameters, MockTypeInfo returnType)
 {
     _typeAttributes.cFuncs++;
     _definedFunctions.Add(new FuncInfo(parameters, returnType));
 }
コード例 #6
0
ファイル: MockTypeInfo.cs プロジェクト: hongli051/IronyTest
 /// <summary>
 /// Adds implementedType to the list of this type's implemented interfaces
 /// </summary>
 /// <param name="implementedType"></param>
 public void ImplementsInterface(MockTypeInfo implementedType)
 {
     _typeAttributes.cImplTypes++;
     _implementedTypes.Add(implementedType);
 }