Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the PropertyName class.
 /// </summary>
 public PropertyName(string name, 
     NameVisibilityRestriction getVisibility, NameVisibilityRestriction setVisibility, 
     Scope scope, PropertyAccessors accessors, Context context)
     : base(name, getVisibility, scope, context)
 {
     this.accessors = accessors;
     this.setVisibility = setVisibility;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the Identifier class.
        /// </summary>
        protected IdentifierName(string name, NameVisibilityRestriction visibility, Context context)
        {
            string[] curContext = context.GetContext();

            this.fullyQualifiedName = new string[curContext.Length + 1];
            this.fullyQualifiedName[0] = name;
            Array.Copy(curContext, 0, this.fullyQualifiedName, 1, curContext.Length);

            this.visibility = visibility;
        }
Exemplo n.º 3
0
        public void Resolve()
        {
            this.MergeNameTables();

            foreach (CompilationUnitNode node in this.sources)
            {
                this.context = new Context();
                node.Resolve(this, true);
            }

            // TODO: Add more passes.
        }
Exemplo n.º 4
0
 public DelegateName(string name, NameVisibilityRestriction visibility, Context context)
     : base(name, visibility, context)
 {
 }
Exemplo n.º 5
0
 public DelegateName(string name, NameVisibilityRestriction visibility, string[] genericParameters, Context context)
     : base(name, visibility, genericParameters, context)
 {
 }
Exemplo n.º 6
0
 public OperatorName(TokenID token, Context context)
     : base(token.ToString(), NameVisibilityRestriction.Everyone, Scope.Static, context)
 {
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the EventName class.
 /// </summary>
 public EventName(string name, NameVisibilityRestriction visibility, Scope scope, Context context)
     : base(name, visibility, scope, context)
 {
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the TypeName class.
 /// </summary>
 protected TypeName(string name, NameVisibilityRestriction visibility, Context context)
     : base(name, visibility, context)
 {
     genericParameters = new string[0];
 }
Exemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the TypeName class.
 /// </summary>
 protected TypeName(string name, NameVisibilityRestriction visibility, string[] genericParameters, Context context)
     : base(name, visibility, context)
 {
     this.genericParameters = genericParameters;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of the TypeMemberName class.
 /// </summary>
 public TypeMemberName(string name, NameVisibilityRestriction visibility, Scope scope, Context context)
     : base(name, visibility, context)
 {
     this.scope = scope;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the InterfaceName class.
 /// </summary>
 public InterfaceName(string name, NameVisibilityRestriction visibility, Context context)
     : base(name, visibility, context)
 {
 }
Exemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of the NamespaceName class.
 /// </summary>
 public NamespaceName(string name, Context context)
     : base(name, NameVisibilityRestriction.Everyone, context)
 {
 }
Exemplo n.º 13
0
 /// <summary>
 /// Initializes a new instance of the ClassName class.
 /// </summary>
 public ClassName(string name, NameVisibilityRestriction visibility, Context context)
     : base(name, visibility, context)
 {
 }
Exemplo n.º 14
0
 /// <summary>
 /// Initializes a new instance of the TypeName class.
 /// </summary>
 public MethodName(string name, NameVisibilityRestriction visibility, Scope scope, Context context)
     : base(name, visibility, scope, context)
 {
     genericParameters = new string[0];
 }
Exemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the MethodName class.
 /// </summary>
 public MethodName(string name, NameVisibilityRestriction visibility, string[] genericParameters, Scope scope, Context context)
     : base(name, visibility, scope, context)
 {
     this.genericParameters = genericParameters;
 }
Exemplo n.º 16
0
 public IndexerName(NameVisibilityRestriction getVisibility, NameVisibilityRestriction setVisibility,
                    Scope scope, PropertyAccessors accessors, Context context)
     : base("Items", getVisibility, setVisibility, scope, accessors, context)
 {
 }