Пример #1
0
 //^^ requires edit.SourceDocumentAfterEdit.IsUpdatedVersionOf(this.SourceLocation.SourceDocument);
 //^^ ensures result.GetType() == this.GetType();
 public override NamespaceDeclaration UpdateMembers(List<INamespaceDeclarationMember> members, ISourceDocumentEdit edit)
 {
     VccRootNamespaceDeclaration result =
     new VccRootNamespaceDeclaration(edit.SourceDocumentAfterEdit.GetCorrespondingSourceLocation(this.SourceLocation)) { members = members, isInitialized = true };
       result.compilationPart = this.CompilationPart.UpdateRootNamespace(result);
       return result;
 }
Пример #2
0
        public override NamespaceDeclaration UpdateMembers(List <INamespaceDeclarationMember> members, ISourceDocumentEdit edit)
        //^^ requires edit.SourceDocumentAfterEdit.IsUpdatedVersionOf(this.SourceLocation.SourceDocument);
        //^^ ensures result.GetType() == this.GetType();
        {
            VccRootNamespaceDeclaration result =
                new VccRootNamespaceDeclaration(edit.SourceDocumentAfterEdit.GetCorrespondingSourceLocation(this.SourceLocation))
            {
                members = members, isInitialized = true
            };

            result.compilationPart = this.CompilationPart.UpdateRootNamespace(result);
            return(result);
        }