コード例 #1
0
ファイル: ParsedExpression.cs プロジェクト: takeshik/yacq
 public ParsedExpression(TimeSpan timestamp, Node node, TypeRef type)
     : this()
 {
     this.Timestamp = timestamp;
     this.Node = node;
     this.Type = type;
 }
コード例 #2
0
ファイル: MethodRef.cs プロジェクト: takeshik/yacq
 /// <summary>
 /// Initializes a new instance of the <see cref="MethodRef"/> class.
 /// </summary>
 /// <param name="type">The declaring type of this method reference, or <c>null</c> if the type is <see cref="Object"/>.</param>
 /// <param name="name">The name of referring method.</param>
 /// <param name="signature">The signature (<see cref="Object.ToString()"/>) of referring method.</param>
 /// <param name="typeArgs">The generic type arguments of this type reference.</param>
 public MethodRef(TypeRef type, String name, String signature, TypeRef[] typeArgs)
 {
     this.Type = type;
     this.Name = name;
     this.Signature = signature;
     this.TypeArgs = typeArgs;
 }
コード例 #3
0
ファイル: EventRef.cs プロジェクト: takeshik/yacq
 /// <summary>
 /// Initializes a new instance of the <see cref="EventRef"/> class.
 /// </summary>
 /// <param name="type">The declaring type of this event reference, or <c>null</c> if the type is <see cref="Object"/>.</param>
 /// <param name="name">The name of referring event.</param>
 public EventRef(TypeRef type, String name)
     : base(type, name)
 {
 }
コード例 #4
0
ファイル: MemberRef.cs プロジェクト: takeshik/yacq
 /// <summary>
 /// Initializes a new instance of the <see cref="MemberRef"/> class.
 /// </summary>
 /// <param name="type">The declaring type of this member reference, or <c>null</c> if the type is <see cref="Object"/>.</param>
 /// <param name="name">The name of referring member.</param>
 /// <param name="signature">The signature of referring member, or <c>null</c> if the member has no detailed signature.</param>
 protected MemberRef(TypeRef type, String name, String signature = null)
 {
     this.Type = type ?? new TypeRef();
     this.Name = name ?? "";
     this.Signature = signature ?? "";
 }
コード例 #5
0
ファイル: FieldRef.cs プロジェクト: takeshik/yacq
 /// <summary>
 /// Initializes a new instance of the <see cref="FieldRef"/> class.
 /// </summary>
 /// <param name="type">The declaring type of this field reference, or <c>null</c> if the type is <see cref="Object"/>.</param>
 /// <param name="name">The name of referring field.</param>
 public FieldRef(TypeRef type, String name)
     : base(type, name)
 {
 }
コード例 #6
0
ファイル: PropertyRef.cs プロジェクト: takeshik/yacq
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyRef"/> class.
 /// </summary>
 /// <param name="type">The declaring type of this property reference, or <c>null</c> if the type is <see cref="Object"/>.</param>
 /// <param name="name">The name of referring property.</param>
 public PropertyRef(TypeRef type, String name)
     : base(type, name)
 {
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MemberDescriptor"/> class.
 /// </summary>
 /// <param name="name">The name of the member.</param>
 /// <param name="returnType">The return type of the member.</param>
 public MemberDescriptor(String name, TypeRef.TypeDescriptor returnType = null)
 {
     this.Name = name ?? "";
     this.ReturnType = returnType ?? new TypeRef.TypeDescriptor();
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MethodDescriptor"/> class.
 /// </summary>
 /// <param name="name">The name of the member.</param>
 /// <param name="returnType">The return type of the member.</param>
 /// <param name="typeArguments">The generic type arguments of the method.</param>
 /// <param name="parameterTypes">The parameter types in the method.</param>
 public MethodDescriptor(
     String name,
     TypeRef.TypeDescriptor returnType = null,
     TypeRef.TypeDescriptor[] typeArguments = null,
     TypeRef.TypeDescriptor[] parameterTypes = null
 )
     : base(name, returnType)
 {
     this.TypeArguments = typeArguments ?? Arrays.Empty<TypeRef.TypeDescriptor>();
     this.ParameterTypes = parameterTypes ?? Arrays.Empty<TypeRef.TypeDescriptor>();
 }
コード例 #9
0
ファイル: EvaluationContext.cs プロジェクト: takeshik/yacq
 private void NotifyParsed(Node node, TypeRef type)
 {
     this._parsedExpressions.OnNext(new ParsedExpression(this._stopwatch.Elapsed, node, type));
 }