public ParsedExpression(TimeSpan timestamp, Node node, TypeRef type) : this() { this.Timestamp = timestamp; this.Node = node; this.Type = type; }
/// <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; }
/// <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) { }
/// <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 ?? ""; }
/// <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) { }
/// <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) { }
/// <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(); }
/// <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>(); }
private void NotifyParsed(Node node, TypeRef type) { this._parsedExpressions.OnNext(new ParsedExpression(this._stopwatch.Elapsed, node, type)); }