Esempio 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;
 }
Esempio 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;
        }
Esempio 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.
        }
Esempio n. 4
0
 public DelegateName(string name, NameVisibilityRestriction visibility, Context context)
     : base(name, visibility, context)
 {
 }
Esempio n. 5
0
 public DelegateName(string name, NameVisibilityRestriction visibility, string[] genericParameters, Context context)
     : base(name, visibility, genericParameters, context)
 {
 }
Esempio n. 6
0
 public OperatorName(TokenID token, Context context)
     : base(token.ToString(), NameVisibilityRestriction.Everyone, Scope.Static, context)
 {
 }
Esempio 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)
 {
 }
Esempio 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];
 }
Esempio 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;
 }
Esempio 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;
 }
Esempio 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)
 {
 }
Esempio n. 12
0
 /// <summary>
 /// Initializes a new instance of the NamespaceName class.
 /// </summary>
 public NamespaceName(string name, Context context)
     : base(name, NameVisibilityRestriction.Everyone, context)
 {
 }
Esempio 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)
 {
 }
Esempio 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];
 }
Esempio 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;
 }
Esempio n. 16
0
 public IndexerName(NameVisibilityRestriction getVisibility, NameVisibilityRestriction setVisibility,
                    Scope scope, PropertyAccessors accessors, Context context)
     : base("Items", getVisibility, setVisibility, scope, accessors, context)
 {
 }